config_panel.toml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. version = "1.0"
  2. [main]
  3. name = "Configuration"
  4. [main.service]
  5. name = ""
  6. optional = false
  7. [main.service.no_antenna]
  8. 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."
  9. type = "alert"
  10. style = "danger"
  11. visible = "no_antenna"
  12. [main.service.status]
  13. ask = "The status of your VPN is unknown."
  14. type = "alert"
  15. style = "info"
  16. visible = "! no_antenna"
  17. [main.service.service_enabled]
  18. ask = "Enable Hotspot"
  19. type = "boolean"
  20. visible = "! no_antenna"
  21. [main.service.wifi_device]
  22. ask = "Device"
  23. type = "select"
  24. choices.wlan0 = "wlan0"
  25. visible = "! no_antenna"
  26. [main.service.wifi_channel]
  27. ask = "Channel"
  28. type = "select"
  29. choices.1 = "1"
  30. choices.2 = "2"
  31. choices.3 = "3"
  32. choices.4 = "4"
  33. choices.5 = "5"
  34. choices.6 = "6"
  35. choices.7 = "7"
  36. choices.8 = "8"
  37. choices.9 = "9"
  38. choices.10 = "10"
  39. choices.11 = "11"
  40. visible = "! no_antenna"
  41. [main.service.multissid]
  42. ask = "Hotspot number"
  43. type = "select"
  44. choices.1 = "1"
  45. choices.2 = "2"
  46. choices.3 = "3"
  47. visible = "! no_antenna"
  48. [main.hotspot1]
  49. name = "Hotspot 1"
  50. optional = false
  51. visible = "! no_antenna"
  52. [main.hotspot1.wifi_ssid__1]
  53. ask = "Name (SSID)"
  54. type = "string"
  55. bind = "array_settings()"
  56. pattern.regexp = '^[\w \-]{1,32}$'
  57. pattern.error = "SSID in this app are limited to letter, number space, dash and underscores."
  58. [main.hotspot1.wifi_secure__1]
  59. ask = "Secure"
  60. type = "boolean"
  61. bind = "array_settings()"
  62. [main.hotspot1.wifi_passphrase__1]
  63. ask = "Password (WPA2)"
  64. type = "string"
  65. bind = "array_settings()"
  66. redact = true
  67. optional = true
  68. visible = "wifi_secure__1"
  69. pattern.regexp = '^[a-zA-Z0-9]{8,63}$'
  70. pattern.error = "Only printable alphanumeric characters are permitted in your password. Maximal size 63 chars"
  71. [main.hotspot1.advanced__1]
  72. ask = "Advanced settings"
  73. type = "boolean"
  74. bind = "array_settings()"
  75. [main.hotspot1.ip4_nat_prefix__1]
  76. ask = "IPv4 NAT prefix (/24)"
  77. type = "string"
  78. bind = "array_settings()"
  79. visible = "advanced__1"
  80. pattern.regexp = '^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$'
  81. pattern.error = "Please provide a private /24 range in the format xxx.xxx.xxx"
  82. [main.hotspot1.ip6_net__1]
  83. ask = "IPv6 delegated prefix"
  84. type = "string"
  85. bind = "array_settings()"
  86. optional = "true"
  87. visible = "advanced__1"
  88. pattern.regexp = '^[0-9a-fA-F:]+$'
  89. pattern.error = "Please provide a valid IPv6 Prefix"
  90. [main.hotspot1.ip6_firewall__1]
  91. ask = "IPv6 firewall"
  92. type = "boolean"
  93. bind = "array_settings()"
  94. visible = "advanced__1"
  95. [main.hotspot1.dns__1]
  96. ask = "DNS resolvers"
  97. type = "tags"
  98. bind = "array_settings()"
  99. visible = "advanced__1"
  100. pattern.regexp = '^([0-9.]{7,15}|[0-9a-fA-F:]+)$'
  101. pattern.error = "Not an ip"
  102. [main.hotspot2]
  103. name = "Hotspot 2"
  104. visible = "! no_antenna && multissid >= 2"
  105. [main.hotspot2.wifi_ssid__2]
  106. ask = "Name (SSID)"
  107. type = "string"
  108. bind = "array_settings()"
  109. pattern.regexp = '^[\w \-]{1,32}$'
  110. pattern.error = "SSID in this app are limited to letter, number space, dash and underscores."
  111. [main.hotspot2.wifi_secure__2]
  112. ask = "Secure"
  113. type = "boolean"
  114. bind = "array_settings()"
  115. [main.hotspot2.wifi_passphrase__2]
  116. ask = "Password (WPA2)"
  117. type = "string"
  118. bind = "array_settings()"
  119. redact = true
  120. visible = "wifi_secure__2"
  121. pattern.regexp = '^[a-zA-Z0-9]{8,63}$'
  122. pattern.error = "Only printable alphanumeric characters are permitted in your password. Maximal size 63 chars"
  123. [main.hotspot2.advanced__2]
  124. ask = "Advanced settings"
  125. type = "boolean"
  126. bind = "array_settings()"
  127. [main.hotspot2.ip4_nat_prefix__2]
  128. ask = "IPv4 NAT prefix (/24)"
  129. type = "string"
  130. bind = "array_settings()"
  131. visible = "advanced__2"
  132. pattern.regexp = '^[0-9.]{7,15}$'
  133. pattern.error = "Please provide a valid IP"
  134. [main.hotspot2.ip6_net__2]
  135. ask = "IPv6 delegated prefix"
  136. type = "string"
  137. bind = "array_settings()"
  138. visible = "advanced__2"
  139. pattern.regexp = '^[0-9a-fA-F:]+$'
  140. pattern.error = "Please provide a valid IPv6 Prefix"
  141. [main.hotspot2.ip6_firewall__2]
  142. ask = "IPv6 firewall"
  143. type = "boolean"
  144. bind = "array_settings()"
  145. visible = "advanced__2"
  146. [main.hotspot2.dns__2]
  147. ask = "DNS resolvers"
  148. type = "tags"
  149. bind = "array_settings()"
  150. visible = "advanced__2"
  151. pattern.regexp = '^([0-9.]{7,15}|[0-9a-fA-F:]+)$'
  152. pattern.error = "Not an ip"
  153. [main.hotspot3]
  154. name = "Hotspot 3"
  155. visible = "! no_antenna && multissid >= 3"
  156. [main.hotspot3.wifi_ssid__3]
  157. ask = "Name (SSID)"
  158. type = "string"
  159. bind = "array_settings()"
  160. pattern.regexp = '^[\w \-]{1,32}$'
  161. pattern.error = "SSID in this app are limited to letter, number space, dash and underscores."
  162. [main.hotspot3.wifi_secure__3]
  163. ask = "Secure"
  164. type = "boolean"
  165. bind = "array_settings()"
  166. [main.hotspot3.wifi_passphrase__3]
  167. ask = "Password (WPA2)"
  168. type = "string"
  169. bind = "array_settings()"
  170. redact = true
  171. visible = "wifi_secure__3"
  172. pattern.regexp = '^[a-zA-Z0-9]{8,63}$'
  173. pattern.error = "Only printable alphanumeric characters are permitted in your password. Maximal size 63 chars"
  174. [main.hotspot3.advanced__3]
  175. ask = "Advanced settings"
  176. type = "boolean"
  177. bind = "array_settings()"
  178. [main.hotspot3.ip4_nat_prefix__3]
  179. ask = "IPv4 NAT prefix (/24)"
  180. type = "string"
  181. bind = "array_settings()"
  182. visible = "advanced__3"
  183. pattern.regexp = '^[0-9.]{7,15}$'
  184. pattern.error = "Please provide a valid IP"
  185. [main.hotspot3.ip6_net__3]
  186. ask = "IPv6 delegated prefix"
  187. type = "string"
  188. bind = "array_settings()"
  189. visible = "advanced__3"
  190. pattern.regexp = '^[0-9a-fA-F:]+$'
  191. pattern.error = "Please provide a valid IPv6 Prefix"
  192. [main.hotspot3.ip6_firewall__3]
  193. ask = "IPv6 firewall"
  194. type = "boolean"
  195. bind = "array_settings()"
  196. visible = "advanced__3"
  197. [main.hotspot3.dns__3]
  198. ask = "DNS resolvers"
  199. type = "tags"
  200. bind = "array_settings()"
  201. visible = "advanced__3"
  202. pattern.regexp = '^([0-9.]{7,15}|[0-9a-fA-F:]+)$'
  203. pattern.error = "Not an ip"