questions.yaml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  1. groups:
  2. - name: JDownloader2 Configuration
  3. description: Configure JDownloader2
  4. - name: User and Group Configuration
  5. description: Configure User and Group for JDownloader2
  6. - name: Network Configuration
  7. description: Configure Network for JDownloader2
  8. - name: Storage Configuration
  9. description: Configure Storage for JDownloader2
  10. - name: Labels Configuration
  11. description: Configure Labels for JDownloader2
  12. - name: Resources Configuration
  13. description: Configure Resources for JDownloader2
  14. questions:
  15. - variable: jdownloader2
  16. label: ""
  17. group: JDownloader2 Configuration
  18. schema:
  19. type: dict
  20. attrs:
  21. - variable: myjd_name
  22. label: MyJdownloader Device Name
  23. description: The device name that will appear on MyJdownloader portal.
  24. schema:
  25. type: string
  26. required: true
  27. - variable: myjd_user
  28. label: MyJdownloader Username
  29. description: Your MyJDownloader user.
  30. schema:
  31. type: string
  32. required: true
  33. - variable: myjd_password
  34. label: MyJdownloader Password
  35. description: Your MyJDownloader password.
  36. schema:
  37. type: string
  38. required: true
  39. private: true
  40. - variable: additional_envs
  41. label: Additional Environment Variables
  42. schema:
  43. type: list
  44. default: []
  45. items:
  46. - variable: env
  47. label: Environment Variable
  48. schema:
  49. type: dict
  50. attrs:
  51. - variable: name
  52. label: Name
  53. schema:
  54. type: string
  55. required: true
  56. - variable: value
  57. label: Value
  58. schema:
  59. type: string
  60. - variable: run_as
  61. label: ""
  62. group: User and Group Configuration
  63. schema:
  64. type: dict
  65. attrs:
  66. - variable: user
  67. label: User ID
  68. description: The user id that JDownloader2 files will be owned by.
  69. schema:
  70. type: int
  71. min: 568
  72. default: 568
  73. required: true
  74. - variable: group
  75. label: Group ID
  76. description: The group id that JDownloader2 files will be owned by.
  77. schema:
  78. type: int
  79. min: 568
  80. default: 568
  81. required: true
  82. - variable: network
  83. label: ""
  84. group: Network Configuration
  85. schema:
  86. type: dict
  87. attrs:
  88. - variable: direct_connection_port
  89. label: Direct Connection Port
  90. schema:
  91. type: dict
  92. show_if: [["host_network", "=", false]]
  93. attrs:
  94. - variable: bind_mode
  95. label: Port Bind Mode
  96. description: |
  97. The port bind mode.</br>
  98. - Publish: The port will be published on the host for external access.</br>
  99. - Expose: The port will be exposed for inter-container communication.</br>
  100. - None: The port will not be exposed or published.</br>
  101. Note: If the Dockerfile defines an EXPOSE directive,
  102. the port will still be exposed for inter-container communication regardless of this setting.
  103. schema:
  104. type: string
  105. default: ""
  106. enum:
  107. - value: "published"
  108. description: Publish port on the host for external access
  109. - value: "exposed"
  110. description: Expose port for inter-container communication
  111. - value: ""
  112. description: None
  113. - variable: port_number
  114. label: Port Number
  115. schema:
  116. type: int
  117. default: 3129
  118. show_if: [["bind_mode", "=", "published"]]
  119. min: 1
  120. max: 65535
  121. required: true
  122. - variable: host_ips
  123. label: Host IPs
  124. description: IPs on the host to bind this port
  125. schema:
  126. type: list
  127. show_if: [["bind_mode", "=", "published"]]
  128. default: []
  129. items:
  130. - variable: host_ip
  131. label: Host IP
  132. schema:
  133. type: string
  134. required: true
  135. $ref:
  136. - definitions/node_bind_ip
  137. - variable: host_network
  138. label: Host Network
  139. description: |
  140. Bind to the host network. It's recommended to keep this disabled.
  141. schema:
  142. type: boolean
  143. default: false
  144. - variable: storage
  145. label: ""
  146. group: Storage Configuration
  147. schema:
  148. type: dict
  149. attrs:
  150. - variable: config
  151. label: JDownloader2 Config Storage
  152. description: The path to store JDownloader2 Config.
  153. schema:
  154. type: dict
  155. attrs:
  156. - variable: type
  157. label: Type
  158. description: |
  159. ixVolume: Is dataset created automatically by the system.</br>
  160. Host Path: Is a path that already exists on the system.
  161. schema:
  162. type: string
  163. required: true
  164. default: "ix_volume"
  165. enum:
  166. - value: "host_path"
  167. description: Host Path (Path that already exists on the system)
  168. - value: "ix_volume"
  169. description: ixVolume (Dataset created automatically by the system)
  170. - variable: ix_volume_config
  171. label: ixVolume Configuration
  172. description: The configuration for the ixVolume dataset.
  173. schema:
  174. type: dict
  175. show_if: [["type", "=", "ix_volume"]]
  176. $ref:
  177. - "normalize/ix_volume"
  178. attrs:
  179. - variable: acl_enable
  180. label: Enable ACL
  181. description: Enable ACL for the storage.
  182. schema:
  183. type: boolean
  184. default: false
  185. - variable: dataset_name
  186. label: Dataset Name
  187. description: The name of the dataset to use for storage.
  188. schema:
  189. type: string
  190. required: true
  191. hidden: true
  192. default: "config"
  193. - variable: acl_entries
  194. label: ACL Configuration
  195. schema:
  196. type: dict
  197. show_if: [["acl_enable", "=", true]]
  198. attrs: []
  199. - variable: host_path_config
  200. label: Host Path Configuration
  201. schema:
  202. type: dict
  203. show_if: [["type", "=", "host_path"]]
  204. attrs:
  205. - variable: acl_enable
  206. label: Enable ACL
  207. description: Enable ACL for the storage.
  208. schema:
  209. type: boolean
  210. default: false
  211. - variable: acl
  212. label: ACL Configuration
  213. schema:
  214. type: dict
  215. show_if: [["acl_enable", "=", true]]
  216. attrs: []
  217. $ref:
  218. - "normalize/acl"
  219. - variable: path
  220. label: Host Path
  221. description: The host path to use for storage.
  222. schema:
  223. type: hostpath
  224. show_if: [["acl_enable", "=", false]]
  225. required: true
  226. - variable: downloads
  227. label: JDownloader2 Downloads Storage
  228. description: The path to store JDownloader2 Downloads.
  229. schema:
  230. type: dict
  231. attrs:
  232. - variable: type
  233. label: Type
  234. description: |
  235. ixVolume: Is dataset created automatically by the system.</br>
  236. Host Path: Is a path that already exists on the system.
  237. schema:
  238. type: string
  239. required: true
  240. default: "ix_volume"
  241. enum:
  242. - value: "host_path"
  243. description: Host Path (Path that already exists on the system)
  244. - value: "ix_volume"
  245. description: ixVolume (Dataset created automatically by the system)
  246. - variable: ix_volume_config
  247. label: ixVolume Configuration
  248. description: The configuration for the ixVolume dataset.
  249. schema:
  250. type: dict
  251. show_if: [["type", "=", "ix_volume"]]
  252. $ref:
  253. - "normalize/ix_volume"
  254. attrs:
  255. - variable: acl_enable
  256. label: Enable ACL
  257. description: Enable ACL for the storage.
  258. schema:
  259. type: boolean
  260. default: false
  261. - variable: dataset_name
  262. label: Dataset Name
  263. description: The name of the dataset to use for storage.
  264. schema:
  265. type: string
  266. required: true
  267. hidden: true
  268. default: "downloads"
  269. - variable: acl_entries
  270. label: ACL Configuration
  271. schema:
  272. type: dict
  273. show_if: [["acl_enable", "=", true]]
  274. attrs: []
  275. - variable: host_path_config
  276. label: Host Path Configuration
  277. schema:
  278. type: dict
  279. show_if: [["type", "=", "host_path"]]
  280. attrs:
  281. - variable: acl_enable
  282. label: Enable ACL
  283. description: Enable ACL for the storage.
  284. schema:
  285. type: boolean
  286. default: false
  287. - variable: acl
  288. label: ACL Configuration
  289. schema:
  290. type: dict
  291. show_if: [["acl_enable", "=", true]]
  292. attrs: []
  293. $ref:
  294. - "normalize/acl"
  295. - variable: path
  296. label: Host Path
  297. description: The host path to use for storage.
  298. schema:
  299. type: hostpath
  300. show_if: [["acl_enable", "=", false]]
  301. required: true
  302. - variable: additional_storage
  303. label: Additional Storage
  304. schema:
  305. type: list
  306. default: []
  307. items:
  308. - variable: storageEntry
  309. label: Storage Entry
  310. schema:
  311. type: dict
  312. attrs:
  313. - variable: type
  314. label: Type
  315. description: |
  316. ixVolume: Is dataset created automatically by the system.</br>
  317. Host Path: Is a path that already exists on the system.</br>
  318. SMB Share: Is a SMB share that is mounted to as a volume.
  319. schema:
  320. type: string
  321. required: true
  322. default: "ix_volume"
  323. enum:
  324. - value: "host_path"
  325. description: Host Path (Path that already exists on the system)
  326. - value: "ix_volume"
  327. description: ixVolume (Dataset created automatically by the system)
  328. - value: "cifs"
  329. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  330. - variable: read_only
  331. label: Read Only
  332. description: Mount the volume as read only.
  333. schema:
  334. type: boolean
  335. default: false
  336. - variable: mount_path
  337. label: Mount Path
  338. description: The path inside the container to mount the storage.
  339. schema:
  340. type: path
  341. required: true
  342. - variable: host_path_config
  343. label: Host Path Configuration
  344. schema:
  345. type: dict
  346. show_if: [["type", "=", "host_path"]]
  347. attrs:
  348. - variable: acl_enable
  349. label: Enable ACL
  350. description: Enable ACL for the storage.
  351. schema:
  352. type: boolean
  353. default: false
  354. - variable: acl
  355. label: ACL Configuration
  356. schema:
  357. type: dict
  358. show_if: [["acl_enable", "=", true]]
  359. attrs: []
  360. $ref:
  361. - "normalize/acl"
  362. - variable: path
  363. label: Host Path
  364. description: The host path to use for storage.
  365. schema:
  366. type: hostpath
  367. show_if: [["acl_enable", "=", false]]
  368. required: true
  369. - variable: ix_volume_config
  370. label: ixVolume Configuration
  371. description: The configuration for the ixVolume dataset.
  372. schema:
  373. type: dict
  374. show_if: [["type", "=", "ix_volume"]]
  375. $ref:
  376. - "normalize/ix_volume"
  377. attrs:
  378. - variable: acl_enable
  379. label: Enable ACL
  380. description: Enable ACL for the storage.
  381. schema:
  382. type: boolean
  383. default: false
  384. - variable: dataset_name
  385. label: Dataset Name
  386. description: The name of the dataset to use for storage.
  387. schema:
  388. type: string
  389. required: true
  390. default: "storage_entry"
  391. - variable: acl_entries
  392. label: ACL Configuration
  393. schema:
  394. type: dict
  395. show_if: [["acl_enable", "=", true]]
  396. attrs: []
  397. - variable: cifs_config
  398. label: SMB Configuration
  399. description: The configuration for the SMB dataset.
  400. schema:
  401. type: dict
  402. show_if: [["type", "=", "cifs"]]
  403. attrs:
  404. - variable: server
  405. label: Server
  406. description: The server to mount the SMB share.
  407. schema:
  408. type: string
  409. required: true
  410. - variable: path
  411. label: Path
  412. description: The path to mount the SMB share.
  413. schema:
  414. type: string
  415. required: true
  416. - variable: username
  417. label: Username
  418. description: The username to use for the SMB share.
  419. schema:
  420. type: string
  421. required: true
  422. - variable: password
  423. label: Password
  424. description: The password to use for the SMB share.
  425. schema:
  426. type: string
  427. required: true
  428. private: true
  429. - variable: domain
  430. label: Domain
  431. description: The domain to use for the SMB share.
  432. schema:
  433. type: string
  434. - variable: labels
  435. label: ""
  436. group: Labels Configuration
  437. schema:
  438. type: list
  439. default: []
  440. items:
  441. - variable: label
  442. label: Label
  443. schema:
  444. type: dict
  445. attrs:
  446. - variable: key
  447. label: Key
  448. schema:
  449. type: string
  450. required: true
  451. - variable: value
  452. label: Value
  453. schema:
  454. type: string
  455. required: true
  456. - variable: containers
  457. label: Containers
  458. description: Containers where the label should be applied
  459. schema:
  460. type: list
  461. items:
  462. - variable: container
  463. label: Container
  464. schema:
  465. type: string
  466. required: true
  467. enum:
  468. - value: jdownloader2
  469. description: jdownloader2
  470. - variable: resources
  471. label: ""
  472. group: Resources Configuration
  473. schema:
  474. type: dict
  475. attrs:
  476. - variable: limits
  477. label: Limits
  478. schema:
  479. type: dict
  480. attrs:
  481. - variable: cpus
  482. label: CPUs
  483. description: CPUs limit for JDownloader2.
  484. schema:
  485. type: int
  486. default: 2
  487. required: true
  488. - variable: memory
  489. label: Memory (in MB)
  490. description: Memory limit for JDownloader2.
  491. schema:
  492. type: int
  493. default: 4096
  494. required: true