Throw error message on missing config

This commit is contained in:
Simon 2024-02-07 23:41:56 +01:00
parent 1a8809d6b5
commit 08b19f76eb
2 changed files with 8 additions and 2 deletions

View File

@ -447,7 +447,13 @@ def config(apps):
""" Configure the apps """
for instance, instance_config in CONFIGS.items():
if apps:
selected_apps = [app for app in apps if app in instance_config.keys()]
selected_apps = []
for app in apps:
if app in instance_config.keys():
selected_apps.append(app)
else:
logging.error(f' App config \'{app}\' not found for {instance}!')
exit(1)
else:
selected_apps = instance_config.keys()
for app in selected_apps:

View File

@ -95,7 +95,7 @@ outline:
OIDC_AUTH_URI: https://authentik.example.com/application/o/authorize/
OIDC_TOKEN_URI: https://authentik.example.com/application/o/token/
OIDC_USERINFO_URI: https://authentik.example.com/application/o/userinfo/
OIDC_DISPLAY_NAME: "Login via Authentik"
OIDC_DISPLAY_NAME: "Authentik"
uncomment:
- compose.oidc.yml
- OIDC_ENABLED