From eaeab27004fbe49e8320932bc3591adc458f679c Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 16 Jan 2022 14:56:02 +0100 Subject: [PATCH] lib: add support for custom env Signed-off-by: Jens Langhammer --- authentik/lib/utils/reflection.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/authentik/lib/utils/reflection.py b/authentik/lib/utils/reflection.py index 3a1a88d543..900c3ab5ed 100644 --- a/authentik/lib/utils/reflection.py +++ b/authentik/lib/utils/reflection.py @@ -58,4 +58,6 @@ def get_env() -> str: return "compose" if CONFIG.y_bool("debug"): return "dev" + if "AK_APPLIANCE" in os.environ: + return os.environ["AK_APPLIANCE"] return "custom"