Get django to respect rproxy forwarding headers
This commit is contained in:
parent
dbfcaccf03
commit
59d5af5d37
1 changed files with 3 additions and 0 deletions
|
|
@ -133,3 +133,6 @@ AUTHENTICATION_BACKENDS = [
|
|||
"oauth2_authcodeflow.auth.AuthenticationBackend",
|
||||
"django.contrib.auth.backends.ModelBackend",
|
||||
]
|
||||
|
||||
USE_X_FORWARDED_HOST = True
|
||||
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue