[damned-lies/oscp] Set the SECURE_PROXY_SSL_HEADER setting
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies/oscp] Set the SECURE_PROXY_SSL_HEADER setting
- Date: Sat, 25 Dec 2021 23:06:16 +0000 (UTC)
commit a1780f0d1bbc7fe5f7f9039096cab47e92c3b7aa
Author: Claude Paroz <claude 2xlibre net>
Date: Sun Dec 26 00:04:58 2021 +0100
Set the SECURE_PROXY_SSL_HEADER setting
See https://docs.djangoproject.com/en/stable/ref/settings/#secure-proxy-ssl-header
httpd/local_settings.py | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/httpd/local_settings.py b/httpd/local_settings.py
index 774235da..ef1e9c9c 100644
--- a/httpd/local_settings.py
+++ b/httpd/local_settings.py
@@ -29,6 +29,7 @@ SECRET_KEY = '$SECRET_KEY'
ALLOWED_HOSTS=['l10n.gnome.org', '8.43.85.13', '8.43.85.14', '8.43.85.29']
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
+SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
EMAIL_HOST = 'smtp-int.gnome.org'
EMAIL_SUBJECT_PREFIX = '[DL]'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]