35 lines
1.5 KiB
Python
35 lines
1.5 KiB
Python
"""Configuration file for LUMI2."""
|
|
|
|
# The Flask secret key used cryptographic operations.
|
|
# This should be a long (>32 characters), random alphanumeric string.
|
|
SECRET_KEY = 'CHANGEME'
|
|
# The hashed administrator password, which defaults to 'admin'.
|
|
# Replace this with the hash of a STRONG password.
|
|
ADMIN_PASSWORD = 'pbkdf2:sha256:260000$J9yKJOAvWfvaO9Op$f959d88402f67a5143808a00e35d17e636546f1caf5a85c1b6ab1165d1780448'
|
|
|
|
# The hostname and port number where this LUMI2 instance can be reached.
|
|
#SERVER_NAME = 'lumi2.example.com:80'
|
|
|
|
# The title of pages as displayed in the browser.
|
|
SITE_TITLE = 'LUMI 2'
|
|
# Site metadata as displayed by search engines.
|
|
SITE_AUTHOR = 'LUMI 2 Development Team'
|
|
SITE_DESCRIPTION = 'A simple frontend for LDAP account management.'
|
|
|
|
# URL or hostname of the LDAP server.
|
|
# Currently, only unencrypted connections are supported.
|
|
LDAP_HOSTNAME = 'ldap://openldap'
|
|
# Credentials for an LDAP bind user with read- and write access to the server.
|
|
LDAP_BIND_USER_DN = 'cn=admin,dc=example,dc=com'
|
|
LDAP_BIND_USER_PASSWORD = 'admin'
|
|
# Base DN of the LDAP server.
|
|
LDAP_BASE_DN = 'dc=example,dc=com'
|
|
|
|
# DN of the organizational unit beneath which users are located.
|
|
LDAP_USERS_OU = 'ou=users,dc=example,dc=com'
|
|
# DN of the organizational unit beneath which groups are located.
|
|
LDAP_GROUPS_OU = 'ou=groups,dc=example,dc=com'
|
|
|
|
# Maximum size in Bytes for incoming requests, both for improved security and
|
|
# to limit the size of uploaded user profile pictures.
|
|
MAX_CONTENT_LENGTH = 8_000_000
|