2022-08-30 18:18:38 +02:00
|
|
|
# Should be copied to ../instance folder to override some values
|
|
|
|
# WARNING: Be sure not to leave spaces around `=` because this
|
|
|
|
# Config file will be used both by Python and Bash
|
|
|
|
|
|
|
|
# Generate with `python -c 'import secrets; print(secrets.token_hex())'`
|
|
|
|
SECRET_KEY="dev"
|
|
|
|
|
|
|
|
# Port to run on
|
2022-10-25 18:45:08 +02:00
|
|
|
PORT="5000"
|
2023-06-24 16:05:05 +02:00
|
|
|
|
|
|
|
# Number of online queries an "normal user" can do
|
|
|
|
MAX_ONLINE_QUERIES=3
|
|
|
|
|
|
|
|
# Disable registration of new users via /auth/register (they can still be added by root)
|
2023-11-19 18:45:25 +01:00
|
|
|
DISABLE_REGISTER=False
|
|
|
|
|
2024-02-28 23:59:14 +01:00
|
|
|
# Disable account deletion for users (still possible for admins)
|
|
|
|
DISABLE_ACCOUNT_DELETION=False
|
|
|
|
|
2023-11-19 18:45:25 +01:00
|
|
|
# Front URL of the application (for QRCodes generation)
|
2023-12-15 11:36:34 +01:00
|
|
|
BASE_URL="http://localhost:5000"
|
2024-01-13 12:44:28 +01:00
|
|
|
|
|
|
|
# Session expiration, in days
|
|
|
|
MAX_AGE=31
|
2024-01-16 18:50:19 +01:00
|
|
|
|
|
|
|
# Instance path ie. where are all the files + the database stored
|
|
|
|
# Keep in mind that this config option can only be loaded from default_config.py,
|
|
|
|
# as the custom config is stored in $INSTANCE_PATH/
|
|
|
|
INSTANCE_PATH="instance"
|
2024-01-19 13:48:23 +01:00
|
|
|
|
|
|
|
# Events to log
|
2024-02-28 23:38:14 +01:00
|
|
|
ENABLED_LOGS=["NEW_GROUPE", "NEW_ALBUM", "NEW_PARTITION", "NEW_USER", "PASSWORD_CHANGE", "DELETE_ACCOUNT", "SERVER_RESTART", "FAILED_LOGIN"]
|
2024-01-22 16:06:03 +01:00
|
|
|
|
|
|
|
# Available languages
|
2024-01-29 18:37:30 +01:00
|
|
|
LANGUAGES=['en', 'fr']
|
|
|
|
|
|
|
|
# Show Launch page
|
|
|
|
LAUNCH_PAGE=True
|