Better configs with environment vars

This commit is contained in:
Scott Idem
2023-09-08 14:01:00 -04:00
parent cccf9fd24f
commit be1bb21b7e
3 changed files with 7 additions and 5 deletions

View File

@@ -96,7 +96,7 @@ AE_API_LOG_PATH="/logs/aether_api.log"
AE_API_WORKERS=2
AE_API_THREADS=1
AE_API_RELOAD=False
AE_API_JWT_KEY="ABC123 22 CHARS" # 22 characters; super secret Aether JWT signing key
# Aether app specific config (Flask with Svelte)
AE_APP_CFG_ID=0
@@ -110,4 +110,6 @@ AE_APP_WORKERS=2
AE_APP_THREADS=1
AE_APP_RELOAD=True
# Generate a new key with: # python -c 'import os; print(os.urandom(16))'
AE_APP_CACHE_SECRET_KEY="$\x93\x12\xb4R\x80R\xb5\xe50\xa0k\xc8#RN"
AE_APP_CACHE_SECRET_KEY="$\x93\x12\xb4R\x80R\xb5\xe50\xa0k\xc8#RN"
AE_APP_SESSION_LIFETIME=86400 # How long the browser cookies last in seconds (default=86400)
AE_APP_CACHE_TIMEOUT=5 # How long the Flask app caching last in seconds (default=5)