2023-11-09 20:37:13 +01:00
|
|
|
# https://yunohost.org/en/packaging_config_panels
|
2023-04-02 20:15:56 +02:00
|
|
|
# https://github.com/YunoHost/example_ynh/blob/master/config_panel.toml.example
|
|
|
|
|
2022-09-18 19:00:39 +02:00
|
|
|
version = "1.0"
|
|
|
|
|
|
|
|
[main]
|
2023-04-02 20:15:56 +02:00
|
|
|
name.en = "Main configuration"
|
|
|
|
name.fr = "Configuration principale"
|
2022-09-18 19:00:39 +02:00
|
|
|
services = ["__APP__"]
|
|
|
|
|
|
|
|
[main.config]
|
|
|
|
name = "Configuration Options"
|
|
|
|
|
|
|
|
[main.config.default_from_email]
|
|
|
|
ask = "from email"
|
|
|
|
type = "email"
|
|
|
|
help = "Default email address to use for various automated emails."
|
2023-11-09 20:37:13 +01:00
|
|
|
#
|
|
|
|
# We can't use "__DATA_DIR__" in bind value, because of this bug:
|
|
|
|
# https://github.com/YunoHost/issues/issues/2283
|
|
|
|
bind = "default_from_email:/home/yunohost.app/__APP__/settings.py"
|
2022-09-18 19:00:39 +02:00
|
|
|
|
|
|
|
[main.config.admin_email]
|
|
|
|
ask = "ADMIN email"
|
|
|
|
type = "email"
|
|
|
|
help = "EMail address for error emails."
|
2023-11-09 20:37:13 +01:00
|
|
|
bind = "admin_email:/home/yunohost.app/__APP__/settings.py"
|
2022-09-18 19:00:39 +02:00
|
|
|
|
|
|
|
[main.config.debug_enabled]
|
|
|
|
ask = "DEBUG mode"
|
|
|
|
type = "boolean"
|
|
|
|
yes = "1"
|
|
|
|
no = "0"
|
|
|
|
help = "Should be never enabled in production!"
|
2023-11-09 20:37:13 +01:00
|
|
|
bind = "debug_enabled:/home/yunohost.app/__APP__/settings.py"
|
2022-09-18 19:00:39 +02:00
|
|
|
|
|
|
|
[main.config.log_level]
|
|
|
|
type = "string"
|
|
|
|
ask = "Log Level"
|
|
|
|
choices = ["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"]
|
|
|
|
default = "WARNING"
|
2023-11-09 20:37:13 +01:00
|
|
|
bind = "log_level:/home/yunohost.app/__APP__/settings.py"
|