Throw error message on missing config
This commit is contained in:
parent
1a8809d6b5
commit
08b19f76eb
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue