From 7a55db3f215e44d12a2b85da363052f834a0dcd6 Mon Sep 17 00:00:00 2001 From: Kay Kaprolat Date: Tue, 7 Dec 2021 22:08:53 +0100 Subject: [PATCH] moved AccountManager secret to environment --- .env.example | 4 +++- docker-compose.yml | 1 + docker/credentials_example.py | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) 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"]