mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 05:27:19 +00:00
moved AccountManager secret to environment
This commit is contained in:
parent
b46f833e23
commit
7a55db3f21
@ -4,3 +4,5 @@ CLIENT_PATH=/Users/someuser/LEGO Universe
|
||||
BUILD_THREADS=10
|
||||
# Updates NET_VERSION in CMakeVariables.txt
|
||||
BUILD_VERSION=171023
|
||||
# make sure this is a long random string
|
||||
ACCOUNT_MANAGER_SECRET=
|
||||
|
@ -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
|
||||
|
||||
|
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user