1
0
mirror of https://github.com/nbd-wtf/satdress.git synced 2024-09-22 17:11:21 +00:00
Go to file
2023-10-20 17:23:38 -03:00
.github/workflows automatic builds on github actions. 2022-10-22 06:51:57 -03:00
static css improvements 2022-01-20 14:05:34 +01:00
.gitignore v1 working. 2021-08-13 13:21:00 -03:00
.prettierrc prettier and makefile quibbles. 2021-08-28 09:13:32 -03:00
api.go Allow multiple comma-separated domains 2022-01-20 14:05:24 +01:00
db.go support for "commando" method. 2022-03-15 21:18:31 -03:00
docker-compose.yml docker-compose.yml so it's super easy to deploy on server or test locally (#27) 2021-10-25 08:45:47 -03:00
Dockerfile Added dockerfile 2021-08-30 15:58:05 -03:00
flake.lock Nix flake support 2022-01-20 09:33:37 -03:00
flake.nix Nix flake support 2022-01-20 09:33:37 -03:00
go.mod update dependencies. 2023-10-20 17:19:24 -03:00
go.sum update dependencies. 2023-10-20 17:19:24 -03:00
grab.html Allow multiple comma-separated domains 2022-01-20 14:05:24 +01:00
helpers.go v1 working. 2021-08-13 13:21:00 -03:00
html.go Allow multiple comma-separated domains 2022-01-20 14:05:24 +01:00
index.html fixed duplicate attrib id 2022-09-10 19:42:31 -03:00
LICENSE.md feature: clean up html 2021-08-14 18:48:39 -04:00
lnurl.go fixes for go-lnurl type updates. 2023-10-20 17:23:38 -03:00
main.go cors support. 2022-10-23 09:47:39 -03:00
Makefile adapt to new makeinvoice which fully supports updated CLN and commando. 2022-07-20 15:05:14 -03:00
makeinvoice.go make lnd invoices include route hints. 2023-10-20 17:19:35 -03:00
README.md minor. 2022-10-17 08:48:30 -03:00

Satdress

Federated Lightning Address Server

How to run

  1. Download the binary from the releases page (or compile with go build or go get)
  2. Set the following environment variables somehow (using example values from bitmia.com):
PORT=17422
DOMAIN=bitmia.com
SECRET=askdbasjdhvakjvsdjasd
SITE_OWNER_URL=https://t.me/qecez
SITE_OWNER_NAME=@qecez
SITE_NAME=Bitmia
  1. Start the app with ./satdress
  2. Serve the app to the world on your domain using whatever technique you're used to

Multiple domains

Note that DOMAIN can be a single domain or a comma-separated list. When using multiple domains you need to make sure "Host" HTTP header is forwarded to satdress process if you have some reverse-proxy).

If you come from an old installation everything should get migrated in a seamless way, but there is also a FORCE_MIGRATE environment variable to force a migration (else this is done just the first time).

There is also a GLOBAL_USERS to make sure the user@ part is unique across all domains. But be warned that when enabling this option, existing users won't work anymore (which is by design).

Get help

Maybe ask for help on https://t.me/lnurl if you're in trouble.