Fix typos

This commit is contained in:
Gregor Pogacnik
2022-01-20 13:25:30 +01:00
parent 70077ea5d2
commit cfba3fa890
2 changed files with 12 additions and 3 deletions

View File

@@ -6,8 +6,6 @@ Federated Lightning Address Server
1. Download the binary from the releases page (or compile with `go build` or `go get`) 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): 2. Set the following environment variables somehow (using example values from bitmia.com):
(note that DOMAIN can be a comma-seperated list or a single domain, when using multiple domains
you need to make sure "Host" HTTP header is forwarded to satdress process if you have some reverse-proxy)
``` ```
PORT=17422 PORT=17422
@@ -21,6 +19,17 @@ SITE_NAME=Bitmia
3. Start the app with `./satdress` 3. Start the app with `./satdress`
4. Serve the app to the world on your domain using whatever technique you're used to 4. 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 ## Get help
Maybe ask for help on https://t.me/lnurl if you're in trouble. Maybe ask for help on https://t.me/lnurl if you're in trouble.

2
db.go
View File

@@ -130,7 +130,7 @@ func tryMigrate(old, new string) {
defer iter.Close() defer iter.Close()
for iter.First(); iter.Valid(); iter.Next() { for iter.First(); iter.Valid(); iter.Next() {
log.Debug().Str("db", string(iter.Key())).Msg("Migrating key") log.Debug().Str("key", string(iter.Key())).Msg("Migrating key")
var params Params var params Params
if err := json.Unmarshal(iter.Value(), &params); err != nil { if err := json.Unmarshal(iter.Value(), &params); err != nil {
log.Debug().Err(err).Msg("Unmarshal error") log.Debug().Err(err).Msg("Unmarshal error")