1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/diacamma_ynh.git synced 2024-09-03 18:26:10 +02:00
diacamma_ynh/conf/extra_diacamma.json
2023-12-14 17:44:01 +01:00

58 lines
No EOL
2.2 KiB
JSON

{
"LANGUAGE_CODE":"__LANGUAGE__",
"USE_X_FORWARDED_HOST":true,
"FORCE_SCRIPT_NAME":"/__APP__",
"LDAP_SERVERS": [{"host": "127.0.0.1", "port": 389, "use_ssl": false, "get_info": "NONE"}],
"LDAP_ENGINE" : "OpenLDAP",
"LDAP_BIND_USER" : "",
"LDAP_BIND_PASSWORD" : "",
"LDAP_ATTRIBUTES_MAP" : {"username": "uid", "first_name": "cn", "last_name": "sn", "email": "mail"},
"LDAP_SEARCH_BASE" : "ou=users,dc=yunohost,dc=org",
"LDAP_USER_SEARCH_FILTER" : "(&(|(objectclass=posixAccount))(uid=%uid)(permission=cn=__APP__.main,ou=permission,dc=yunohost,dc=org))",
"LDAP_USER_MODEL_USERNAME_FIELD" : "uid",
"LDAP_USE_LDAP_GROUPS" : true,
"LDAP_GROUPS_SEARCH_BASE" : "ou=groups,dc=yunohost,dc=org",
"LDAP_GROUPS_SEARCH_FILTER" : "(&(objectclass=top)(memberUid=*))",
"LDAP_GROUP_MEMBER_ATTRIBUTE" : "memberUid",
"LDAP_GROUPS_MAP" : {},
"LDAP_SUPERUSER_GROUPS" : ["permission=cn=__APP__.admins,ou=permission,dc=yunohost,dc=org"],
"LDAP_STAFF_GROUPS" : [],
"LDAP_IGNORED_LOCAL_GROUPS" : [],
"USER_READONLY": true,
"AUTHENTICATION_BACKENDS" : ["django_auth_ldap3_ad.auth.LDAP3ADBackend"],
"LOGGING" : {
"version": 1,
"disable_existing_loggers": false,
"handlers": {
"logfile": {
"class": "logging.handlers.WatchedFileHandler",
"filename": "__INSTALL_DIR__/django_error.log"
},
"console": {
"class": "logging.StreamHandler"
}
},
"loggers": {
"django": {
"level": "ERROR",
"handlers": ["logfile", "console"],
"propagate": false
},
"lucterios": {
"level": "WARNING",
"handlers": ["logfile", "console"],
"propagate": false
},
"diacamma": {
"level": "WARNING",
"handlers": ["logfile", "console"],
"propagate": false
},
"django_auth_ldap3_ad": {
"level": "WARNING",
"handlers": ["logfile", "console"],
"propagate": false
}
}
}
}