diff --git a/frontends/web/.env.example b/frontends/web/.env.example index 72d13f9..014e3eb 100644 --- a/frontends/web/.env.example +++ b/frontends/web/.env.example @@ -5,9 +5,10 @@ STEGASOO_AUTH_ENABLED=true STEGASOO_HTTPS_ENABLED=false STEGASOO_HOSTNAME=localhost +STEGASOO_PORT=5000 -# Channel Key (256-bit hex for private channel isolation) -# Generate with: python -c "import secrets; print(secrets.token_hex(32))" +# Channel Key (format: XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX) +# Generate with: stegasoo generate --channel-key # Leave empty for public mode STEGASOO_CHANNEL_KEY= diff --git a/frontends/web/app.py b/frontends/web/app.py index b2bb6a3..258a593 100644 --- a/frontends/web/app.py +++ b/frontends/web/app.py @@ -1405,9 +1405,10 @@ if __name__ == "__main__": else: print("Authentication disabled") + port = int(os.environ.get("STEGASOO_PORT", "5000")) app.run( host="0.0.0.0", - port=5000, + port=port, debug=False, ssl_context=ssl_context, ) diff --git a/frontends/web/templates/generate.html b/frontends/web/templates/generate.html index 476aecd..95a4bd9 100644 --- a/frontends/web/templates/generate.html +++ b/frontends/web/templates/generate.html @@ -74,36 +74,47 @@ -