questions.yaml 30 KB

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