2021-01-25 12:14:02 +00:00
|
|
|
# This is the example configuation and the default configuration
|
|
|
|
# All default values are uncommented, so set enabled ones to False to disabled them
|
|
|
|
|
|
|
|
[FLASCHENGEIST]
|
|
|
|
# Select authentication provider (builtin: auth_plain, auth_ldap)
|
|
|
|
auth = "auth_plain"
|
|
|
|
# Enable if you run flaschengeist behind a proxy, e.g. nginx + gunicorn
|
|
|
|
#proxy = false
|
|
|
|
# Set root path, prefixes all routes
|
2021-11-15 15:32:24 +00:00
|
|
|
root = "/api"
|
2021-01-25 12:14:02 +00:00
|
|
|
# Set secret key
|
|
|
|
secret_key = "V3ryS3cr3t"
|
|
|
|
# Domain used by frontend
|
|
|
|
#domain = "flaschengeist.local"
|
|
|
|
|
|
|
|
[LOGGING]
|
2021-11-16 12:43:19 +00:00
|
|
|
# You can override all settings from the logging.toml here
|
|
|
|
# E.g. override the formatters etc
|
|
|
|
#
|
2021-01-25 12:14:02 +00:00
|
|
|
# Logging level, possible: DEBUG INFO WARNING ERROR
|
2021-11-16 12:43:19 +00:00
|
|
|
level = "DEBUG"
|
|
|
|
# Uncomment to enable logging to a file
|
|
|
|
# file = "/tmp/flaschengeist-debug.log"
|
|
|
|
# Uncomment to disable console logging
|
|
|
|
# console = False
|
2021-01-25 12:14:02 +00:00
|
|
|
|
|
|
|
[DATABASE]
|
2021-05-26 23:27:53 +00:00
|
|
|
# engine = "mysql" (default)
|
2021-11-15 15:32:24 +00:00
|
|
|
|
|
|
|
[FILES]
|
|
|
|
# Path for file / image uploads
|
|
|
|
data_path = "./data"
|
|
|
|
# Thumbnail size
|
|
|
|
thumbnail_size = [192, 192]
|
|
|
|
# Accepted mimetypes
|
|
|
|
allowed_mimetypes = [
|
|
|
|
"image/avif",
|
|
|
|
"image/jpeg",
|
|
|
|
"image/png",
|
|
|
|
"image/webp"
|
|
|
|
]
|
2021-01-25 12:14:02 +00:00
|
|
|
|
|
|
|
[auth_plain]
|
|
|
|
enabled = true
|
|
|
|
|
2021-07-29 13:50:03 +00:00
|
|
|
[auth_ldap]
|
|
|
|
# Full documentation https://flaschengeist.dev/Flaschengeist/flaschengeist/wiki/plugins_auth_ldap
|
|
|
|
enabled = false
|
|
|
|
# host = "localhost"
|
|
|
|
# port = 389
|
|
|
|
# base_dn = "dc=example,dc=com"
|
|
|
|
# root_dn = "cn=Manager,dc=example,dc=com"
|
|
|
|
# root_secret = "SuperS3cret"
|
|
|
|
# Uncomment to use secured LDAP (ldaps)
|
|
|
|
# use_ssl = true
|
2021-01-25 12:14:02 +00:00
|
|
|
|
|
|
|
[MESSAGES]
|
|
|
|
welcome_subject = "Welcome to Flaschengeist {name}"
|
|
|
|
welcome_text = '''
|
|
|
|
Hello {name}!
|
|
|
|
Welcome to Flaschengeist!
|
|
|
|
|
|
|
|
Your username is {username}, please set your password:
|
|
|
|
{password_link}
|
|
|
|
(If the link expires, please just use the Forgot-Password-function).
|
|
|
|
|
|
|
|
Have fun :)
|
|
|
|
'''
|
|
|
|
|
|
|
|
password_subject = "Flaschengeist - Password reset"
|
|
|
|
password_text = '''
|
|
|
|
Hello {name}!
|
|
|
|
There was a password reset request for username: {username}
|
|
|
|
|
|
|
|
To change your password, click on this link:
|
|
|
|
{link}
|
|
|
|
'''
|
|
|
|
|
|
|
|
password_changed_subject = "Flaschengeist - Password changed"
|
|
|
|
password_changed_text = '''
|
|
|
|
Hello {name}!
|
|
|
|
Your password was changed for username: {username}
|
|
|
|
|
|
|
|
If this was not you, please contact the support.
|
|
|
|
'''
|
|
|
|
|
|
|
|
##################
|
|
|
|
# PLUGINS #
|
|
|
|
##################
|
|
|
|
|
|
|
|
[users]
|
|
|
|
# always enabled
|
|
|
|
|
|
|
|
## allowed values: false, "managed", "public"
|
|
|
|
## false: Disable registration
|
|
|
|
## "managed": only users with matching permission are allowed to register new users
|
|
|
|
## "public": Also unauthenticated users can register an account
|
|
|
|
# registration = False
|
|
|
|
|
|
|
|
############################
|
|
|
|
# Configuration of plugins #
|
|
|
|
############################
|
|
|
|
[mail]
|
|
|
|
# enabled = true
|
|
|
|
# SERVER =
|
|
|
|
# PORT =
|
|
|
|
# USER =
|
|
|
|
# PASSWORD =
|
|
|
|
# MAIL =
|
|
|
|
# SSL or STARTLS
|
|
|
|
# CRYPT = SSL
|
|
|
|
|
|
|
|
[balance]
|
|
|
|
# enabled = true
|
|
|
|
# Enable a default limit, will be set if no other limit is set
|
|
|
|
# limit = -10.00
|