1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/fider_ynh.git synced 2024-09-03 18:36:11 +02:00

[enh] Update config panel example

This commit is contained in:
ljf (zamentur) 2021-06-01 01:26:50 +02:00 committed by GitHub
parent 1dc8e862a6
commit 6431e1eaff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,21 +12,21 @@ name = "Main configuration"
[main.config_file.from_email] [main.config_file.from_email]
ask = "Outgoing email From" ask = "Outgoing email From"
type = "string" type = "email"
help = "Email from which comes email from this app" help = "Email from which comes email from this app"
pattern = "^[^@]+@[^@]+$" pattern = "^[^@]+@[^@]+$"
source = "__FINALPATH__/conf/config.php" source = "email:__FINALPATH__/conf/config.php"
[main.config_file.expiration] [main.config_file.expiration]
ask = "Default expiration" ask = "Default expiration"
type = "date" type = "date"
pattern = "^\d\d\d\d-\d\d-\d\d$" pattern = "^\d\d\d\d-\d\d-\d\d$"
source = "__FINALPATH__/conf/config.php" source = ":__FINALPATH__/conf/config.php"
[main.config_file.logo] [main.config_file.logo]
ask = "Outgoing email From" ask = "Logo"
type = "file" type = "file"
default = "" accept = ".png"
optional = true optional = true
help = "You should upload a CA certificate to start" help = "You should upload a CA certificate to start"
source="__FINALPATH__/img/logo.png" source="__FINALPATH__/img/logo.png"
@ -37,19 +37,20 @@ name = "Main configuration"
[main.auth.user] [main.auth.user]
ask = "Username" ask = "Username"
type = "string" type = "string"
default = "" example = "camille"
optional = true optional = true
pattern = "^[^/ ]+$" pattern = "^[^/ ]+$"
[main.auth.passphrase] [main.auth.passphrase]
ask = "Password" ask = "Password"
type = "password" type = "password"
default = ""
optional = true optional = true
visibleIf = "user"
[advanced] [advanced]
name = "Advanced configuration" name = "Advanced configuration"
collapsed = true
[advanced.dns] [advanced.dns]
name = "DNS" name = "DNS"
@ -57,13 +58,11 @@ name = "Advanced configuration"
[manual.dns.dns0] [manual.dns.dns0]
ask = "First resolver" ask = "First resolver"
type = "string" type = "string"
default = ""
optional = true optional = true
pattern = "^([0-9.]{8,16}|[0-9a-fA-F:]+)$" pattern = "^([0-9.]{8,16}|[0-9a-fA-F:]+)$"
[manual.dns.dns1] [manual.dns.dns1]
ask = "Second resolver" ask = "Second resolver"
type = "string" type = "string"
default = ""
optional = true optional = true
pattern = "^([0-9.]{8,16}|[0-9a-fA-F:]+)$" pattern = "^([0-9.]{8,16}|[0-9a-fA-F:]+)$"