questions.yaml 20 KB

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