From 0f2c6976b5a200d6ed673cddea449510c51962c7 Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Wed, 27 Mar 2024 10:42:12 +0100 Subject: [PATCH] Allow the user to set the USE_RECAPTCHA setting in the docker config --- extras/docker/development/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extras/docker/development/settings.py b/extras/docker/development/settings.py index 08a17ca7d..807bb3a5e 100644 --- a/extras/docker/development/settings.py +++ b/extras/docker/development/settings.py @@ -99,6 +99,7 @@ WGER_SETTINGS["SYNC_EXERCISE_IMAGES_CELERY"] = env.bool("SYNC_EXERCISE_IMAGES_CELERY", False) WGER_SETTINGS["SYNC_EXERCISE_VIDEOS_CELERY"] = env.bool("SYNC_EXERCISE_VIDEOS_CELERY", False) WGER_SETTINGS["SYNC_INGREDIENTS_CELERY"] = env.bool("SYNC_INGREDIENTS_CELERY", False) +WGER_SETTINGS["USE_RECAPTCHA"] = env.bool("USE_RECAPTCHA", False) WGER_SETTINGS["USE_CELERY"] = env.bool("USE_CELERY", False) # Cache @@ -129,7 +130,8 @@ AXES_COOLOFF_TIME = timedelta(minutes=env.float('AXES_COOLOFF_TIME', 30)) AXES_HANDLER = env.str('AXES_HANDLER', 'axes.handlers.cache.AxesCacheHandler') AXES_IPWARE_PROXY_COUNT = env.int('AXES_IPWARE_PROXY_COUNT', 0) -AXES_IPWARE_META_PRECEDENCE_ORDER = env.list('AXES_IPWARE_META_PRECEDENCE_ORDER', default=['REMOTE_ADDR']) +AXES_IPWARE_META_PRECEDENCE_ORDER = env.list('AXES_IPWARE_META_PRECEDENCE_ORDER', + default=['REMOTE_ADDR']) # # Django Rest Framework SimpleJWT