questions.yaml 30 KB

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