force script name so it works behind proxy_pass
This commit is contained in:
parent
bca7a22085
commit
216a5c3c9f
1 changed files with 10 additions and 2 deletions
|
@ -131,8 +131,16 @@ AUTHENTICATION_BACKENDS = (
|
||||||
'django_auth_ldap.backend.LDAPBackend',
|
'django_auth_ldap.backend.LDAPBackend',
|
||||||
)
|
)
|
||||||
|
|
||||||
LOGIN_REDIRECT_URL = '/'
|
USE_X_FORWARDED_HOST = True
|
||||||
LOGOUT_REDIRECT_URL = '/'
|
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
|
# Internationalization
|
||||||
# https://docs.djangoproject.com/en/2.1/topics/i18n/
|
# https://docs.djangoproject.com/en/2.1/topics/i18n/
|
||||||
|
|
Loading…
Reference in a new issue