diff --git a/.env.example b/.env.example index 4abf6a3c..9db3008d 100644 --- a/.env.example +++ b/.env.example @@ -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 \ No newline at end of file +BUILD_VERSION=171023 +# make sure this is a long random string +ACCOUNT_MANAGER_SECRET= diff --git a/docker-compose.yml b/docker-compose.yml index b629584e..b6a9ee39 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/docker/credentials_example.py b/docker/credentials_example.py index 60e06f1d..2112fbed 100644 --- a/docker/credentials_example.py +++ b/docker/credentials_example.py @@ -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"]