Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Allow setting the number of proxies for django rest framework

Roland Geideraf19f8842585
diff --git a/extras/docker/development/settings.py b/extras/docker/development/settings.py
index 23a81c51d..8439a71b7 100644
--- a/extras/docker/development/settings.py
+++ b/extras/docker/development/settings.py
@@ -157,6 +157,8 @@ if env.bool('X_FORWARDED_PROTO_HEADER_SET', False):
'https'
)
+REST_FRAMEWORK['NUM_PROXIES'] = env.int('NUMBER_OF_PROXIES', 1)
+
#
# Celery message queue configuration
#