questions.yaml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617
  1. groups:
  2. - name: Headscale Configuration
  3. description: Configure Headscale
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Headscale
  6. - name: Network Configuration
  7. description: Configure Network for Headscale
  8. - name: Storage Configuration
  9. description: Configure Storage for Headscale
  10. - name: Labels Configuration
  11. description: Configure Labels for Headscale
  12. - name: Resources Configuration
  13. description: Configure Resources for Headscale
  14. questions:
  15. - variable: TZ
  16. group: Headscale Configuration
  17. label: Timezone
  18. schema:
  19. type: string
  20. default: Etc/UTC
  21. required: true
  22. $ref:
  23. - definitions/timezone
  24. - variable: headscale
  25. label: ""
  26. group: Headscale Configuration
  27. schema:
  28. type: dict
  29. attrs:
  30. - variable: server_url
  31. label: Headscale Server URL
  32. description: |
  33. The url clients will connect to.</br>
  34. Example: https://headscale.example.com:443</br>
  35. schema:
  36. type: uri
  37. default: ""
  38. required: true
  39. - variable: dns
  40. label: DNS Configuration
  41. description: Configure DNS for Headscale.
  42. schema:
  43. type: dict
  44. attrs:
  45. - variable: base_domain
  46. label: Base Domain
  47. description: |
  48. Defines the base domain to create the hostnames for MagicDNS.</br>
  49. This domain _must_ be different from the server_url domain.</br>
  50. Base Domain must be a FQDN, without the trailing dot.</br>
  51. Example: example.com</br>
  52. The FQDN of the hosts will be</br>
  53. `hostname.base_domain` (e.g., _host.example.com_).
  54. schema:
  55. type: string
  56. default: ""
  57. required: true
  58. - variable: nameservers_global
  59. label: Global DNS Nameservers
  60. description: List of DNS servers to expose to clients.
  61. schema:
  62. type: list
  63. default: []
  64. items:
  65. - variable: nameserver
  66. label: Nameserver
  67. schema:
  68. type: string
  69. required: true
  70. $ref:
  71. - definitions/dns_nameserver
  72. - variable: additional_envs
  73. label: Additional Environment Variables
  74. description: |
  75. You can add map any option from the config.yaml file as an environment variable.</br>
  76. See available options here https://github.com/juanfont/headscale/blob/main/config-example.yaml</br>
  77. Convert the key to an environment variable by following these rules:</br>
  78. - Prefix the key with `HEADSCALE_`.</br>
  79. - Convert the key to uppercase.</br>
  80. - Convert any `.` to `_`.</br>
  81. For example, `log.format` will be converted to `HEADSCALE_LOG_FORMAT`
  82. schema:
  83. type: list
  84. default: []
  85. items:
  86. - variable: env
  87. label: Environment Variable
  88. schema:
  89. type: dict
  90. attrs:
  91. - variable: name
  92. label: Name
  93. schema:
  94. type: string
  95. required: true
  96. - variable: value
  97. label: Value
  98. schema:
  99. type: string
  100. - variable: run_as
  101. label: ""
  102. group: User and Group Configuration
  103. schema:
  104. type: dict
  105. attrs:
  106. - variable: user
  107. label: User ID
  108. description: The user id that Headscale files will be owned by.
  109. schema:
  110. type: int
  111. min: 568
  112. default: 568
  113. required: true
  114. - variable: group
  115. label: Group ID
  116. description: The group id that Headscale files will be owned by.
  117. schema:
  118. type: int
  119. min: 568
  120. default: 568
  121. required: true
  122. - variable: network
  123. label: ""
  124. group: Network Configuration
  125. schema:
  126. type: dict
  127. attrs:
  128. - variable: api_port
  129. label: API Port
  130. schema:
  131. type: dict
  132. attrs:
  133. - variable: bind_mode
  134. label: Port Bind Mode
  135. description: |
  136. The port bind mode.</br>
  137. - Publish: The port will be published on the host for external access.</br>
  138. - Expose: The port will be exposed for inter-container communication.</br>
  139. - None: The port will not be exposed or published.</br>
  140. Note: If the Dockerfile defines an EXPOSE directive,
  141. the port will still be exposed for inter-container communication regardless of this setting.
  142. schema:
  143. type: string
  144. default: "published"
  145. enum:
  146. - value: "published"
  147. description: Publish port on the host for external access
  148. - value: "exposed"
  149. description: Expose port for inter-container communication
  150. - value: ""
  151. description: None
  152. - variable: port_number
  153. label: Port Number
  154. schema:
  155. type: int
  156. default: 30210
  157. min: 1
  158. max: 65535
  159. required: true
  160. - variable: host_ips
  161. label: Host IPs
  162. description: IPs on the host to bind this port
  163. schema:
  164. type: list
  165. show_if: [["bind_mode", "=", "published"]]
  166. default: []
  167. items:
  168. - variable: host_ip
  169. label: Host IP
  170. schema:
  171. type: string
  172. required: true
  173. $ref:
  174. - definitions/node_bind_ip
  175. - variable: host_network
  176. label: Host Network
  177. description: |
  178. Bind to the host network. It's recommended to keep this disabled.
  179. schema:
  180. type: boolean
  181. default: false
  182. - variable: certificate_id
  183. label: Certificate
  184. description: The certificate to use for Headscale.
  185. schema:
  186. type: int
  187. "null": true
  188. $ref:
  189. - "definitions/certificate"
  190. - variable: storage
  191. label: ""
  192. group: Storage Configuration
  193. schema:
  194. type: dict
  195. attrs:
  196. - variable: config
  197. label: Config Storage
  198. schema:
  199. type: dict
  200. attrs:
  201. - variable: type
  202. label: Type
  203. description: |
  204. ixVolume: Is dataset created automatically by the system.</br>
  205. Host Path: Is a path that already exists on the system.
  206. schema:
  207. type: string
  208. required: true
  209. default: "ix_volume"
  210. enum:
  211. - value: "host_path"
  212. description: Host Path (Path that already exists on the system)
  213. - value: "ix_volume"
  214. description: ixVolume (Dataset created automatically by the system)
  215. - variable: ix_volume_config
  216. label: ixVolume Configuration
  217. description: The configuration for the ixVolume dataset.
  218. schema:
  219. type: dict
  220. show_if: [["type", "=", "ix_volume"]]
  221. $ref:
  222. - "normalize/ix_volume"
  223. attrs:
  224. - variable: acl_enable
  225. label: Enable ACL
  226. description: Enable ACL for the storage.
  227. schema:
  228. type: boolean
  229. default: false
  230. - variable: dataset_name
  231. label: Dataset Name
  232. description: The name of the dataset to use for storage.
  233. schema:
  234. type: string
  235. required: true
  236. hidden: true
  237. default: "config"
  238. - variable: acl_entries
  239. label: ACL Configuration
  240. schema:
  241. type: dict
  242. show_if: [["acl_enable", "=", true]]
  243. attrs: []
  244. - variable: host_path_config
  245. label: Host Path Configuration
  246. schema:
  247. type: dict
  248. show_if: [["type", "=", "host_path"]]
  249. attrs:
  250. - variable: acl_enable
  251. label: Enable ACL
  252. description: Enable ACL for the storage.
  253. schema:
  254. type: boolean
  255. default: false
  256. - variable: acl
  257. label: ACL Configuration
  258. schema:
  259. type: dict
  260. show_if: [["acl_enable", "=", true]]
  261. attrs: []
  262. $ref:
  263. - "normalize/acl"
  264. - variable: path
  265. label: Host Path
  266. description: The host path to use for storage.
  267. schema:
  268. type: hostpath
  269. show_if: [["acl_enable", "=", false]]
  270. required: true
  271. - variable: lib
  272. label: Lib Storage
  273. schema:
  274. type: dict
  275. attrs:
  276. - variable: type
  277. label: Type
  278. description: |
  279. ixVolume: Is dataset created automatically by the system.</br>
  280. Host Path: Is a path that already exists on the system.
  281. schema:
  282. type: string
  283. required: true
  284. default: "ix_volume"
  285. enum:
  286. - value: "host_path"
  287. description: Host Path (Path that already exists on the system)
  288. - value: "ix_volume"
  289. description: ixVolume (Dataset created automatically by the system)
  290. - variable: ix_volume_config
  291. label: ixVolume Configuration
  292. description: The configuration for the ixVolume dataset.
  293. schema:
  294. type: dict
  295. show_if: [["type", "=", "ix_volume"]]
  296. $ref:
  297. - "normalize/ix_volume"
  298. attrs:
  299. - variable: acl_enable
  300. label: Enable ACL
  301. description: Enable ACL for the storage.
  302. schema:
  303. type: boolean
  304. default: false
  305. - variable: dataset_name
  306. label: Dataset Name
  307. description: The name of the dataset to use for storage.
  308. schema:
  309. type: string
  310. required: true
  311. hidden: true
  312. default: "lib"
  313. - variable: acl_entries
  314. label: ACL Configuration
  315. schema:
  316. type: dict
  317. show_if: [["acl_enable", "=", true]]
  318. attrs: []
  319. - variable: host_path_config
  320. label: Host Path Configuration
  321. schema:
  322. type: dict
  323. show_if: [["type", "=", "host_path"]]
  324. attrs:
  325. - variable: acl_enable
  326. label: Enable ACL
  327. description: Enable ACL for the storage.
  328. schema:
  329. type: boolean
  330. default: false
  331. - variable: acl
  332. label: ACL Configuration
  333. schema:
  334. type: dict
  335. show_if: [["acl_enable", "=", true]]
  336. attrs: []
  337. $ref:
  338. - "normalize/acl"
  339. - variable: path
  340. label: Host Path
  341. description: The host path to use for storage.
  342. schema:
  343. type: hostpath
  344. show_if: [["acl_enable", "=", false]]
  345. required: true
  346. - variable: run
  347. label: Run Storage
  348. schema:
  349. type: dict
  350. attrs:
  351. - variable: type
  352. label: Type
  353. description: |
  354. ixVolume: Is dataset created automatically by the system.</br>
  355. Host Path: Is a path that already exists on the system.
  356. schema:
  357. type: string
  358. required: true
  359. default: "ix_volume"
  360. enum:
  361. - value: "host_path"
  362. description: Host Path (Path that already exists on the system)
  363. - value: "ix_volume"
  364. description: ixVolume (Dataset created automatically by the system)
  365. - variable: ix_volume_config
  366. label: ixVolume Configuration
  367. description: The configuration for the ixVolume dataset.
  368. schema:
  369. type: dict
  370. show_if: [["type", "=", "ix_volume"]]
  371. $ref:
  372. - "normalize/ix_volume"
  373. attrs:
  374. - variable: acl_enable
  375. label: Enable ACL
  376. description: Enable ACL for the storage.
  377. schema:
  378. type: boolean
  379. default: false
  380. - variable: dataset_name
  381. label: Dataset Name
  382. description: The name of the dataset to use for storage.
  383. schema:
  384. type: string
  385. required: true
  386. hidden: true
  387. default: "run"
  388. - variable: acl_entries
  389. label: ACL Configuration
  390. schema:
  391. type: dict
  392. show_if: [["acl_enable", "=", true]]
  393. attrs: []
  394. - variable: host_path_config
  395. label: Host Path Configuration
  396. schema:
  397. type: dict
  398. show_if: [["type", "=", "host_path"]]
  399. attrs:
  400. - variable: acl_enable
  401. label: Enable ACL
  402. description: Enable ACL for the storage.
  403. schema:
  404. type: boolean
  405. default: false
  406. - variable: acl
  407. label: ACL Configuration
  408. schema:
  409. type: dict
  410. show_if: [["acl_enable", "=", true]]
  411. attrs: []
  412. $ref:
  413. - "normalize/acl"
  414. - variable: path
  415. label: Host Path
  416. description: The host path to use for storage.
  417. schema:
  418. type: hostpath
  419. show_if: [["acl_enable", "=", false]]
  420. required: true
  421. - variable: additional_storage
  422. label: Additional Storage
  423. schema:
  424. type: list
  425. default: []
  426. items:
  427. - variable: storageEntry
  428. label: Storage Entry
  429. schema:
  430. type: dict
  431. attrs:
  432. - variable: type
  433. label: Type
  434. description: |
  435. ixVolume: Is dataset created automatically by the system.</br>
  436. Host Path: Is a path that already exists on the system.</br>
  437. SMB Share: Is a SMB share that is mounted to as a volume.
  438. schema:
  439. type: string
  440. required: true
  441. default: "ix_volume"
  442. enum:
  443. - value: "host_path"
  444. description: Host Path (Path that already exists on the system)
  445. - value: "ix_volume"
  446. description: ixVolume (Dataset created automatically by the system)
  447. - value: "cifs"
  448. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  449. - variable: read_only
  450. label: Read Only
  451. description: Mount the volume as read only.
  452. schema:
  453. type: boolean
  454. default: false
  455. - variable: mount_path
  456. label: Mount Path
  457. description: The path inside the container to mount the storage.
  458. schema:
  459. type: path
  460. required: true
  461. - variable: host_path_config
  462. label: Host Path Configuration
  463. schema:
  464. type: dict
  465. show_if: [["type", "=", "host_path"]]
  466. attrs:
  467. - variable: acl_enable
  468. label: Enable ACL
  469. description: Enable ACL for the storage.
  470. schema:
  471. type: boolean
  472. default: false
  473. - variable: acl
  474. label: ACL Configuration
  475. schema:
  476. type: dict
  477. show_if: [["acl_enable", "=", true]]
  478. attrs: []
  479. $ref:
  480. - "normalize/acl"
  481. - variable: path
  482. label: Host Path
  483. description: The host path to use for storage.
  484. schema:
  485. type: hostpath
  486. show_if: [["acl_enable", "=", false]]
  487. required: true
  488. - variable: ix_volume_config
  489. label: ixVolume Configuration
  490. description: The configuration for the ixVolume dataset.
  491. schema:
  492. type: dict
  493. show_if: [["type", "=", "ix_volume"]]
  494. $ref:
  495. - "normalize/ix_volume"
  496. attrs:
  497. - variable: acl_enable
  498. label: Enable ACL
  499. description: Enable ACL for the storage.
  500. schema:
  501. type: boolean
  502. default: false
  503. - variable: dataset_name
  504. label: Dataset Name
  505. description: The name of the dataset to use for storage.
  506. schema:
  507. type: string
  508. required: true
  509. default: "storage_entry"
  510. - variable: acl_entries
  511. label: ACL Configuration
  512. schema:
  513. type: dict
  514. show_if: [["acl_enable", "=", true]]
  515. attrs: []
  516. $ref:
  517. - "normalize/acl"
  518. - variable: cifs_config
  519. label: SMB Configuration
  520. description: The configuration for the SMB dataset.
  521. schema:
  522. type: dict
  523. show_if: [["type", "=", "cifs"]]
  524. attrs:
  525. - variable: server
  526. label: Server
  527. description: The server to mount the SMB share.
  528. schema:
  529. type: string
  530. required: true
  531. - variable: path
  532. label: Path
  533. description: The path to mount the SMB share.
  534. schema:
  535. type: string
  536. required: true
  537. - variable: username
  538. label: Username
  539. description: The username to use for the SMB share.
  540. schema:
  541. type: string
  542. required: true
  543. - variable: password
  544. label: Password
  545. description: The password to use for the SMB share.
  546. schema:
  547. type: string
  548. required: true
  549. private: true
  550. - variable: domain
  551. label: Domain
  552. description: The domain to use for the SMB share.
  553. schema:
  554. type: string
  555. - variable: labels
  556. label: ""
  557. group: Labels Configuration
  558. schema:
  559. type: list
  560. default: []
  561. items:
  562. - variable: label
  563. label: Label
  564. schema:
  565. type: dict
  566. attrs:
  567. - variable: key
  568. label: Key
  569. schema:
  570. type: string
  571. required: true
  572. - variable: value
  573. label: Value
  574. schema:
  575. type: string
  576. required: true
  577. - variable: containers
  578. label: Containers
  579. description: Containers where the label should be applied
  580. schema:
  581. type: list
  582. items:
  583. - variable: container
  584. label: Container
  585. schema:
  586. type: string
  587. required: true
  588. enum:
  589. - value: headscale
  590. description: headscale
  591. - variable: resources
  592. label: ""
  593. group: Resources Configuration
  594. schema:
  595. type: dict
  596. attrs:
  597. - variable: limits
  598. label: Limits
  599. schema:
  600. type: dict
  601. attrs:
  602. - variable: cpus
  603. label: CPUs
  604. description: CPUs limit for Headscale.
  605. schema:
  606. type: int
  607. default: 2
  608. required: true
  609. - variable: memory
  610. label: Memory (in MB)
  611. description: Memory limit for Headscale.
  612. schema:
  613. type: int
  614. default: 4096
  615. required: true