From bdc76bd3a8a31c6db97180b3fdbfff76fe95f371 Mon Sep 17 00:00:00 2001 From: jwinterm Date: Mon, 3 Aug 2026 15:46:07 -0400 Subject: [PATCH] examples: ADMIN_BIND collides with SERVER_PORT=8081 public-free and paid-relay both set SERVER_PORT=8081, which is the ADMIN_BIND default (config.rs). An operator following either example with the admin plane enabled gets 'Address already in use' at startup and no obvious cause. Moves ADMIN_BIND rather than SERVER_PORT so the nginx config in the example still matches. --- examples/paid-relay/.env.example | 5 +++++ examples/public-free/.env.example | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/examples/paid-relay/.env.example b/examples/paid-relay/.env.example index 087ac21..f40f20a 100644 --- a/examples/paid-relay/.env.example +++ b/examples/paid-relay/.env.example @@ -13,6 +13,11 @@ SERVER_HOST=127.0.0.1 SERVER_PORT=8081 +# ADMIN_BIND defaults to 127.0.0.1:8081, which is the SAME port as SERVER_PORT +# above. With the admin plane enabled the process fails to start with +# "Address already in use". Move it rather than moving SERVER_PORT, so the +# nginx config in this example keeps working. +ADMIN_BIND=127.0.0.1:8091 # REQUIRED: replace with YOUR real https domain. The your-domain.example placeholder # is rejected at boot in production (Nostr identity is on by default). PUBLIC_API_URL=https://api.your-domain.example/api/v1 diff --git a/examples/public-free/.env.example b/examples/public-free/.env.example index 6534ba8..dcaa314 100644 --- a/examples/public-free/.env.example +++ b/examples/public-free/.env.example @@ -9,6 +9,11 @@ SERVER_HOST=127.0.0.1 SERVER_PORT=8081 +# ADMIN_BIND defaults to 127.0.0.1:8081, which is the SAME port as SERVER_PORT +# above. With the admin plane enabled the process fails to start with +# "Address already in use". Move it rather than moving SERVER_PORT, so the +# nginx config in this example keeps working. +ADMIN_BIND=127.0.0.1:8091 # REQUIRED: replace with YOUR real https domain. The your-domain.example placeholder # is rejected at boot in production (Nostr identity is on by default). PUBLIC_API_URL=https://api.your-domain.example/api/v1