questions.yaml 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785
  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. # Dummy variable so we can skip "fixing" migration on new installations
  253. - variable: migrationFixed
  254. label: ""
  255. schema:
  256. type: boolean
  257. default: true
  258. hidden: true
  259. - variable: isDataInTheSameVolume
  260. label: "Pre v2 Storage Structure (See the tooltip for more information)"
  261. description: |
  262. If this is checked, means that this is an installation coming from a previous version (v1.x.x).<br/>
  263. In order to have backwards compatibility, the older storage structure was kept for this installation.<br/>
  264. If you want to utilize the new storage structure, move 'data' in a separate directory or dataset.
  265. Change the 'Nextcloud UserData' configuration below to point to the new location and then uncheck this checkbox.
  266. <br/><br/>
  267. You will NOT likely want to change that if your setup uses ixVolume as storage.
  268. schema:
  269. type: boolean
  270. show_if: [["shouldShowStorageToggle", "=", true]]
  271. default: false
  272. - variable: html
  273. label: Nextcloud HTML Storage
  274. description: The path to store Nextcloud HTML and AppData.
  275. schema:
  276. type: dict
  277. attrs:
  278. - variable: type
  279. label: Type
  280. description: |
  281. ixVolume: Is dataset created automatically by the system.</br>
  282. Host Path: Is a path that already exists on the system.
  283. schema:
  284. type: string
  285. required: true
  286. default: ixVolume
  287. enum:
  288. - value: hostPath
  289. description: Host Path (Path that already exists on the system)
  290. - value: ixVolume
  291. description: ixVolume (Dataset created automatically by the system)
  292. - variable: ixVolumeConfig
  293. label: ixVolume Configuration
  294. description: The configuration for the ixVolume dataset.
  295. schema:
  296. type: dict
  297. show_if: [["type", "=", "ixVolume"]]
  298. $ref:
  299. - "normalize/ixVolume"
  300. attrs:
  301. - variable: aclEnable
  302. label: Enable ACL
  303. description: Enable ACL for the dataset.
  304. schema:
  305. type: boolean
  306. default: false
  307. - variable: datasetName
  308. label: Dataset Name
  309. description: The name of the dataset to use for storage.
  310. schema:
  311. type: string
  312. required: true
  313. immutable: true
  314. hidden: true
  315. default: "html"
  316. - variable: aclEntries
  317. label: ACL Configuration
  318. schema:
  319. type: dict
  320. show_if: [["aclEnable", "=", true]]
  321. attrs: []
  322. - variable: hostPathConfig
  323. label: Host Path Configuration
  324. schema:
  325. type: dict
  326. show_if: [["type", "=", "hostPath"]]
  327. attrs:
  328. - variable: aclEnable
  329. label: Enable ACL
  330. description: Enable ACL for the dataset.
  331. schema:
  332. type: boolean
  333. default: false
  334. - variable: acl
  335. label: ACL Configuration
  336. schema:
  337. type: dict
  338. show_if: [["aclEnable", "=", true]]
  339. attrs: []
  340. $ref:
  341. - "normalize/acl"
  342. - variable: hostPath
  343. label: Host Path
  344. description: The host path to use for storage.
  345. schema:
  346. type: hostpath
  347. show_if: [["aclEnable", "=", false]]
  348. required: true
  349. - variable: data
  350. label: Nextcloud User Data Storage
  351. description: The path to store Nextcloud User Data.
  352. schema:
  353. type: dict
  354. attrs:
  355. - variable: type
  356. label: Type
  357. description: |
  358. ixVolume: Is dataset created automatically by the system.</br>
  359. Host Path: Is a path that already exists on the system.
  360. schema:
  361. type: string
  362. required: true
  363. default: ixVolume
  364. enum:
  365. - value: hostPath
  366. description: Host Path (Path that already exists on the system)
  367. - value: ixVolume
  368. description: ixVolume (Dataset created automatically by the system)
  369. - variable: ixVolumeConfig
  370. label: ixVolume Configuration
  371. description: The configuration for the ixVolume dataset.
  372. schema:
  373. type: dict
  374. show_if: [["type", "=", "ixVolume"]]
  375. $ref:
  376. - "normalize/ixVolume"
  377. attrs:
  378. - variable: aclEnable
  379. label: Enable ACL
  380. description: Enable ACL for the dataset.
  381. schema:
  382. type: boolean
  383. default: false
  384. - variable: datasetName
  385. label: Dataset Name
  386. description: The name of the dataset to use for storage.
  387. schema:
  388. type: string
  389. required: true
  390. immutable: true
  391. hidden: true
  392. default: "data"
  393. - variable: aclEntries
  394. label: ACL Configuration
  395. schema:
  396. type: dict
  397. show_if: [["aclEnable", "=", true]]
  398. attrs: []
  399. - variable: hostPathConfig
  400. label: Host Path Configuration
  401. schema:
  402. type: dict
  403. show_if: [["type", "=", "hostPath"]]
  404. attrs:
  405. - variable: aclEnable
  406. label: Enable ACL
  407. description: Enable ACL for the dataset.
  408. schema:
  409. type: boolean
  410. default: false
  411. - variable: acl
  412. label: ACL Configuration
  413. schema:
  414. type: dict
  415. show_if: [["aclEnable", "=", true]]
  416. attrs: []
  417. $ref:
  418. - "normalize/acl"
  419. - variable: hostPath
  420. label: Host Path
  421. description: The host path to use for storage.
  422. schema:
  423. type: hostpath
  424. show_if: [["aclEnable", "=", false]]
  425. required: true
  426. - variable: pgData
  427. label: Nextcloud Postgres Data Storage
  428. description: The path to store Nextcloud Postgres Data.
  429. schema:
  430. type: dict
  431. attrs:
  432. - variable: type
  433. label: Type
  434. description: |
  435. ixVolume: Is dataset created automatically by the system.</br>
  436. Host Path: Is a path that already exists on the system.
  437. schema:
  438. type: string
  439. required: true
  440. default: ixVolume
  441. enum:
  442. - value: hostPath
  443. description: Host Path (Path that already exists on the system)
  444. - value: ixVolume
  445. description: ixVolume (Dataset created automatically by the system)
  446. - variable: ixVolumeConfig
  447. label: ixVolume Configuration
  448. description: The configuration for the ixVolume dataset.
  449. schema:
  450. type: dict
  451. # Nothing to show for the user
  452. hidden: true
  453. show_if: [["type", "=", "ixVolume"]]
  454. $ref:
  455. - "normalize/ixVolume"
  456. attrs:
  457. - variable: aclEnable
  458. label: Enable ACL
  459. description: Enable ACL for the dataset.
  460. schema:
  461. type: boolean
  462. # Postgres does a CHMOD at startup
  463. # Which fails with ACL
  464. hidden: true
  465. default: false
  466. - variable: datasetName
  467. label: Dataset Name
  468. description: The name of the dataset to use for storage.
  469. schema:
  470. type: string
  471. required: true
  472. immutable: true
  473. hidden: true
  474. default: "pgData"
  475. - variable: aclEntries
  476. label: ACL Configuration
  477. schema:
  478. type: dict
  479. show_if: [["aclEnable", "=", true]]
  480. attrs: []
  481. - variable: hostPathConfig
  482. label: Host Path Configuration
  483. schema:
  484. type: dict
  485. show_if: [["type", "=", "hostPath"]]
  486. attrs:
  487. - variable: aclEnable
  488. label: Enable ACL
  489. description: Enable ACL for the dataset.
  490. schema:
  491. type: boolean
  492. # Postgres does a CHMOD at startup
  493. # Which fails with ACL
  494. hidden: true
  495. default: false
  496. - variable: acl
  497. label: ACL Configuration
  498. schema:
  499. type: dict
  500. show_if: [["aclEnable", "=", true]]
  501. attrs: []
  502. $ref:
  503. - "normalize/acl"
  504. - variable: hostPath
  505. label: Host Path
  506. description: The host path to use for storage.
  507. schema:
  508. type: hostpath
  509. show_if: [["aclEnable", "=", false]]
  510. required: true
  511. - variable: pgBackup
  512. label: Nextcloud Postgres Backup Storage
  513. description: The path to store Nextcloud Postgres Backup.
  514. schema:
  515. type: dict
  516. attrs:
  517. - variable: type
  518. label: Type
  519. description: |
  520. ixVolume: Is dataset created automatically by the system.</br>
  521. Host Path: Is a path that already exists on the system.
  522. schema:
  523. type: string
  524. required: true
  525. default: ixVolume
  526. enum:
  527. - value: hostPath
  528. description: Host Path (Path that already exists on the system)
  529. - value: ixVolume
  530. description: ixVolume (Dataset created automatically by the system)
  531. - variable: ixVolumeConfig
  532. label: ixVolume Configuration
  533. description: The configuration for the ixVolume dataset.
  534. schema:
  535. type: dict
  536. # Nothing to show for the user
  537. hidden: true
  538. show_if: [["type", "=", "ixVolume"]]
  539. $ref:
  540. - "normalize/ixVolume"
  541. attrs:
  542. - variable: aclEnable
  543. label: Enable ACL
  544. description: Enable ACL for the dataset.
  545. schema:
  546. type: boolean
  547. # Postgres does a CHMOD at startup
  548. # Which fails with ACL
  549. hidden: true
  550. default: false
  551. - variable: datasetName
  552. label: Dataset Name
  553. description: The name of the dataset to use for storage.
  554. schema:
  555. type: string
  556. required: true
  557. immutable: true
  558. hidden: true
  559. default: "pgBackup"
  560. - variable: aclEntries
  561. label: ACL Configuration
  562. schema:
  563. type: dict
  564. show_if: [["aclEnable", "=", true]]
  565. attrs: []
  566. - variable: hostPathConfig
  567. label: Host Path Configuration
  568. schema:
  569. type: dict
  570. show_if: [["type", "=", "hostPath"]]
  571. attrs:
  572. - variable: aclEnable
  573. label: Enable ACL
  574. description: Enable ACL for the dataset.
  575. schema:
  576. type: boolean
  577. # Postgres does a CHMOD at startup
  578. # Which fails with ACL
  579. hidden: true
  580. default: false
  581. - variable: acl
  582. label: ACL Configuration
  583. schema:
  584. type: dict
  585. show_if: [["aclEnable", "=", true]]
  586. attrs: []
  587. $ref:
  588. - "normalize/acl"
  589. - variable: hostPath
  590. label: Host Path
  591. description: The host path to use for storage.
  592. schema:
  593. type: hostpath
  594. show_if: [["aclEnable", "=", false]]
  595. required: true
  596. - variable: additionalStorages
  597. label: Additional Storage
  598. description: Additional storage for Nextcloud.
  599. schema:
  600. type: list
  601. default: []
  602. items:
  603. - variable: storageEntry
  604. label: Storage Entry
  605. schema:
  606. type: dict
  607. attrs:
  608. - variable: type
  609. label: Type
  610. description: |
  611. ixVolume: Is dataset created automatically by the system.</br>
  612. Host Path: Is a path that already exists on the system.</br>
  613. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  614. schema:
  615. type: string
  616. required: true
  617. default: "ixVolume"
  618. enum:
  619. - value: "hostPath"
  620. description: Host Path (Path that already exists on the system)
  621. - value: "ixVolume"
  622. description: ixVolume (Dataset created automatically by the system)
  623. - value: "smb-pv-pvc"
  624. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  625. - variable: readOnly
  626. label: Read Only
  627. description: Mount the volume as read only.
  628. schema:
  629. type: boolean
  630. default: false
  631. - variable: mountPath
  632. label: Mount Path
  633. description: The path inside the container to mount the storage.
  634. schema:
  635. type: path
  636. required: true
  637. - variable: hostPathConfig
  638. label: Host Path Configuration
  639. schema:
  640. type: dict
  641. show_if: [["type", "=", "hostPath"]]
  642. attrs:
  643. - variable: aclEnable
  644. label: Enable ACL
  645. description: Enable ACL for the dataset.
  646. schema:
  647. type: boolean
  648. default: false
  649. - variable: acl
  650. label: ACL Configuration
  651. schema:
  652. type: dict
  653. show_if: [["aclEnable", "=", true]]
  654. attrs: []
  655. $ref:
  656. - "normalize/acl"
  657. - variable: hostPath
  658. label: Host Path
  659. description: The host path to use for storage.
  660. schema:
  661. type: hostpath
  662. show_if: [["aclEnable", "=", false]]
  663. required: true
  664. - variable: ixVolumeConfig
  665. label: ixVolume Configuration
  666. description: The configuration for the ixVolume dataset.
  667. schema:
  668. type: dict
  669. show_if: [["type", "=", "ixVolume"]]
  670. $ref:
  671. - "normalize/ixVolume"
  672. attrs:
  673. - variable: aclEnable
  674. label: Enable ACL
  675. description: Enable ACL for the dataset.
  676. schema:
  677. type: boolean
  678. default: false
  679. - variable: datasetName
  680. label: Dataset Name
  681. description: The name of the dataset to use for storage.
  682. schema:
  683. type: string
  684. required: true
  685. immutable: true
  686. default: "storage_entry"
  687. - variable: aclEntries
  688. label: ACL Configuration
  689. schema:
  690. type: dict
  691. show_if: [["aclEnable", "=", true]]
  692. attrs: []
  693. - variable: smbConfig
  694. label: SMB Share Configuration
  695. description: The configuration for the SMB Share.
  696. schema:
  697. type: dict
  698. show_if: [["type", "=", "smb-pv-pvc"]]
  699. attrs:
  700. - variable: server
  701. label: Server
  702. description: The server for the SMB share.
  703. schema:
  704. type: string
  705. required: true
  706. - variable: share
  707. label: Share
  708. description: The share name for the SMB share.
  709. schema:
  710. type: string
  711. required: true
  712. - variable: domain
  713. label: Domain (Optional)
  714. description: The domain for the SMB share.
  715. schema:
  716. type: string
  717. - variable: username
  718. label: Username
  719. description: The username for the SMB share.
  720. schema:
  721. type: string
  722. required: true
  723. - variable: password
  724. label: Password
  725. description: The password for the SMB share.
  726. schema:
  727. type: string
  728. required: true
  729. private: true
  730. - variable: size
  731. label: Size (in Gi)
  732. description: The size of the volume quota.
  733. schema:
  734. type: int
  735. required: true
  736. min: 1
  737. default: 1
  738. - variable: resources
  739. group: Resources Configuration
  740. label: ""
  741. schema:
  742. type: dict
  743. attrs:
  744. - variable: limits
  745. label: Limits
  746. schema:
  747. type: dict
  748. attrs:
  749. - variable: cpu
  750. label: CPU
  751. description: CPU limit for WG-Easy.
  752. schema:
  753. type: string
  754. max_length: 6
  755. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  756. valid_chars_error: |
  757. Valid CPU limit formats are</br>
  758. - Plain Integer - eg. 1</br>
  759. - Float - eg. 0.5</br>
  760. - Milicpu - eg. 500m
  761. default: "4000m"
  762. required: true
  763. - variable: memory
  764. label: Memory
  765. description: Memory limit for WG-Easy.
  766. schema:
  767. type: string
  768. max_length: 12
  769. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  770. valid_chars_error: |
  771. Valid Memory limit formats are</br>
  772. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  773. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  774. - Plain Integer in bytes - eg. 1024</br>
  775. - Exponent - eg. 134e6
  776. default: "8Gi"
  777. required: true