mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-20 05:56:53 +00:00
feat(server): add app-config core with fail-fast env validation
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
# NOTE: variables are validated at startup (fail-fast). An UNSET or blank
|
||||
# variable always falls back to its default, but a variable that is set to a
|
||||
# malformed value (e.g. PORT=abc, SESSION_DURATION=bogus, DEMO_MODE=maybe)
|
||||
# aborts boot with a report of every offending variable.
|
||||
# Boolean switches accept true/false, 1/0, on/off and yes/no (any casing).
|
||||
PORT=3001 # Port to run the server on
|
||||
# HOST=0.0.0.0 # Bind address for the HTTP server. Only set this when running TREK from sources or via the Proxmox community script — never in Docker (the container handles binding).
|
||||
NODE_ENV=development # development = development mode; production = production mode
|
||||
|
||||
Reference in New Issue
Block a user