diff --git a/modules/lamassu-lnbits.nix b/modules/lamassu-lnbits.nix index 6eba981..cdae44a 100644 --- a/modules/lamassu-lnbits.nix +++ b/modules/lamassu-lnbits.nix @@ -43,7 +43,11 @@ in adminPort = mkOption { type = types.port; default = 8070; - description = "Port for the lamassu admin interface"; + description = '' + Port for the lamassu admin interface in dev mode. + Only used when devMode = true. In production mode, the admin + interface always runs on port 443 (hardcoded in upstream). + ''; }; dataDir = mkOption { @@ -426,7 +430,6 @@ in environment = { NODE_ENV = "production"; - ADMIN_SERVER_PORT = toString cfg.adminPort; LOG_LEVEL = cfg.logLevel; HOSTNAME = cfg.hostname; CA_PATH = cfg.certPath; @@ -509,8 +512,8 @@ in sudo -u ${cfg.database.user} ${pkgs.postgresql}/bin/psql -d ${cfg.database.name} -c "SELECT version();" echo "" echo "=== Network Access ===" - echo "Server: http://localhost:${toString cfg.serverPort}" - echo "Admin: http://localhost:${toString cfg.adminPort}" + echo "Server API: https://localhost:${toString cfg.serverPort}" + echo "Admin UI: https://localhost:${if cfg.devMode then toString cfg.adminPort else "443"}" '') ]; };