use SECRET_KEY as JWT secret key (until we get proper rsa support)

This commit is contained in:
informatic 2020-05-31 00:35:00 +02:00
parent f633f2d617
commit 5c6938ae5a

View file

@ -41,10 +41,10 @@ PROXYFIX_ENABLE = env.bool('PROXYFIX_ENABLE', default=True)
PROXYFIX_NUM_PROXIES = env.int('PROXYFIX_NUM_PROXIES', default=1)
JWT_CONFIG = {
"key": "secret-key",
"alg": "HS256",
"iss": "https://sso.hackerspace.pl",
"exp": 3600,
"key": env.str("JWT_SECRET_KEY", default=SECRET_KEY),
"alg": env.str("JWT_ALG", default="HS256"),
"iss": env.str("JWT_ISS", default="https://sso.hackerspace.pl"),
"exp": env.int("JWT_EXP", default=3600),
}
LOGGING_LEVEL = env.str('LOGGING_LEVEL', default=None)