"""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'

# 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'

# The hostname and port number where this LUMI2 instance can be reached.
#SERVER_NAME = 'lumi2.example.com:80'
# Maximum size in Bytes for incoming requests.
# Limits the size of uploaded user profile pictures.
MAX_CONTENT_LENGTH = 8_000_000

# If specified, an HTTP access log is saved to this file.
# Make sure the directory for the log file exists and is writeable by lumi2.
#LOG_FILE_PATH = '/path/to/file.log'
# Maximum log file size in Bytes. When exceeded, the log gets rotated.
# Set to 0 to disable log file rotation (can eat up disk space!)
#LOG_FILE_MAX_SIZE = 32_000_000

# The title of pages as displayed in the browser.
SITE_TITLE = 'LUMI 2'
# Additional metadata as displayed by browsers, search engines, etc.
SITE_AUTHOR = 'LUMI 2 Development Team'
SITE_DESCRIPTION = 'A simple frontend for LDAP account management.'
