Browse Source

Merge pull request #141 from YunoHost-Apps/fix-config-panel-file-syntax

Fix config panel syntax
HgO 1 month ago
parent
commit
3b05a7939d
1 changed files with 9 additions and 10 deletions
  1. 9 10
      config_panel.toml

+ 9 - 10
config_panel.toml

@@ -1,7 +1,7 @@
 version = "1.0"
 version = "1.0"
 
 
 [main]
 [main]
-name = "Auto-configuration"
+name = "Configuration"
 
 
     [main.vpn]
     [main.vpn]
     name = ""
     name = ""
@@ -92,18 +92,17 @@ name = "Auto-configuration"
         visible = 'config_file && match(config_file,"^\s*tls-auth\s") && ! match(config_file,"^\s*<tls-auth>")'
         visible = 'config_file && match(config_file,"^\s*tls-auth\s") && ! match(config_file,"^\s*<tls-auth>")'
         redact = true
         redact = true
 
 
-[advanced]
-name = "DNS & IPv6"
-    [advanced.dns]
+
+    [main.dns]
     name = "DNS"
     name = "DNS"
 
 
-        [advanced.dns.dns_method]
+        [main.dns.dns_method]
         ask = "DNS resolvers"
         ask = "DNS resolvers"
         type = "select"
         type = "select"
         choices.yunohost = "Default DNS resolvers from YunoHost"
         choices.yunohost = "Default DNS resolvers from YunoHost"
         choices.custom = "Use custom DNS resolvers"
         choices.custom = "Use custom DNS resolvers"
 
 
-        [advanced.dns.nameservers]
+        [main.dns.nameservers]
         ask = "Custom DNS resolvers"
         ask = "Custom DNS resolvers"
         type = "tags"
         type = "tags"
         optional = true
         optional = true
@@ -111,10 +110,10 @@ name = "DNS & IPv6"
         pattern.regexp = "^([0-9.]{7,15}|[0-9a-fA-F:]+)$"
         pattern.regexp = "^([0-9.]{7,15}|[0-9a-fA-F:]+)$"
         pattern.error = "Not an ip"
         pattern.error = "Not an ip"
 
 
-    [advanced.ipv6]
+    [main.ipv6]
     name = "IPv6"
     name = "IPv6"
 
 
-        [advanced.ipv6.ip6_net]
+        [main.ipv6.ip6_net]
         ask = "IPv6 prefix"
         ask = "IPv6 prefix"
         type = "string"
         type = "string"
         optional = true
         optional = true
@@ -122,7 +121,7 @@ name = "DNS & IPv6"
         pattern.regexp = "^[0-9a-fA-F:]+$"
         pattern.regexp = "^[0-9a-fA-F:]+$"
         pattern.error = "Please provide a valid IPv6 Prefix"
         pattern.error = "Please provide a valid IPv6 Prefix"
 
 
-        [advanced.ipv6.ip6_addr]
+        [main.ipv6.ip6_addr]
         ask = "IPv6"
         ask = "IPv6"
         type = "string"
         type = "string"
         optional = true
         optional = true
@@ -131,7 +130,7 @@ name = "DNS & IPv6"
         pattern.regexp = "^[0-9a-fA-F:]+$"
         pattern.regexp = "^[0-9a-fA-F:]+$"
         pattern.error = "Please provide a valid IPv6"
         pattern.error = "Please provide a valid IPv6"
 
 
-        [advanced.ipv6.ip6_send_over_tun_enabled]
+        [main.ipv6.ip6_send_over_tun_enabled]
         ask = "IPv6 local routing over tun"
         ask = "IPv6 local routing over tun"
         type = "boolean"
         type = "boolean"
         help = "If enabled, local IPv6 traffic will be routed through internet. You should enable this if you can't reach your server in IPv6 from your local network."
         help = "If enabled, local IPv6 traffic will be routed through internet. You should enable this if you can't reach your server in IPv6 from your local network."