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.
2 parents abc5638 + 39b93f7 commit d4c3b18Copy full SHA for d4c3b18
admin_site/os2borgerpc_admin/settings.py
@@ -82,6 +82,12 @@
82
else:
83
CSRF_TRUSTED_ORIGINS = []
84
85
+# Proxy setup
86
+if os.environ.get("USE_X_FORWARDED_HOST"):
87
+ USE_X_FORWARDED_HOST = True
88
+if os.environ.get("SECURE_PROXY_SSL_HEADER"):
89
+ SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
90
+
91
# Local time zone for this installation. Choices can be found here:
92
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
93
# although not all choices may be available on all operating systems.
0 commit comments