questions.yaml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. groups:
  2. - name: WebDAV Configuration
  3. description: Configure WebDAV
  4. - name: User and Group Configuration
  5. description: Configure User and Group for WebDAV
  6. - name: Network Configuration
  7. description: Configure Network for WebDAV
  8. - name: Storage Configuration
  9. description: Configure Storage for WebDAV
  10. - name: Labels Configuration
  11. description: Configure Labels for WebDAV
  12. - name: Resources Configuration
  13. description: Configure Resources for WebDAV
  14. questions:
  15. - variable: webdav
  16. label: ""
  17. group: WebDAV Configuration
  18. schema:
  19. type: dict
  20. attrs:
  21. - variable: auth_type
  22. label: Authentication Type
  23. description: The type of authentication to use for WebDAV.
  24. schema:
  25. type: string
  26. default: "none"
  27. required: true
  28. enum:
  29. - value: "none"
  30. description: No authentication
  31. - value: "basic"
  32. description: Basic authentication
  33. - variable: username
  34. label: Username
  35. description: The username to use for WebDAV.
  36. schema:
  37. type: string
  38. default: ""
  39. show_if: [["auth_type", "=", "basic"]]
  40. required: true
  41. - variable: password
  42. label: Password
  43. description: The password to use for WebDAV.
  44. schema:
  45. type: string
  46. default: ""
  47. show_if: [["auth_type", "=", "basic"]]
  48. private: true
  49. required: true
  50. - variable: additional_browser_matches
  51. label: Additional Browser Matches
  52. description: |
  53. Additional browser matches for WebDAV.</br>
  54. This is useful if you want to use WebDAV with a browser
  55. that is not supported by the default configuration.</br>
  56. Example: "^some-regex" </br>
  57. This will create the following line in the configuration file:</br>
  58. BrowserMatch "^some-regex" redirect-carefully
  59. schema:
  60. type: list
  61. default: []
  62. items:
  63. - variable: match
  64. label: Match
  65. schema:
  66. type: string
  67. required: true
  68. - variable: additional_envs
  69. label: Additional Environment Variables
  70. schema:
  71. type: list
  72. default: []
  73. items:
  74. - variable: env
  75. label: Environment Variable
  76. schema:
  77. type: dict
  78. attrs:
  79. - variable: name
  80. label: Name
  81. schema:
  82. type: string
  83. required: true
  84. - variable: value
  85. label: Value
  86. schema:
  87. type: string
  88. - variable: run_as
  89. label: ""
  90. group: User and Group Configuration
  91. schema:
  92. type: dict
  93. attrs:
  94. - variable: user
  95. label: User ID
  96. description: The user id that WebDAV files will be owned by.
  97. schema:
  98. type: int
  99. min: 2
  100. default: 666
  101. required: true
  102. - variable: group
  103. label: Group ID
  104. description: The group id that WebDAV files will be owned by.
  105. schema:
  106. type: int
  107. min: 2
  108. default: 666
  109. required: true
  110. - variable: network
  111. label: ""
  112. group: Network Configuration
  113. schema:
  114. type: dict
  115. attrs:
  116. - variable: http_port
  117. label: HTTP Port
  118. schema:
  119. type: dict
  120. attrs:
  121. - variable: bind_mode
  122. label: Port Bind Mode
  123. description: |
  124. The port bind mode.</br>
  125. - Publish: The port will be published on the host for external access.</br>
  126. - Expose: The port will be exposed for inter-container communication.</br>
  127. - None: The port will not be exposed or published.</br>
  128. Note: If the Dockerfile defines an EXPOSE directive,
  129. the port will still be exposed for inter-container communication regardless of this setting.
  130. schema:
  131. type: string
  132. default: "published"
  133. enum:
  134. - value: "published"
  135. description: Publish port on the host for external access
  136. - value: "exposed"
  137. description: Expose port for inter-container communication
  138. - value: ""
  139. description: None
  140. - variable: port_number
  141. label: Port Number
  142. schema:
  143. type: int
  144. default: 30035
  145. min: 1
  146. max: 65535
  147. required: true
  148. - variable: host_ips
  149. label: Host IPs
  150. description: IPs on the host to bind this port
  151. schema:
  152. type: list
  153. show_if: [["bind_mode", "=", "published"]]
  154. default: []
  155. items:
  156. - variable: host_ip
  157. label: Host IP
  158. schema:
  159. type: string
  160. required: true
  161. $ref:
  162. - definitions/node_bind_ip
  163. - variable: https_port
  164. label: HTTPS Port
  165. schema:
  166. type: dict
  167. attrs:
  168. - variable: bind_mode
  169. label: Port Bind Mode
  170. description: |
  171. The port bind mode.</br>
  172. - Publish: The port will be published on the host for external access.</br>
  173. - Expose: The port will be exposed for inter-container communication.</br>
  174. - None: The port will not be exposed or published.</br>
  175. Note: If the Dockerfile defines an EXPOSE directive,
  176. the port will still be exposed for inter-container communication regardless of this setting.
  177. schema:
  178. type: string
  179. default: ""
  180. enum:
  181. - value: "published"
  182. description: Publish port on the host for external access
  183. - value: "exposed"
  184. description: Expose port for inter-container communication
  185. - value: ""
  186. description: None
  187. - variable: port_number
  188. label: Port Number
  189. schema:
  190. type: int
  191. default: 30036
  192. min: 1
  193. max: 65535
  194. required: true
  195. - variable: host_ips
  196. label: Host IPs
  197. description: IPs on the host to bind this port
  198. schema:
  199. type: list
  200. show_if: [["bind_mode", "=", "published"]]
  201. default: []
  202. items:
  203. - variable: host_ip
  204. label: Host IP
  205. schema:
  206. type: string
  207. required: true
  208. $ref:
  209. - definitions/node_bind_ip
  210. - variable: certificate_id
  211. label: Certificate
  212. description: The certificate to use for WebDAV.
  213. schema:
  214. type: int
  215. "null": true
  216. $ref:
  217. - "definitions/certificate"
  218. - variable: host_network
  219. label: Host Network
  220. description: |
  221. Bind to the host network. It's recommended to keep this disabled.
  222. schema:
  223. type: boolean
  224. default: false
  225. - variable: storage
  226. label: ""
  227. group: Storage Configuration
  228. schema:
  229. type: dict
  230. attrs:
  231. - variable: shares
  232. label: Shares
  233. description: The shares to use for WebDAV.
  234. schema:
  235. type: list
  236. default: []
  237. items:
  238. - variable: share_entry
  239. label: Share Entry
  240. schema:
  241. type: dict
  242. attrs:
  243. - variable: enabled
  244. label: Enable the share
  245. description: Enable the share.
  246. schema:
  247. type: boolean
  248. default: true
  249. - variable: name
  250. label: Share Name
  251. description: |
  252. The name of the share.</br>
  253. Also serves as the endpoint for the share.</br>
  254. Example: [share1] will be available at [http://<webdav-ip>:<webdav-port>/share1]
  255. schema:
  256. type: string
  257. valid_chars: "^[a-zA-Z0-9_-]+$"
  258. valid_chars_error: "Share name can only consist of [Letters(a-z, A-Z), Numbers(0-9), Underscores(_), Dashes(-)]"
  259. required: true
  260. - variable: description
  261. label: Description
  262. description: Share description. Only used for documentation.
  263. schema:
  264. type: string
  265. - variable: host_path
  266. label: Host Path
  267. description: The host path to use for the share.
  268. schema:
  269. type: hostpath
  270. required: true
  271. - variable: read_only
  272. label: Read Only
  273. description: |
  274. Enable read only access to the share.</br>
  275. This will disable write access to the share.</br>
  276. Data will be mounted as read only.
  277. schema:
  278. type: boolean
  279. default: false
  280. - variable: max_request_body_size_gb
  281. label: Max Request Body Size (in GB)
  282. description: |
  283. The maximum size of the request body in GB.
  284. If the request body size exceeds this value, the request will fail.
  285. Value of 0 means no limit.
  286. schema:
  287. type: int
  288. default: 1
  289. - variable: fix_permissions
  290. label: Fix Permissions
  291. description: |
  292. Enable permission fix for the share.</br>
  293. This will fix the permissions of the share on startup.</br>
  294. This will change the owner of the share to the user and group specified in [User and Group Configuration].</br>
  295. Note: This will still change permissions even if [Read Only] for the share is enabled.
  296. schema:
  297. type: boolean
  298. default: false
  299. - variable: labels
  300. label: ""
  301. group: Labels Configuration
  302. schema:
  303. type: list
  304. default: []
  305. items:
  306. - variable: label
  307. label: Label
  308. schema:
  309. type: dict
  310. attrs:
  311. - variable: key
  312. label: Key
  313. schema:
  314. type: string
  315. required: true
  316. - variable: value
  317. label: Value
  318. schema:
  319. type: string
  320. required: true
  321. - variable: containers
  322. label: Containers
  323. description: Containers where the label should be applied
  324. schema:
  325. type: list
  326. items:
  327. - variable: container
  328. label: Container
  329. schema:
  330. type: string
  331. required: true
  332. enum:
  333. - value: webdav
  334. description: webdav
  335. - variable: resources
  336. label: ""
  337. group: Resources Configuration
  338. schema:
  339. type: dict
  340. attrs:
  341. - variable: limits
  342. label: Limits
  343. schema:
  344. type: dict
  345. attrs:
  346. - variable: cpus
  347. label: CPUs
  348. description: CPUs limit for WebDAV.
  349. schema:
  350. type: int
  351. default: 2
  352. required: true
  353. - variable: memory
  354. label: Memory (in MB)
  355. description: Memory limit for WebDAV.
  356. schema:
  357. type: int
  358. default: 4096
  359. required: true