diff --git a/README.md b/README.md index 554faf2..aa07cc6 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,6 @@ Federated Lightning Address Server 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): -(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 @@ -21,6 +19,17 @@ SITE_NAME=Bitmia 3. Start the app with `./satdress` 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 Maybe ask for help on https://t.me/lnurl if you're in trouble. diff --git a/db.go b/db.go index 411dca0..3a143cf 100644 --- a/db.go +++ b/db.go @@ -130,7 +130,7 @@ func tryMigrate(old, new string) { defer iter.Close() 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 if err := json.Unmarshal(iter.Value(), ¶ms); err != nil { log.Debug().Err(err).Msg("Unmarshal error")