force script name so it works behind proxy_pass

This commit is contained in:
aatish 2018-11-16 21:09:34 +05:45
parent bca7a22085
commit 216a5c3c9f
1 changed files with 10 additions and 2 deletions

View File

@ -131,8 +131,16 @@ AUTHENTICATION_BACKENDS = (
'django_auth_ldap.backend.LDAPBackend',
)
LOGIN_REDIRECT_URL = '/'
LOGOUT_REDIRECT_URL = '/'
USE_X_FORWARDED_HOST = True
FORCE_SCRIPT_NAME = '/ipv6/work/'
LOGIN_URL = 'login'
LOGOUT_URL = 'logout'
ROOT_URLCONF = 'ipv6work.urls'
LOGIN_REDIRECT_URL = FORCE_SCRIPT_NAME
LOGOUT_REDIRECT_URL = FORCE_SCRIPT_NAME
# Internationalization
# https://docs.djangoproject.com/en/2.1/topics/i18n/