1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hotspot_ynh.git synced 2024-09-03 19:25:53 +02:00
hotspot_ynh/config_panel.toml

111 lines
3.1 KiB
TOML
Raw Normal View History

2021-09-18 12:00:30 +02:00
version = "1.0"
[main]
2021-09-20 19:19:01 +02:00
name = "Configuration"
2021-09-18 12:00:30 +02:00
[main.service]
2021-09-20 19:19:01 +02:00
name = ""
2021-09-18 12:00:30 +02:00
optional = false
2021-10-18 01:39:24 +02:00
2021-09-20 18:01:28 +02:00
[main.service.no_antenna]
2021-10-18 01:39:24 +02:00
# The value is filled via a custom getter
type = "boolean"
visible = "false"
[main.service.no_antenna_alert]
2021-09-20 18:01:28 +02:00
ask = "No wifi antenna has been detected! If you use a wifi USB dongle and that this one is not listed here, try to unplug and replug it, then reload this page."
type = "alert"
style = "danger"
visible = "no_antenna"
2021-10-18 01:39:24 +02:00
2021-09-18 12:00:30 +02:00
[main.service.status]
2023-08-20 15:22:11 +02:00
ask = "The status of your Hotspot is unknown."
2021-09-18 12:00:30 +02:00
type = "alert"
style = "info"
2021-09-20 18:01:28 +02:00
visible = "! no_antenna"
2021-10-18 01:39:24 +02:00
2021-09-18 12:00:30 +02:00
[main.service.service_enabled]
ask = "Enable Hotspot"
type = "boolean"
2021-09-20 18:01:28 +02:00
visible = "! no_antenna"
2021-09-18 12:00:30 +02:00
[main.service.wifi_device]
ask = "Device"
type = "select"
choices.wlan0 = "wlan0"
2021-09-20 18:01:28 +02:00
visible = "! no_antenna"
2021-10-18 01:39:24 +02:00
2021-09-18 12:00:30 +02:00
[main.service.wifi_channel]
ask = "Channel"
type = "select"
choices.1 = "1"
choices.2 = "2"
choices.3 = "3"
choices.4 = "4"
choices.5 = "5"
choices.6 = "6"
choices.7 = "7"
choices.8 = "8"
choices.9 = "9"
choices.10 = "10"
choices.11 = "11"
2021-09-20 18:01:28 +02:00
visible = "! no_antenna"
2021-10-13 14:31:02 +02:00
help = "Changing the channel may help with signal strength depending on neighbour WiFis"
2021-10-18 01:39:24 +02:00
2023-08-20 15:22:11 +02:00
[main.hotspot]
name = "Hotspot"
2021-09-18 12:00:30 +02:00
optional = false
2021-09-20 18:01:28 +02:00
visible = "! no_antenna"
2021-09-18 12:00:30 +02:00
2023-08-20 15:22:11 +02:00
[main.hotspot.wifi_ssid]
2021-09-18 12:00:30 +02:00
ask = "Name (SSID)"
type = "string"
2021-09-20 18:01:28 +02:00
pattern.regexp = '^[\w \-]{1,32}$'
pattern.error = "SSID in this app are limited to letter, number space, dash and underscores."
2021-10-18 01:39:24 +02:00
2023-08-20 15:22:11 +02:00
[main.hotspot.wifi_secure]
2021-09-18 12:00:30 +02:00
ask = "Secure"
type = "boolean"
2023-08-20 15:22:11 +02:00
[main.hotspot.wifi_passphrase]
2021-09-18 12:00:30 +02:00
ask = "Password (WPA2)"
type = "string"
redact = true
2021-09-20 18:01:28 +02:00
optional = true
2023-08-20 15:22:11 +02:00
visible = "wifi_secure"
2021-09-20 18:01:28 +02:00
pattern.regexp = '^[a-zA-Z0-9]{8,63}$'
pattern.error = "Only printable alphanumeric characters are permitted in your password. Maximal size 63 chars"
2021-10-18 01:39:24 +02:00
2023-08-20 15:22:11 +02:00
[main.hotspot.advanced]
2021-09-18 12:00:30 +02:00
ask = "Advanced settings"
type = "boolean"
2021-10-18 01:39:24 +02:00
2023-08-20 15:22:11 +02:00
[main.hotspot.ip4_nat_prefix]
2021-09-18 12:00:30 +02:00
ask = "IPv4 NAT prefix (/24)"
type = "string"
2023-08-20 15:22:11 +02:00
visible = "advanced"
2021-09-20 18:01:28 +02:00
pattern.regexp = '^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$'
pattern.error = "Please provide a private /24 range in the format xxx.xxx.xxx"
2021-10-18 01:39:24 +02:00
2023-08-20 15:22:11 +02:00
[main.hotspot.ip6_net]
2021-09-18 12:00:30 +02:00
ask = "IPv6 delegated prefix"
type = "string"
2021-10-17 21:50:49 +02:00
optional = true
2023-08-20 15:22:11 +02:00
visible = "advanced"
2021-09-20 18:01:28 +02:00
pattern.regexp = '^[0-9a-fA-F:]+$'
2021-09-18 12:00:30 +02:00
pattern.error = "Please provide a valid IPv6 Prefix"
2021-10-18 01:39:24 +02:00
2023-08-20 15:22:11 +02:00
[main.hotspot.ip6_firewall]
2021-09-18 12:00:30 +02:00
ask = "IPv6 firewall"
type = "boolean"
2023-08-20 15:22:11 +02:00
visible = "advanced"
2021-10-18 01:39:24 +02:00
2023-08-20 15:22:11 +02:00
[main.hotspot.dns]
2021-09-18 12:00:30 +02:00
ask = "DNS resolvers"
type = "tags"
2023-08-20 16:20:20 +02:00
bind = "null"
2023-08-20 15:22:11 +02:00
visible = "advanced"
2021-09-20 18:01:28 +02:00
pattern.regexp = '^([0-9.]{7,15}|[0-9a-fA-F:]+)$'
2021-09-18 12:00:30 +02:00
pattern.error = "Not an ip"
2021-10-18 01:39:24 +02:00