lifecycle: make secret_key warning more prominent

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

#2131
This commit is contained in:
Jens Langhammer 2022-01-24 21:52:16 +01:00
parent 883f213b03
commit fe39e39dcd

View file

@ -28,7 +28,9 @@ def j_print(event: str, log_level: str = "info", **kwargs):
# Sanity check, ensure SECRET_KEY is set before we even check for database connectivity # Sanity check, ensure SECRET_KEY is set before we even check for database connectivity
if CONFIG.y("secret_key") is None or len(CONFIG.y("secret_key")) == 0: if CONFIG.y("secret_key") is None or len(CONFIG.y("secret_key")) == 0:
j_print("----------------------------------------------------------------------")
j_print("Secret key missing, check https://goauthentik.io/docs/installation/.") j_print("Secret key missing, check https://goauthentik.io/docs/installation/.")
j_print("----------------------------------------------------------------------")
sysexit(1) sysexit(1)