We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cbf53d commit a70c126Copy full SHA for a70c126
codeforlife/server.py
@@ -112,6 +112,7 @@ def __init__(
112
"bind": "0.0.0.0:8080",
113
"workers": 1 if mode == "celery" else workers,
114
"worker_class": "uvicorn.workers.UvicornWorker",
115
+ "forwarded_allow_ips": "*",
116
}
117
118
if mode == "celery":
codeforlife/settings/django.py
@@ -170,6 +170,7 @@ def get_databases():
170
SECURE_CONTENT_TYPE_NOSNIFF = True
171
SECURE_BROWSER_XSS_FILTER = True
172
SECURE_REFERRER_POLICY = "strict-origin-when-cross-origin"
173
+SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
174
175
# Internationalization
176
# https://docs.djangoproject.com/en/5.1/topics/i18n/
0 commit comments