Working dev env in docker
This commit is contained in:
@@ -37,37 +37,9 @@ INSTALLED_APPS_LOCAL = [
|
||||
|
||||
# LDAP AUTH
|
||||
AUTHENTICATION_BACKENDS = (
|
||||
'django_python3_ldap.auth.LDAPBackend',
|
||||
'django.contrib.auth.backends.ModelBackend',
|
||||
)
|
||||
LDAP_AUTH_URL = "ldaps://SERVER:PORT"
|
||||
LDAP_AUTH_USE_TLS = True
|
||||
LDAP_AUTH_SEARCH_BASE = "ou=USERS,dc=MY,dc=ORG"
|
||||
LDAP_AUTH_OBJECT_CLASS = "inetOrgPerson"
|
||||
LDAP_AUTH_USER_FIELDS = {
|
||||
"username": "uid",
|
||||
"first_name": "givenName",
|
||||
"last_name": "sn",
|
||||
"email": "mail",
|
||||
}
|
||||
LDAP_AUTH_FORMAT_SEARCH_FILTERS = "dashboard.module.custom_format_search_filters"
|
||||
LDAP_AUTH_CUSTOM_OBJECT_CLASS = "ACLASS"
|
||||
LDAP_AUTH_CUSTOM_FILTERS = "(SOMEFIELD=SOMEVALUE)"
|
||||
|
||||
MIDDLEWARE_LOCAL = [
|
||||
'debug_toolbar.middleware.DebugToolbarMiddleware',
|
||||
]
|
||||
|
||||
# Static files (CSS, JavaScript, Images)
|
||||
# https://docs.djangoproject.com/en/1.10/howto/static-files/
|
||||
|
||||
STATIC_URL = '/static/'
|
||||
STATIC_ROOT = os.path.join(BASE_DIR, './static')
|
||||
|
||||
# custom
|
||||
RESULT_DIR = os.path.join(BASE_DIR, 'results')
|
||||
RESULT_PACKAGES_DIR = os.path.join(BASE_DIR, 'results-packages')
|
||||
INVENTORY_DIR = os.path.join(BASE_DIR, 'inventory')
|
||||
|
||||
LOGIN_URL = '/login'
|
||||
LOGIN_REDIRECT_URL = 'index'
|
||||
|
||||
Reference in New Issue
Block a user