Commit 216a5c3c authored by Aatish Neupane's avatar Aatish Neupane

force script name so it works behind proxy_pass

parent bca7a220
......@@ -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/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment