1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/django-fmd_ynh.git synced 2024-09-03 18:26:27 +02:00

small changes

This commit is contained in:
JensDiemer 2022-08-16 08:59:39 +02:00
parent 882a811389
commit 90282a4a22
2 changed files with 28 additions and 12 deletions

View file

@ -3,18 +3,34 @@
version = "1.0"
[main]
name = "Settings"
[main.findmydevice_config]
name = "django-fmd configuration"
# Trigger a service reload-or-restart after the user change a question in this panel
services = ["__APP__"]
[main.findmydevice_config.django_debug]
ask = "debug mode"
help = "Important: Never activate this settings.DEBUG on production!"
[main.config]
name = "Configuration Options"
[main.config.default_from_email]
ask = "from email"
type = "string"
help = "Default email address to use for various automated emails."
bind = "default_from_email:__FINALPATH__/settings.py"
[main.config.admin_email]
ask = "ADMIN email"
type = "string"
help = "EMail address for error emails."
bind = "admin_email:__FINALPATH__/settings.py"
[main.config.debug_enabled]
ask = "DEBUG mode"
type = "boolean"
yes = "True"
no = "False"
bind = "DJANGO_DEBUG:__FINALPATH__/local_settings.py"
yes = "1"
no = "0"
help = "Should be never enabled in production!"
bind = "debug_enabled:__FINALPATH__/settings.py"
[main.config.log_level]
type = "string"
ask = "Log Level"
choices = ["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"]
default = "WARNING"
bind = "log_level:__FINALPATH__/settings.py"

View file

@ -23,7 +23,7 @@
},
"multi_instance": false,
"services": [
"nginx"
"nginx", "postgresql", "redis"
],
"arguments": {
"install" : [