questions.yaml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567
  1. groups:
  2. - name: Arti Configuration
  3. description: Configure Arti
  4. - name: Network Configuration
  5. description: Configure Network for Arti
  6. - name: Storage Configuration
  7. description: Configure Storage for Arti
  8. - name: Labels Configuration
  9. description: Configure Labels for Arti
  10. - name: Resources Configuration
  11. description: Configure Resources for Arti
  12. questions:
  13. - variable: TZ
  14. group: Arti Configuration
  15. label: Timezone
  16. schema:
  17. type: string
  18. default: Etc/UTC
  19. required: true
  20. $ref:
  21. - definitions/timezone
  22. - variable: arti
  23. label: ""
  24. group: Arti Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: allow_onion_addrs
  29. label: Allow connecting to Onion Services
  30. description: |
  31. Disabling this feature will not permit Arti to connect to onion services (.onion),
  32. which is a common use of Tor. Arti is still in development,
  33. and it does not include some privacy features that are available in the original C Tor program.
  34. Arti does not yet support "vanguards",
  35. an important privacy feature employed by Tor to mitigate guard discovery attacks over time.
  36. If you operate under a strict threat model,
  37. please disable this feature and consider not using Arti until these privacy protections are implemented. </br>
  38. More information: https://tpo.pages.torproject.net/core/arti/guides/capability-limitations/
  39. schema:
  40. type: boolean
  41. required: true
  42. default: true
  43. - variable: hidden_services
  44. label: Hidden Services
  45. description: |
  46. Add the hidden services you want to host here.<br />
  47. To get the onion address of your hidden service,
  48. use the following command in the Arti container:</br>
  49. `arti hss --nickname <name> onion-address`
  50. schema:
  51. type: list
  52. default: []
  53. items:
  54. - variable: hidden_service
  55. label: ""
  56. schema:
  57. type: dict
  58. attrs:
  59. - variable: name
  60. label: Name
  61. schema:
  62. type: string
  63. required: true
  64. valid_chars: "^[a-zA-Z0-9]+$"
  65. valid_chars_error: Name should not contain special characters.
  66. - variable: is_app
  67. label: Is TrueNAS App
  68. description: |
  69. Enable this option if the application runs as a TrueNAS app on this machine.
  70. schema:
  71. type: boolean
  72. default: true
  73. - variable: ip
  74. label: App IP
  75. schema:
  76. type: ipaddr
  77. required: true
  78. show_if: [["is_app", "=", false]]
  79. - variable: port
  80. label: App Port
  81. schema:
  82. type: int
  83. min: 1
  84. max: 65535
  85. required: true
  86. - variable: hidden_service_port
  87. label: Hidden Service Port
  88. description: The port to host this service on the Tor network.
  89. schema:
  90. type: int
  91. min: 1
  92. max: 65535
  93. required: true
  94. - variable: network
  95. label: ""
  96. group: Network Configuration
  97. schema:
  98. type: dict
  99. attrs:
  100. - variable: socks_port
  101. label: Arti SOCKS port
  102. schema:
  103. type: dict
  104. attrs:
  105. - variable: bind_mode
  106. label: Port Bind Mode
  107. description: |
  108. The port bind mode.</br>
  109. - Publish: The port will be published on the host for external access.</br>
  110. - Expose: The port will be exposed for inter-container communication.</br>
  111. - None: The port will not be exposed or published.</br>
  112. Note: If the Dockerfile defines an EXPOSE directive,
  113. the port will still be exposed for inter-container communication regardless of this setting.
  114. schema:
  115. type: string
  116. default: "published"
  117. enum:
  118. - value: "published"
  119. description: Publish port on the host for external access
  120. - value: "exposed"
  121. description: Expose port for inter-container communication
  122. - value: ""
  123. description: None
  124. - variable: port_number
  125. label: Port Number
  126. schema:
  127. type: int
  128. default: 9150
  129. min: 1
  130. max: 65535
  131. required: true
  132. - variable: host_ips
  133. label: Host IPs
  134. description: IPs on the host to bind this port
  135. schema:
  136. type: list
  137. show_if: [["bind_mode", "=", "published"]]
  138. default: []
  139. items:
  140. - variable: host_ip
  141. label: Host IP
  142. schema:
  143. type: string
  144. required: true
  145. $ref:
  146. - definitions/node_bind_ip
  147. - variable: additional_ports
  148. label: Additional Ports
  149. schema:
  150. type: list
  151. items:
  152. - variable: port
  153. label: Port
  154. schema:
  155. type: dict
  156. attrs:
  157. - variable: bind_mode
  158. label: Port Bind Mode
  159. description: |
  160. The port bind mode.</br>
  161. - Publish: The port will be published on the host for external access.</br>
  162. - Expose: The port will be exposed for inter-container communication.</br>
  163. schema:
  164. type: string
  165. default: "published"
  166. enum:
  167. - value: "published"
  168. description: Publish port on the host for external access
  169. - value: "exposed"
  170. description: Expose port for inter-container communication
  171. - variable: port_number
  172. label: Port Number
  173. schema:
  174. type: int
  175. min: 1
  176. max: 65535
  177. required: true
  178. - variable: container_port
  179. label: Container Port
  180. schema:
  181. type: int
  182. min: 1
  183. max: 65535
  184. required: true
  185. - variable: protocol
  186. label: Protocol
  187. schema:
  188. type: string
  189. required: true
  190. default: "tcp"
  191. enum:
  192. - value: "tcp"
  193. description: TCP
  194. - value: "udp"
  195. description: UDP
  196. - variable: host_ips
  197. label: Host IPs
  198. description: IPs on the host to bind this port
  199. schema:
  200. type: list
  201. show_if: [["bind_mode", "=", "published"]]
  202. default: []
  203. items:
  204. - variable: host_ip
  205. label: Host IP
  206. schema:
  207. type: string
  208. required: true
  209. $ref:
  210. - definitions/node_bind_ip
  211. - variable: storage
  212. label: ""
  213. group: Storage Configuration
  214. schema:
  215. type: dict
  216. attrs:
  217. - variable: arti_config
  218. label: Arti configuration storage location
  219. schema:
  220. type: dict
  221. attrs:
  222. - variable: type
  223. label: Type
  224. description: |
  225. ixVolume: Is dataset created automatically by the system.</br>
  226. Host Path: Is a path that already exists on the system.
  227. schema:
  228. type: string
  229. required: true
  230. default: "ix_volume"
  231. enum:
  232. - value: "host_path"
  233. description: Host Path (Path that already exists on the system)
  234. - value: "ix_volume"
  235. description: ixVolume (Dataset created automatically by the system)
  236. - variable: ix_volume_config
  237. label: ixVolume Configuration
  238. description: The configuration for the ixVolume dataset.
  239. schema:
  240. type: dict
  241. show_if: [["type", "=", "ix_volume"]]
  242. $ref:
  243. - "normalize/ix_volume"
  244. attrs:
  245. - variable: acl_enable
  246. label: Enable ACL
  247. description: Enable ACL for the storage.
  248. schema:
  249. type: boolean
  250. default: false
  251. - variable: dataset_name
  252. label: Dataset Name
  253. description: The name of the dataset to use for storage.
  254. schema:
  255. type: string
  256. required: true
  257. hidden: true
  258. default: "arti_config"
  259. - variable: acl_entries
  260. label: ACL Configuration
  261. schema:
  262. type: dict
  263. show_if: [["acl_enable", "=", true]]
  264. attrs: []
  265. - variable: host_path_config
  266. label: Host Path Configuration
  267. schema:
  268. type: dict
  269. show_if: [["type", "=", "host_path"]]
  270. attrs:
  271. - variable: acl_enable
  272. label: Enable ACL
  273. description: Enable ACL for the storage.
  274. schema:
  275. type: boolean
  276. default: false
  277. - variable: acl
  278. label: ACL Configuration
  279. schema:
  280. type: dict
  281. show_if: [["acl_enable", "=", true]]
  282. attrs: []
  283. $ref:
  284. - "normalize/acl"
  285. - variable: path
  286. label: Host Path
  287. description: The host path to use for storage.
  288. schema:
  289. type: hostpath
  290. show_if: [["acl_enable", "=", false]]
  291. required: true
  292. - variable: arti_state
  293. label: Arti keystore storage location
  294. schema:
  295. type: dict
  296. attrs:
  297. - variable: type
  298. label: Type
  299. description: |
  300. ixVolume: Is dataset created automatically by the system.</br>
  301. Host Path: Is a path that already exists on the system.
  302. schema:
  303. type: string
  304. required: true
  305. default: "ix_volume"
  306. enum:
  307. - value: "host_path"
  308. description: Host Path (Path that already exists on the system)
  309. - value: "ix_volume"
  310. description: ixVolume (Dataset created automatically by the system)
  311. - variable: ix_volume_config
  312. label: ixVolume Configuration
  313. description: The configuration for the ixVolume dataset.
  314. schema:
  315. type: dict
  316. show_if: [["type", "=", "ix_volume"]]
  317. $ref:
  318. - "normalize/ix_volume"
  319. attrs:
  320. - variable: acl_enable
  321. label: Enable ACL
  322. description: Enable ACL for the storage.
  323. schema:
  324. type: boolean
  325. default: false
  326. - variable: dataset_name
  327. label: Dataset Name
  328. description: The name of the dataset to use for storage.
  329. schema:
  330. type: string
  331. required: true
  332. hidden: true
  333. default: "arti_state"
  334. - variable: acl_entries
  335. label: ACL Configuration
  336. schema:
  337. type: dict
  338. show_if: [["acl_enable", "=", true]]
  339. attrs: []
  340. - variable: host_path_config
  341. label: Host Path Configuration
  342. schema:
  343. type: dict
  344. show_if: [["type", "=", "host_path"]]
  345. attrs:
  346. - variable: acl_enable
  347. label: Enable ACL
  348. description: Enable ACL for the storage.
  349. schema:
  350. type: boolean
  351. default: false
  352. - variable: acl
  353. label: ACL Configuration
  354. schema:
  355. type: dict
  356. show_if: [["acl_enable", "=", true]]
  357. attrs: []
  358. $ref:
  359. - "normalize/acl"
  360. - variable: path
  361. label: Host Path
  362. description: The host path to use for storage.
  363. schema:
  364. type: hostpath
  365. show_if: [["acl_enable", "=", false]]
  366. required: true
  367. - variable: additional_storage
  368. label: Additional Storage
  369. schema:
  370. type: list
  371. default: []
  372. items:
  373. - variable: storageEntry
  374. label: Storage Entry
  375. schema:
  376. type: dict
  377. attrs:
  378. - variable: type
  379. label: Type
  380. description: |
  381. ixVolume: Is dataset created automatically by the system.</br>
  382. Host Path: Is a path that already exists on the system.</br>
  383. SMB Share: Is a SMB share that is mounted to as a volume.
  384. schema:
  385. type: string
  386. required: true
  387. default: "ix_volume"
  388. enum:
  389. - value: "host_path"
  390. description: Host Path (Path that already exists on the system)
  391. - value: "ix_volume"
  392. description: ixVolume (Dataset created automatically by the system)
  393. - value: "cifs"
  394. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  395. - variable: read_only
  396. label: Read Only
  397. description: Mount the volume as read only.
  398. schema:
  399. type: boolean
  400. default: false
  401. - variable: mount_path
  402. label: Mount Path
  403. description: The path inside the container to mount the storage.
  404. schema:
  405. type: path
  406. required: true
  407. - variable: host_path_config
  408. label: Host Path Configuration
  409. schema:
  410. type: dict
  411. show_if: [["type", "=", "host_path"]]
  412. attrs:
  413. - variable: acl_enable
  414. label: Enable ACL
  415. description: Enable ACL for the storage.
  416. schema:
  417. type: boolean
  418. default: false
  419. - variable: acl
  420. label: ACL Configuration
  421. schema:
  422. type: dict
  423. show_if: [["acl_enable", "=", true]]
  424. attrs: []
  425. $ref:
  426. - "normalize/acl"
  427. - variable: path
  428. label: Host Path
  429. description: The host path to use for storage.
  430. schema:
  431. type: hostpath
  432. show_if: [["acl_enable", "=", false]]
  433. required: true
  434. - variable: ix_volume_config
  435. label: ixVolume Configuration
  436. description: The configuration for the ixVolume dataset.
  437. schema:
  438. type: dict
  439. show_if: [["type", "=", "ix_volume"]]
  440. $ref:
  441. - "normalize/ix_volume"
  442. attrs:
  443. - variable: acl_enable
  444. label: Enable ACL
  445. description: Enable ACL for the storage.
  446. schema:
  447. type: boolean
  448. default: false
  449. - variable: dataset_name
  450. label: Dataset Name
  451. description: The name of the dataset to use for storage.
  452. schema:
  453. type: string
  454. required: true
  455. default: "storage_entry"
  456. - variable: acl_entries
  457. label: ACL Configuration
  458. schema:
  459. type: dict
  460. show_if: [["acl_enable", "=", true]]
  461. attrs: []
  462. $ref:
  463. - "normalize/acl"
  464. - variable: cifs_config
  465. label: SMB Configuration
  466. description: The configuration for the SMB dataset.
  467. schema:
  468. type: dict
  469. show_if: [["type", "=", "cifs"]]
  470. attrs:
  471. - variable: server
  472. label: Server
  473. description: The server to mount the SMB share.
  474. schema:
  475. type: string
  476. required: true
  477. - variable: path
  478. label: Path
  479. description: The path to mount the SMB share.
  480. schema:
  481. type: string
  482. required: true
  483. - variable: username
  484. label: Username
  485. description: The username to use for the SMB share.
  486. schema:
  487. type: string
  488. required: true
  489. - variable: password
  490. label: Password
  491. description: The password to use for the SMB share.
  492. schema:
  493. type: string
  494. required: true
  495. private: true
  496. - variable: domain
  497. label: Domain
  498. description: The domain to use for the SMB share.
  499. schema:
  500. type: string
  501. - variable: labels
  502. label: ""
  503. group: Labels Configuration
  504. schema:
  505. type: list
  506. default: []
  507. items:
  508. - variable: label
  509. label: Label
  510. schema:
  511. type: dict
  512. attrs:
  513. - variable: key
  514. label: Key
  515. schema:
  516. type: string
  517. required: true
  518. - variable: value
  519. label: Value
  520. schema:
  521. type: string
  522. required: true
  523. - variable: containers
  524. label: Containers
  525. description: Containers where the label should be applied
  526. schema:
  527. type: list
  528. items:
  529. - variable: container
  530. label: Container
  531. schema:
  532. type: string
  533. required: true
  534. enum:
  535. - value: arti
  536. description: arti
  537. - variable: resources
  538. label: ""
  539. group: Resources Configuration
  540. schema:
  541. type: dict
  542. attrs:
  543. - variable: limits
  544. label: Limits
  545. schema:
  546. type: dict
  547. attrs:
  548. - variable: cpus
  549. label: CPUs
  550. description: CPUs limit for Arti.
  551. schema:
  552. type: int
  553. default: 2
  554. required: true
  555. - variable: memory
  556. label: Memory (in MB)
  557. description: Memory limit for Arti.
  558. schema:
  559. type: int
  560. default: 4096
  561. required: true