read secret key from file
Signed-off-by: Nico Schottelius <nico@wurzel.schottelius.org>
This commit is contained in:
parent
8b4e9f451e
commit
c1e1e4f998
1 changed files with 6 additions and 2 deletions
|
@ -27,8 +27,12 @@ LOGIN_URL = None
|
||||||
LOGOUT_URL = None
|
LOGOUT_URL = None
|
||||||
LOGIN_REDIRECT_URL = None
|
LOGIN_REDIRECT_URL = None
|
||||||
|
|
||||||
# SECURITY WARNING: keep the secret key used in production secret!
|
EMAIL_HOST="localhost"
|
||||||
SECRET_KEY = 'xlhyv_l5-z6e8_@q6)n0up1a0$5-aad7d)om2t8g$bi6*@q44i'
|
EMAIL_PORT=25
|
||||||
|
|
||||||
|
SECRET_KEY_FILE = os.path.join(BASE_DIR, "secret-key")
|
||||||
|
with open(SECRET_KEY_FILE, "r") as f:
|
||||||
|
SECRET_KEY = f.read().strip()
|
||||||
|
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = False
|
DEBUG = False
|
||||||
|
|
Loading…
Reference in a new issue