Self hosted FLOSS fitness/workout, nutrition and weight tracker
Add AUTH_PROXY_HEADER configuration to docker config as well as default global one
Roland Geider01f5d31979e8
diff --git a/extras/docker/production/settings.py b/extras/docker/production/settings.pyindex 4ea61bc50..86521b057 100644--- a/extras/docker/production/settings.py+++ b/extras/docker/production/settings.py@@ -101,6 +101,7 @@ WGER_SETTINGS["SYNC_INGREDIENTS_CELERY"] = env.bool("SYNC_INGREDIENTS_CELERY", FWGER_SETTINGS["SYNC_OFF_DAILY_DELTA_CELERY"] = env.bool("SYNC_OFF_DAILY_DELTA_CELERY", False)WGER_SETTINGS["USE_RECAPTCHA"] = env.bool("USE_RECAPTCHA", False)WGER_SETTINGS["USE_CELERY"] = env.bool("USE_CELERY", False)+WGER_SETTINGS["AUTH_PROXY_HEADER"] = env.str("AUTH_PROXY_HEADER", '')# Cacheif os.environ.get("DJANGO_CACHE_BACKEND"):diff --git a/wger/settings_global.py b/wger/settings_global.pyindex 52b897207..68f5a7d1b 100644--- a/wger/settings_global.py+++ b/wger/settings_global.py@@ -23,7 +23,6 @@ from datetime import timedeltafrom wger.utils.constants import DOWNLOAD_INGREDIENT_WGERfrom wger.version import get_version-"""This file contains the global settings that don't usually need to be changed.For a full list of options, visit:@@ -549,6 +548,7 @@ WGER_SETTINGS = {'USE_CELERY': False,'USE_RECAPTCHA': False,'WGER_INSTANCE': 'https://wger.de',+ 'AUTH_PROXY_HEADER': ''}#