questions.yaml 15 KB

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