From a58978c4e52fc08a34db6d8206d7362df0aed653 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Tue, 1 Jun 2021 01:26:50 +0200 Subject: [PATCH] [enh] Update config panel example --- config_panel.toml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/config_panel.toml b/config_panel.toml index b459c71..1a0a23c 100644 --- a/config_panel.toml +++ b/config_panel.toml @@ -12,21 +12,21 @@ name = "Main configuration" [main.config_file.from_email] ask = "Outgoing email From" - type = "string" + type = "email" help = "Email from which comes email from this app" pattern = "^[^@]+@[^@]+$" - source = "__FINALPATH__/conf/config.php" + source = "email:__FINALPATH__/conf/config.php" [main.config_file.expiration] ask = "Default expiration" type = "date" pattern = "^\d\d\d\d-\d\d-\d\d$" - source = "__FINALPATH__/conf/config.php" + source = ":__FINALPATH__/conf/config.php" [main.config_file.logo] - ask = "Outgoing email From" + ask = "Logo" type = "file" - default = "" + accept = ".png" optional = true help = "You should upload a CA certificate to start" source="__FINALPATH__/img/logo.png" @@ -37,19 +37,20 @@ name = "Main configuration" [main.auth.user] ask = "Username" type = "string" - default = "" + example = "camille" optional = true pattern = "^[^/ ]+$" [main.auth.passphrase] ask = "Password" type = "password" - default = "" optional = true + visibleIf = "user" [advanced] name = "Advanced configuration" +collapsed = true [advanced.dns] name = "DNS" @@ -57,13 +58,11 @@ name = "Advanced configuration" [manual.dns.dns0] ask = "First resolver" type = "string" - default = "" optional = true pattern = "^([0-9.]{8,16}|[0-9a-fA-F:]+)$" [manual.dns.dns1] ask = "Second resolver" type = "string" - default = "" optional = true pattern = "^([0-9.]{8,16}|[0-9a-fA-F:]+)$"