questions.yaml 25 KB

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