feat: enable proxy headers for secure connection handling
This commit is contained in:
@@ -42,6 +42,8 @@ LOGOUT_REDIRECT_URL = "/oidc/op/landing"
|
||||
LOGIN_URL = "/oidc/op/landing"
|
||||
|
||||
ALLOWED_HOSTS = [item.strip() for item in os.getenv('DJANGO_ALLOWED_HOSTS', '*').split(',') if item.strip()]
|
||||
USE_X_FORWARDED_HOST = True
|
||||
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
|
||||
AUTH_USER_MODEL = 'spid_cie_oidc_accounts.User'
|
||||
|
||||
INSTALLED_APPS = [
|
||||
|
||||
@@ -40,6 +40,8 @@ LOGOUT_REDIRECT_URL = "/oidc/op/landing"
|
||||
LOGIN_URL = "/oidc/op/landing"
|
||||
|
||||
ALLOWED_HOSTS = ['*']
|
||||
USE_X_FORWARDED_HOST = True
|
||||
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
|
||||
AUTH_USER_MODEL = 'spid_cie_oidc_accounts.User'
|
||||
|
||||
INSTALLED_APPS = [
|
||||
|
||||
Reference in New Issue
Block a user