questions.yaml 16 KB

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