Make internal and host ports configurable via env vars

This commit is contained in:
Troll (Hermes Agent) 2026-07-31 20:43:36 +00:00
parent fa01ac0f32
commit 3ef8aaf45a
5 changed files with 12 additions and 6 deletions

View file

@ -21,6 +21,9 @@ class Config:
PUBLIC_BASE_URL = os.environ.get('PUBLIC_BASE_URL', 'http://127.0.0.1:5000')
BOOTH_NAME = os.environ.get('BOOTH_NAME', 'Trollgorithm Theme Songs')
# Port the container listens on internally (gunicorn)
INTERNAL_PORT = int(os.environ.get('INTERNAL_PORT', '8000'))
# Price settings (informational, for receipt page)
PRICE_PER_VERSION = float(os.environ.get('PRICE_PER_VERSION', '10.00'))
CURRENCY = os.environ.get('CURRENCY', 'CAD')