change(rewrite)!: Rename SECRET to SECURITY_SECRET for consistency

This commit is contained in:
tecc 2023-09-15 15:17:19 +02:00
parent 6748ac1a53
commit 93f0d5065f
No known key found for this signature in database
GPG Key ID: 622EEC5BAE5EBD3A
2 changed files with 3 additions and 2 deletions

View File

@ -21,4 +21,5 @@ HTTP_BASE_URL=http://localhost:4000
# HTTP_HOST=0.0.0.0 # HTTP_HOST=0.0.0.0
# HTTP_PORT=4000 # HTTP_PORT=4000
SECRET=changeme # -- Do change this variable, lest you wish to anger the computer.
SECURITY_SECRET=changeme

View File

@ -87,7 +87,7 @@ export function loadConfigFromEnv(): Config {
port: envVarOrDefault("HTTP_PORT", parseInteger, 4000), port: envVarOrDefault("HTTP_PORT", parseInteger, 4000),
}, },
security: { security: {
secret: envVarNotNull("SECRET", identity), secret: envVarNotNull("SECURITY_SECRET", identity),
}, },
localeDataPath: envVarOrDefault( localeDataPath: envVarOrDefault(
"LOCALE_DATA_PATH", "LOCALE_DATA_PATH",