questions.yaml 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760
  1. groups:
  2. - name: Nextcloud Configuration
  3. description: Configure Nextcloud
  4. - name: Advanced Pod Configuration
  5. description: Configure Advanced Pod Options for Nextcloud
  6. - name: Network Configuration
  7. description: Configure Network for Nextcloud
  8. - name: Storage Configuration
  9. description: Configure Storage for Nextcloud
  10. - name: Resources Configuration
  11. description: Configure Resources for Nextcloud
  12. portals:
  13. web_portal:
  14. protocols:
  15. - "$kubernetes-resource_configmap_portal_protocol"
  16. host:
  17. - "$kubernetes-resource_configmap_portal_host"
  18. ports:
  19. - "$kubernetes-resource_configmap_portal_port"
  20. path: "$kubernetes-resource_configmap_portal_path"
  21. questions:
  22. - variable: ncConfig
  23. label: ""
  24. group: Nextcloud Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: adminUser
  29. label: Admin User
  30. description: The Nextcloud admin user.
  31. schema:
  32. type: string
  33. default: ""
  34. required: true
  35. - variable: adminPassword
  36. label: Admin Password
  37. description: The Nextcloud admin password.
  38. schema:
  39. type: string
  40. default: ""
  41. required: true
  42. - variable: host
  43. label: Host
  44. description: Nextcloud host to create application URLs
  45. schema:
  46. type: string
  47. $ref:
  48. - "definitions/nodeIP"
  49. - variable: dataDir
  50. label: "Nextcloud data directory"
  51. description: "Configures the data directory where Nextcloud stores all files from the users. The path refers to the path inside the container"
  52. schema:
  53. type: path
  54. default: "/var/www/html/data"
  55. required: true
  56. - variable: commands
  57. label: Commands
  58. description: Commands to run in the Nextcloud container
  59. schema:
  60. type: list
  61. items:
  62. - variable: command
  63. label: Command
  64. schema:
  65. type: string
  66. required: true
  67. enum:
  68. - value: ffmpeg
  69. description: ffmpeg
  70. - value: smbclient
  71. description: smbclient
  72. - variable: maxUploadLimit
  73. label: Max Upload Size (Giga Bytes)
  74. description: |
  75. Applies the timeout to the following settings:</br>
  76. - client_max_body_size in nginx</br>
  77. - post_max_size and upload_max_filesize in php</br>
  78. schema:
  79. type: int
  80. default: 3
  81. min: 1
  82. required: true
  83. - variable: maxExecutionTime
  84. label: Max Execution Time (Seconds)
  85. description: Configures the max execution time of php
  86. schema:
  87. type: int
  88. default: 30
  89. min: 30
  90. required: true
  91. - variable: phpMemoryLimit
  92. label: PHP Memory Limit (Mega Bytes)
  93. description: Configures the memory limit of php
  94. schema:
  95. type: int
  96. default: 512
  97. min: 128
  98. max: 4096
  99. required: true
  100. - variable: opCacheMemoryConsumption
  101. label: Opcache Memory Consumption (Mega Bytes)
  102. description: Configures the memory consumption of the opcache
  103. schema:
  104. type: int
  105. min: 128
  106. max: 1024
  107. default: 128
  108. required: true
  109. - variable: cron
  110. label: Cron
  111. description: Configures the cron job for Nextcloud
  112. schema:
  113. type: dict
  114. attrs:
  115. - variable: enabled
  116. label: Enabled
  117. schema:
  118. type: boolean
  119. default: true
  120. required: true
  121. - variable: schedule
  122. label: Schedule
  123. schema:
  124. type: string
  125. show_if: [["enabled", "=", true]]
  126. default: "*/15 * * * *"
  127. required: true
  128. - variable: podOptions
  129. label: ""
  130. group: Advanced Pod Configuration
  131. schema:
  132. type: dict
  133. attrs:
  134. - variable: dnsConfig
  135. label: Advanced DNS Configuration
  136. schema:
  137. type: dict
  138. attrs:
  139. - variable: options
  140. label: DNS Options
  141. schema:
  142. type: list
  143. items:
  144. - variable: optionsEntry
  145. label: DNS Option Entry
  146. schema:
  147. type: dict
  148. attrs:
  149. - variable: name
  150. label: Option Name
  151. schema:
  152. type: string
  153. required: true
  154. - variable: value
  155. label: Option Value
  156. schema:
  157. type: string
  158. required: true
  159. - variable: ncNetwork
  160. label: ""
  161. group: Network Configuration
  162. schema:
  163. type: dict
  164. attrs:
  165. - variable: webPort
  166. label: Web Port
  167. description: The port for the Nextcloud Web UI.
  168. schema:
  169. type: int
  170. default: 20810
  171. min: 9000
  172. max: 65535
  173. required: true
  174. - variable: certificateID
  175. label: Certificate
  176. description: The certificate to use for Nextcloud
  177. schema:
  178. type: int
  179. "null": true
  180. $ref:
  181. - "definitions/certificate"
  182. - variable: nginx
  183. label: Nginx Configuration
  184. schema:
  185. type: dict
  186. show_if: [["certificateID", "!=", null]]
  187. attrs:
  188. - variable: proxyTimeouts
  189. label: Proxy timeouts (Seconds)
  190. description: |
  191. Applies the timeout to the following settings:</br>
  192. - proxy_connect_timeout</br>
  193. - proxy_send_timeout</br>
  194. - proxy_read_timeout</br>
  195. schema:
  196. type: int
  197. min: 30
  198. default: 60
  199. required: true
  200. - variable: useDifferentAccessPort
  201. label: Use different port for URL rewrites
  202. description: |
  203. If enabled, the URL rewrite will use [Access Port] defined below instead of the [Node Port].</br>
  204. Note that Nextcloud will still listen on the [Node Port]. (Default 9001)
  205. schema:
  206. type: boolean
  207. default: false
  208. - variable: externalAccessPort
  209. label: External Access Port
  210. schema:
  211. type: int
  212. show_if: [["useDifferentAccessPort", "=", true]]
  213. min: 443
  214. max: 65535
  215. default: 443
  216. required: true
  217. - variable: ncStorage
  218. label: ""
  219. group: Storage Configuration
  220. schema:
  221. type: dict
  222. attrs:
  223. - variable: shouldShowStorageToggle
  224. label: ""
  225. schema:
  226. type: boolean
  227. default: false
  228. hidden: true
  229. - variable: isDataInTheSameVolume
  230. label: "Pre v2 Storage Structure (See the tooltip for more information)"
  231. description: |
  232. If this is checked, means that this is an installation coming from a previous version (v1.x.x).<br/>
  233. In order to have backwards compatibility, the older storage structure was kept for this installation.<br/>
  234. If you want to utilize the new storage structure, move 'data' in a separate directory or dataset.
  235. Change the 'Nextcloud UserData' configuration below to point to the new location and then uncheck this checkbox.
  236. <br/><br/>
  237. You will NOT likely want to change that if your setup uses ixVolume as storage.
  238. schema:
  239. type: boolean
  240. show_if: [["shouldShowStorageToggle", "=", true]]
  241. default: false
  242. - variable: html
  243. label: Nextcloud HTML Storage
  244. description: The path to store Nextcloud HTML and AppData.
  245. schema:
  246. type: dict
  247. attrs:
  248. - variable: type
  249. label: Type
  250. description: |
  251. ixVolume: Is dataset created automatically by the system.</br>
  252. Host Path: Is a path that already exists on the system.
  253. schema:
  254. type: string
  255. required: true
  256. immutable: true
  257. default: ixVolume
  258. enum:
  259. - value: hostPath
  260. description: Host Path (Path that already exists on the system)
  261. - value: ixVolume
  262. description: ixVolume (Dataset created automatically by the system)
  263. - variable: ixVolumeConfig
  264. label: ixVolume Configuration
  265. description: The configuration for the ixVolume dataset.
  266. schema:
  267. type: dict
  268. show_if: [["type", "=", "ixVolume"]]
  269. $ref:
  270. - "normalize/ixVolume"
  271. attrs:
  272. - variable: aclEnable
  273. label: Enable ACL
  274. description: Enable ACL for the dataset.
  275. schema:
  276. type: boolean
  277. default: false
  278. - variable: datasetName
  279. label: Dataset Name
  280. description: The name of the dataset to use for storage.
  281. schema:
  282. type: string
  283. required: true
  284. immutable: true
  285. hidden: true
  286. default: "html"
  287. - variable: aclEntries
  288. label: ACL Configuration
  289. schema:
  290. type: dict
  291. show_if: [["aclEnable", "=", true]]
  292. attrs: []
  293. - variable: hostPathConfig
  294. label: Host Path Configuration
  295. schema:
  296. type: dict
  297. show_if: [["type", "=", "hostPath"]]
  298. attrs:
  299. - variable: aclEnable
  300. label: Enable ACL
  301. description: Enable ACL for the dataset.
  302. schema:
  303. type: boolean
  304. default: false
  305. - variable: acl
  306. label: ACL Configuration
  307. schema:
  308. type: dict
  309. show_if: [["aclEnable", "=", true]]
  310. attrs: []
  311. $ref:
  312. - "normalize/acl"
  313. - variable: hostPath
  314. label: Host Path
  315. description: The host path to use for storage.
  316. schema:
  317. type: hostpath
  318. show_if: [["aclEnable", "=", false]]
  319. required: true
  320. - variable: data
  321. label: Nextcloud User Data Storage
  322. description: The path to store Nextcloud User Data.
  323. schema:
  324. type: dict
  325. attrs:
  326. - variable: type
  327. label: Type
  328. description: |
  329. ixVolume: Is dataset created automatically by the system.</br>
  330. Host Path: Is a path that already exists on the system.
  331. schema:
  332. type: string
  333. required: true
  334. immutable: true
  335. default: ixVolume
  336. enum:
  337. - value: hostPath
  338. description: Host Path (Path that already exists on the system)
  339. - value: ixVolume
  340. description: ixVolume (Dataset created automatically by the system)
  341. - variable: ixVolumeConfig
  342. label: ixVolume Configuration
  343. description: The configuration for the ixVolume dataset.
  344. schema:
  345. type: dict
  346. show_if: [["type", "=", "ixVolume"]]
  347. $ref:
  348. - "normalize/ixVolume"
  349. attrs:
  350. - variable: aclEnable
  351. label: Enable ACL
  352. description: Enable ACL for the dataset.
  353. schema:
  354. type: boolean
  355. default: false
  356. - variable: datasetName
  357. label: Dataset Name
  358. description: The name of the dataset to use for storage.
  359. schema:
  360. type: string
  361. required: true
  362. immutable: true
  363. hidden: true
  364. default: "html"
  365. - variable: aclEntries
  366. label: ACL Configuration
  367. schema:
  368. type: dict
  369. show_if: [["aclEnable", "=", true]]
  370. attrs: []
  371. - variable: hostPathConfig
  372. label: Host Path Configuration
  373. schema:
  374. type: dict
  375. show_if: [["type", "=", "hostPath"]]
  376. attrs:
  377. - variable: aclEnable
  378. label: Enable ACL
  379. description: Enable ACL for the dataset.
  380. schema:
  381. type: boolean
  382. default: false
  383. - variable: acl
  384. label: ACL Configuration
  385. schema:
  386. type: dict
  387. show_if: [["aclEnable", "=", true]]
  388. attrs: []
  389. $ref:
  390. - "normalize/acl"
  391. - variable: hostPath
  392. label: Host Path
  393. description: The host path to use for storage.
  394. schema:
  395. type: hostpath
  396. show_if: [["aclEnable", "=", false]]
  397. required: true
  398. - variable: pgData
  399. label: Nextcloud Postgres Data Storage
  400. description: The path to store Nextcloud Postgres Data.
  401. schema:
  402. type: dict
  403. attrs:
  404. - variable: type
  405. label: Type
  406. description: |
  407. ixVolume: Is dataset created automatically by the system.</br>
  408. Host Path: Is a path that already exists on the system.
  409. schema:
  410. type: string
  411. required: true
  412. immutable: true
  413. default: ixVolume
  414. enum:
  415. - value: hostPath
  416. description: Host Path (Path that already exists on the system)
  417. - value: ixVolume
  418. description: ixVolume (Dataset created automatically by the system)
  419. - variable: ixVolumeConfig
  420. label: ixVolume Configuration
  421. description: The configuration for the ixVolume dataset.
  422. schema:
  423. type: dict
  424. # Nothing to show for the user
  425. hidden: true
  426. show_if: [["type", "=", "ixVolume"]]
  427. $ref:
  428. - "normalize/ixVolume"
  429. attrs:
  430. - variable: aclEnable
  431. label: Enable ACL
  432. description: Enable ACL for the dataset.
  433. schema:
  434. type: boolean
  435. # Postgres does a CHMOD at startup
  436. # Which fails with ACL
  437. hidden: true
  438. default: false
  439. - variable: datasetName
  440. label: Dataset Name
  441. description: The name of the dataset to use for storage.
  442. schema:
  443. type: string
  444. required: true
  445. immutable: true
  446. hidden: true
  447. default: "pgData"
  448. - variable: aclEntries
  449. label: ACL Configuration
  450. schema:
  451. type: dict
  452. show_if: [["aclEnable", "=", true]]
  453. attrs: []
  454. - variable: hostPathConfig
  455. label: Host Path Configuration
  456. schema:
  457. type: dict
  458. show_if: [["type", "=", "hostPath"]]
  459. attrs:
  460. - variable: aclEnable
  461. label: Enable ACL
  462. description: Enable ACL for the dataset.
  463. schema:
  464. type: boolean
  465. # Postgres does a CHMOD at startup
  466. # Which fails with ACL
  467. hidden: true
  468. default: false
  469. - variable: acl
  470. label: ACL Configuration
  471. schema:
  472. type: dict
  473. show_if: [["aclEnable", "=", true]]
  474. attrs: []
  475. $ref:
  476. - "normalize/acl"
  477. - variable: hostPath
  478. label: Host Path
  479. description: The host path to use for storage.
  480. schema:
  481. type: hostpath
  482. show_if: [["aclEnable", "=", false]]
  483. required: true
  484. - variable: pgBackup
  485. label: Nextcloud Postgres Backup Storage
  486. description: The path to store Nextcloud Postgres Backup.
  487. schema:
  488. type: dict
  489. attrs:
  490. - variable: type
  491. label: Type
  492. description: |
  493. ixVolume: Is dataset created automatically by the system.</br>
  494. Host Path: Is a path that already exists on the system.
  495. schema:
  496. type: string
  497. required: true
  498. immutable: true
  499. default: ixVolume
  500. enum:
  501. - value: hostPath
  502. description: Host Path (Path that already exists on the system)
  503. - value: ixVolume
  504. description: ixVolume (Dataset created automatically by the system)
  505. - variable: ixVolumeConfig
  506. label: ixVolume Configuration
  507. description: The configuration for the ixVolume dataset.
  508. schema:
  509. type: dict
  510. # Nothing to show for the user
  511. hidden: true
  512. show_if: [["type", "=", "ixVolume"]]
  513. $ref:
  514. - "normalize/ixVolume"
  515. attrs:
  516. - variable: aclEnable
  517. label: Enable ACL
  518. description: Enable ACL for the dataset.
  519. schema:
  520. type: boolean
  521. # Postgres does a CHMOD at startup
  522. # Which fails with ACL
  523. hidden: true
  524. default: false
  525. - variable: datasetName
  526. label: Dataset Name
  527. description: The name of the dataset to use for storage.
  528. schema:
  529. type: string
  530. required: true
  531. immutable: true
  532. hidden: true
  533. default: "pgBackup"
  534. - variable: aclEntries
  535. label: ACL Configuration
  536. schema:
  537. type: dict
  538. show_if: [["aclEnable", "=", true]]
  539. attrs: []
  540. - variable: hostPathConfig
  541. label: Host Path Configuration
  542. schema:
  543. type: dict
  544. show_if: [["type", "=", "hostPath"]]
  545. attrs:
  546. - variable: aclEnable
  547. label: Enable ACL
  548. description: Enable ACL for the dataset.
  549. schema:
  550. type: boolean
  551. # Postgres does a CHMOD at startup
  552. # Which fails with ACL
  553. hidden: true
  554. default: false
  555. - variable: acl
  556. label: ACL Configuration
  557. schema:
  558. type: dict
  559. show_if: [["aclEnable", "=", true]]
  560. attrs: []
  561. $ref:
  562. - "normalize/acl"
  563. - variable: hostPath
  564. label: Host Path
  565. description: The host path to use for storage.
  566. schema:
  567. type: hostpath
  568. show_if: [["aclEnable", "=", false]]
  569. required: true
  570. - variable: additionalStorages
  571. label: Additional Storage
  572. description: Additional storage for Nextcloud.
  573. schema:
  574. type: list
  575. default: []
  576. items:
  577. - variable: storageEntry
  578. label: Storage Entry
  579. schema:
  580. type: dict
  581. attrs:
  582. - variable: type
  583. label: Type
  584. description: |
  585. ixVolume: Is dataset created automatically by the system.</br>
  586. Host Path: Is a path that already exists on the system.</br>
  587. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  588. schema:
  589. type: string
  590. required: true
  591. default: "ixVolume"
  592. immutable: true
  593. enum:
  594. - value: "hostPath"
  595. description: Host Path (Path that already exists on the system)
  596. - value: "ixVolume"
  597. description: ixVolume (Dataset created automatically by the system)
  598. - value: "smb-pv-pvc"
  599. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  600. - variable: readOnly
  601. label: Read Only
  602. description: Mount the volume as read only.
  603. schema:
  604. type: boolean
  605. default: false
  606. - variable: mountPath
  607. label: Mount Path
  608. description: The path inside the container to mount the storage.
  609. schema:
  610. type: path
  611. required: true
  612. - variable: hostPathConfig
  613. label: Host Path Configuration
  614. schema:
  615. type: dict
  616. show_if: [["type", "=", "hostPath"]]
  617. attrs:
  618. - variable: aclEnable
  619. label: Enable ACL
  620. description: Enable ACL for the dataset.
  621. schema:
  622. type: boolean
  623. default: false
  624. - variable: acl
  625. label: ACL Configuration
  626. schema:
  627. type: dict
  628. show_if: [["aclEnable", "=", true]]
  629. attrs: []
  630. $ref:
  631. - "normalize/acl"
  632. - variable: hostPath
  633. label: Host Path
  634. description: The host path to use for storage.
  635. schema:
  636. type: hostpath
  637. show_if: [["aclEnable", "=", false]]
  638. required: true
  639. - variable: ixVolumeConfig
  640. label: ixVolume Configuration
  641. description: The configuration for the ixVolume dataset.
  642. schema:
  643. type: dict
  644. show_if: [["type", "=", "ixVolume"]]
  645. $ref:
  646. - "normalize/ixVolume"
  647. attrs:
  648. - variable: aclEnable
  649. label: Enable ACL
  650. description: Enable ACL for the dataset.
  651. schema:
  652. type: boolean
  653. default: false
  654. - variable: datasetName
  655. label: Dataset Name
  656. description: The name of the dataset to use for storage.
  657. schema:
  658. type: string
  659. required: true
  660. immutable: true
  661. default: "storage_entry"
  662. - variable: aclEntries
  663. label: ACL Configuration
  664. schema:
  665. type: dict
  666. show_if: [["aclEnable", "=", true]]
  667. attrs: []
  668. - variable: smbConfig
  669. label: SMB Share Configuration
  670. description: The configuration for the SMB Share.
  671. schema:
  672. type: dict
  673. show_if: [["type", "=", "smb-pv-pvc"]]
  674. attrs:
  675. - variable: server
  676. label: Server
  677. description: The server for the SMB share.
  678. schema:
  679. type: string
  680. required: true
  681. - variable: share
  682. label: Share
  683. description: The share name for the SMB share.
  684. schema:
  685. type: string
  686. required: true
  687. - variable: domain
  688. label: Domain (Optional)
  689. description: The domain for the SMB share.
  690. schema:
  691. type: string
  692. - variable: username
  693. label: Username
  694. description: The username for the SMB share.
  695. schema:
  696. type: string
  697. required: true
  698. - variable: password
  699. label: Password
  700. description: The password for the SMB share.
  701. schema:
  702. type: string
  703. required: true
  704. private: true
  705. - variable: size
  706. label: Size (in Gi)
  707. description: The size of the volume quota.
  708. schema:
  709. type: int
  710. required: true
  711. min: 1
  712. default: 1
  713. - variable: resources
  714. group: Resources Configuration
  715. label: ""
  716. schema:
  717. type: dict
  718. attrs:
  719. - variable: limits
  720. label: Limits
  721. schema:
  722. type: dict
  723. attrs:
  724. - variable: cpu
  725. label: CPU
  726. description: CPU limit for WG-Easy.
  727. schema:
  728. type: string
  729. max_length: 6
  730. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  731. valid_chars_error: |
  732. Valid CPU limit formats are</br>
  733. - Plain Integer - eg. 1</br>
  734. - Float - eg. 0.5</br>
  735. - Milicpu - eg. 500m
  736. default: "4000m"
  737. required: true
  738. - variable: memory
  739. label: Memory
  740. description: Memory limit for WG-Easy.
  741. schema:
  742. type: string
  743. max_length: 12
  744. valid_chars: "^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$"
  745. valid_chars_error: |
  746. Valid Memory limit formats are</br>
  747. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  748. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  749. - Plain Integer in bytes - eg. 1024</br>
  750. - Exponent - eg. 134e6
  751. default: "8Gi"
  752. required: true