moved AccountManager secret to environment

This commit is contained in:
Kay Kaprolat 2021-12-07 22:08:53 +01:00
parent b46f833e23
commit 7a55db3f21
3 changed files with 5 additions and 1 deletions

View File

@ -3,4 +3,6 @@ CLIENT_PATH=/Users/someuser/LEGO Universe
# Can improve build time
BUILD_THREADS=10
# Updates NET_VERSION in CMakeVariables.txt
BUILD_VERSION=171023
BUILD_VERSION=171023
# make sure this is a long random string
ACCOUNT_MANAGER_SECRET=

View File

@ -54,6 +54,7 @@ services:
- DATABASE_HOST=database
- DATABASE_USER=${MARIADB_USER:-darkflame}
- DATABASE_PASSWORD=${MARIADB_PASSWORD:-darkflame}
- ACCOUNT_SECRET=${ACCOUNT_MANAGER_SECRET:?err}
ports:
- 5000:5000

View File

@ -1,3 +1,4 @@
import os
DB_URL = f'mysql+pymysql://{os.environ["DATABASE_USER"]}:{os.environ["DATABASE_PASSWORD"]}@{os.environ["DATABASE_HOST"]}/{os.environ["DATABASE"]}'
SECRET_KEY = os.environ["ACCOUNT_SECRET"]