questions.yaml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610
  1. groups:
  2. - name: Briefkasten Configuration
  3. description: Configure Briefkasten
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Briefkasten
  6. - name: Network Configuration
  7. description: Configure Network for Briefkasten
  8. - name: Storage Configuration
  9. description: Configure Storage for Briefkasten
  10. - name: Labels Configuration
  11. description: Configure Labels for Briefkasten
  12. - name: Resources Configuration
  13. description: Configure Resources for Briefkasten
  14. questions:
  15. - variable: TZ
  16. group: Briefkasten Configuration
  17. label: Timezone
  18. schema:
  19. type: string
  20. default: Etc/UTC
  21. required: true
  22. $ref:
  23. - definitions/timezone
  24. - variable: briefkasten
  25. label: ""
  26. group: Briefkasten Configuration
  27. schema:
  28. type: dict
  29. attrs:
  30. - variable: postgres_image_selector
  31. label: Postgres Image (CAUTION)
  32. description: |
  33. If you are changing this after the postgres directory has been initialized,</br>
  34. STOP! and make sure you have a backup of your data.</br>
  35. Changing this will trigger an one way database upgrade.</br>
  36. You can only select newer versions of postgres.</br>
  37. Selecting an older version will refuse to start.</br>
  38. If something goes wrong, you will have to restore from backup.
  39. schema:
  40. type: string
  41. default: postgres_17_image
  42. required: true
  43. enum:
  44. - value: postgres_15_image
  45. description: Postgres 15
  46. - value: postgres_17_image
  47. description: Postgres 17
  48. - variable: nextauth_secret
  49. label: NextAuth Secret
  50. description: The secret used to encrypt the JWT token.
  51. schema:
  52. type: string
  53. default: ""
  54. required: true
  55. private: true
  56. - variable: postgres_password
  57. label: Postgres Password
  58. description: The password for Postgres.
  59. schema:
  60. type: string
  61. default: ""
  62. required: true
  63. private: true
  64. - variable: nextauth_url
  65. label: NextAuth URL
  66. description: |
  67. The URL that Briefkasten will be accessible from.</br>
  68. Example: </br>
  69. http://server.ip:30080</br>
  70. https://Briefkasten.example.com
  71. schema:
  72. type: uri
  73. default: ""
  74. required: true
  75. - variable: smtp
  76. label: SMTP Auth Provider
  77. description: Configure SMTP for Briefkasten.
  78. schema:
  79. type: dict
  80. attrs:
  81. - variable: enabled
  82. label: Enabled
  83. description: Enable SMTP for auth.
  84. schema:
  85. type: boolean
  86. default: false
  87. - variable: server
  88. label: SMTP Server
  89. description: The SMTP server to use.
  90. schema:
  91. type: string
  92. show_if: [["enabled", "=", true]]
  93. default: ""
  94. required: true
  95. - variable: from
  96. label: SMTP From
  97. description: The SMTP from address to use.
  98. schema:
  99. type: string
  100. show_if: [["enabled", "=", true]]
  101. default: ""
  102. required: true
  103. - variable: github
  104. label: GitHub Auth Provider
  105. description: Configure GitHub for Briefkasten.
  106. schema:
  107. type: dict
  108. attrs:
  109. - variable: enabled
  110. label: Enabled
  111. description: Enable GitHub for auth.
  112. schema:
  113. type: boolean
  114. default: false
  115. - variable: id
  116. label: GitHub Client ID
  117. description: The GitHub Client ID.
  118. schema:
  119. type: string
  120. show_if: [["enabled", "=", true]]
  121. default: ""
  122. required: true
  123. - variable: secret
  124. label: GitHub Client Secret
  125. description: The GitHub Client Secret.
  126. schema:
  127. type: string
  128. show_if: [["enabled", "=", true]]
  129. default: ""
  130. private: true
  131. required: true
  132. - variable: google
  133. label: Google Auth Provider
  134. description: Configure Google for Briefkasten.
  135. schema:
  136. type: dict
  137. attrs:
  138. - variable: enabled
  139. label: Enabled
  140. description: Enable Google for auth.
  141. schema:
  142. type: boolean
  143. default: false
  144. - variable: id
  145. label: Google Client ID
  146. description: The Google Client ID.
  147. schema:
  148. type: string
  149. show_if: [["enabled", "=", true]]
  150. default: ""
  151. required: true
  152. - variable: secret
  153. label: Google Client Secret
  154. description: The Google Client Secret.
  155. schema:
  156. type: string
  157. show_if: [["enabled", "=", true]]
  158. default: ""
  159. private: true
  160. required: true
  161. - variable: keycloak
  162. label: Keycloak Auth Provider
  163. description: Configure Keycloak for Briefkasten.
  164. schema:
  165. type: dict
  166. attrs:
  167. - variable: enabled
  168. label: Enabled
  169. description: Enable Keycloak for auth.
  170. schema:
  171. type: boolean
  172. default: false
  173. - variable: name
  174. label: Keycloak Name
  175. description: The Keycloak Name.
  176. schema:
  177. type: string
  178. show_if: [["enabled", "=", true]]
  179. default: ""
  180. required: true
  181. - variable: id
  182. label: Keycloak Client ID
  183. description: The Keycloak Client ID.
  184. schema:
  185. type: string
  186. show_if: [["enabled", "=", true]]
  187. default: ""
  188. required: true
  189. - variable: secret
  190. label: Keycloak Client Secret
  191. description: The Keycloak Client Secret.
  192. schema:
  193. type: string
  194. show_if: [["enabled", "=", true]]
  195. default: ""
  196. private: true
  197. required: true
  198. - variable: issuer
  199. label: Keycloak Issuer
  200. description: The Keycloak Issuer.
  201. schema:
  202. type: string
  203. show_if: [["enabled", "=", true]]
  204. default: ""
  205. required: true
  206. - variable: authentik
  207. label: Authentik Auth Provider
  208. description: Configure Authentik for Briefkasten.
  209. schema:
  210. type: dict
  211. attrs:
  212. - variable: enabled
  213. label: Enabled
  214. description: Enable Authentik for auth.
  215. schema:
  216. type: boolean
  217. default: false
  218. - variable: name
  219. label: Authentik Name
  220. description: The Authentik Name.
  221. schema:
  222. type: string
  223. show_if: [["enabled", "=", true]]
  224. default: ""
  225. required: true
  226. - variable: id
  227. label: Authentik Client ID
  228. description: The Authentik Client ID.
  229. schema:
  230. type: string
  231. show_if: [["enabled", "=", true]]
  232. default: ""
  233. required: true
  234. - variable: secret
  235. label: Authentik Client Secret
  236. description: The Authentik Client Secret.
  237. schema:
  238. type: string
  239. show_if: [["enabled", "=", true]]
  240. default: ""
  241. private: true
  242. required: true
  243. - variable: issuer
  244. label: Authentik Issuer
  245. description: The Authentik Issuer.
  246. schema:
  247. type: string
  248. show_if: [["enabled", "=", true]]
  249. default: ""
  250. required: true
  251. - variable: additional_envs
  252. label: Additional Environment Variables
  253. schema:
  254. type: list
  255. default: []
  256. items:
  257. - variable: env
  258. label: Environment Variable
  259. schema:
  260. type: dict
  261. attrs:
  262. - variable: name
  263. label: Name
  264. schema:
  265. type: string
  266. required: true
  267. - variable: value
  268. label: Value
  269. schema:
  270. type: string
  271. - variable: network
  272. label: ""
  273. group: Network Configuration
  274. schema:
  275. type: dict
  276. attrs:
  277. - variable: web_port
  278. label: WebUI Port
  279. schema:
  280. type: dict
  281. attrs:
  282. - variable: bind_mode
  283. label: Port Bind Mode
  284. description: |
  285. The port bind mode.</br>
  286. - Publish: The port will be published on the host for external access.</br>
  287. - Expose: The port will be exposed for inter-container communication.</br>
  288. - None: The port will not be exposed or published.</br>
  289. Note: If the Dockerfile defines an EXPOSE directive,
  290. the port will still be exposed for inter-container communication regardless of this setting.
  291. schema:
  292. type: string
  293. default: "published"
  294. enum:
  295. - value: "published"
  296. description: Publish port on the host for external access
  297. - value: "exposed"
  298. description: Expose port for inter-container communication
  299. - value: ""
  300. description: None
  301. - variable: port_number
  302. label: Port Number
  303. schema:
  304. type: int
  305. default: 30080
  306. min: 1
  307. max: 65535
  308. required: true
  309. - variable: host_ips
  310. label: Host IPs
  311. description: IPs on the host to bind this port
  312. schema:
  313. type: list
  314. show_if: [["bind_mode", "=", "published"]]
  315. default: []
  316. items:
  317. - variable: host_ip
  318. label: Host IP
  319. schema:
  320. type: string
  321. required: true
  322. $ref:
  323. - definitions/node_bind_ip
  324. - variable: storage
  325. label: ""
  326. group: Storage Configuration
  327. schema:
  328. type: dict
  329. attrs:
  330. - variable: postgres_data
  331. label: Postgres Data Storage
  332. description: The path to store Postgres Data.
  333. schema:
  334. type: dict
  335. attrs:
  336. - variable: type
  337. label: Type
  338. description: |
  339. ixVolume: Is dataset created automatically by the system.</br>
  340. Host Path: Is a path that already exists on the system.
  341. schema:
  342. type: string
  343. required: true
  344. default: "ix_volume"
  345. enum:
  346. - value: "host_path"
  347. description: Host Path (Path that already exists on the system)
  348. - value: "ix_volume"
  349. description: ixVolume (Dataset created automatically by the system)
  350. - variable: ix_volume_config
  351. label: ixVolume Configuration
  352. description: The configuration for the ixVolume dataset.
  353. schema:
  354. type: dict
  355. show_if: [["type", "=", "ix_volume"]]
  356. $ref:
  357. - "normalize/ix_volume"
  358. attrs:
  359. - variable: acl_enable
  360. label: Enable ACL
  361. description: Enable ACL for the storage.
  362. schema:
  363. type: boolean
  364. default: false
  365. - variable: dataset_name
  366. label: Dataset Name
  367. description: The name of the dataset to use for storage.
  368. schema:
  369. type: string
  370. required: true
  371. hidden: true
  372. default: "pg_data"
  373. - variable: acl_entries
  374. label: ACL Configuration
  375. schema:
  376. type: dict
  377. show_if: [["acl_enable", "=", true]]
  378. attrs: []
  379. - variable: host_path_config
  380. label: Host Path Configuration
  381. schema:
  382. type: dict
  383. show_if: [["type", "=", "host_path"]]
  384. attrs:
  385. - variable: acl_enable
  386. label: Enable ACL
  387. description: Enable ACL for the storage.
  388. schema:
  389. type: boolean
  390. default: false
  391. - variable: acl
  392. label: ACL Configuration
  393. schema:
  394. type: dict
  395. show_if: [["acl_enable", "=", true]]
  396. attrs: []
  397. $ref:
  398. - "normalize/acl"
  399. - variable: path
  400. label: Host Path
  401. description: The host path to use for storage.
  402. schema:
  403. type: hostpath
  404. show_if: [["acl_enable", "=", false]]
  405. required: true
  406. - variable: auto_permissions
  407. label: Automatic Permissions
  408. description: |
  409. Automatically set permissions for the host path.
  410. Enabling this, will check the top level directory,</br>
  411. If it finds incorrect permissions, it will `chown` the
  412. host path to the user and group required for the
  413. postgres container.
  414. schema:
  415. type: boolean
  416. default: false
  417. show_if: [["acl_enable", "=", false]]
  418. - variable: additional_storage
  419. label: Additional Storage
  420. schema:
  421. type: list
  422. default: []
  423. items:
  424. - variable: storageEntry
  425. label: Storage Entry
  426. schema:
  427. type: dict
  428. attrs:
  429. - variable: type
  430. label: Type
  431. description: |
  432. ixVolume: Is dataset created automatically by the system.</br>
  433. Host Path: Is a path that already exists on the system.</br>
  434. SMB Share: Is a SMB share that is mounted to as a volume.
  435. schema:
  436. type: string
  437. required: true
  438. default: "ix_volume"
  439. enum:
  440. - value: "host_path"
  441. description: Host Path (Path that already exists on the system)
  442. - value: "ix_volume"
  443. description: ixVolume (Dataset created automatically by the system)
  444. - value: "cifs"
  445. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  446. - variable: read_only
  447. label: Read Only
  448. description: Mount the volume as read only.
  449. schema:
  450. type: boolean
  451. default: false
  452. - variable: mount_path
  453. label: Mount Path
  454. description: The path inside the container to mount the storage.
  455. schema:
  456. type: path
  457. required: true
  458. - variable: host_path_config
  459. label: Host Path Configuration
  460. schema:
  461. type: dict
  462. show_if: [["type", "=", "host_path"]]
  463. attrs:
  464. - variable: acl_enable
  465. label: Enable ACL
  466. description: Enable ACL for the storage.
  467. schema:
  468. type: boolean
  469. default: false
  470. - variable: acl
  471. label: ACL Configuration
  472. schema:
  473. type: dict
  474. show_if: [["acl_enable", "=", true]]
  475. attrs: []
  476. $ref:
  477. - "normalize/acl"
  478. - variable: path
  479. label: Host Path
  480. description: The host path to use for storage.
  481. schema:
  482. type: hostpath
  483. show_if: [["acl_enable", "=", false]]
  484. required: true
  485. - variable: ix_volume_config
  486. label: ixVolume Configuration
  487. description: The configuration for the ixVolume dataset.
  488. schema:
  489. type: dict
  490. show_if: [["type", "=", "ix_volume"]]
  491. $ref:
  492. - "normalize/ix_volume"
  493. attrs:
  494. - variable: acl_enable
  495. label: Enable ACL
  496. description: Enable ACL for the storage.
  497. schema:
  498. type: boolean
  499. default: false
  500. - variable: dataset_name
  501. label: Dataset Name
  502. description: The name of the dataset to use for storage.
  503. schema:
  504. type: string
  505. required: true
  506. default: "storage_entry"
  507. - variable: acl_entries
  508. label: ACL Configuration
  509. schema:
  510. type: dict
  511. show_if: [["acl_enable", "=", true]]
  512. attrs: []
  513. - variable: cifs_config
  514. label: SMB Configuration
  515. description: The configuration for the SMB dataset.
  516. schema:
  517. type: dict
  518. show_if: [["type", "=", "cifs"]]
  519. attrs:
  520. - variable: server
  521. label: Server
  522. description: The server to mount the SMB share.
  523. schema:
  524. type: string
  525. required: true
  526. - variable: path
  527. label: Path
  528. description: The path to mount the SMB share.
  529. schema:
  530. type: string
  531. required: true
  532. - variable: username
  533. label: Username
  534. description: The username to use for the SMB share.
  535. schema:
  536. type: string
  537. required: true
  538. - variable: password
  539. label: Password
  540. description: The password to use for the SMB share.
  541. schema:
  542. type: string
  543. required: true
  544. private: true
  545. - variable: labels
  546. label: ""
  547. group: Labels Configuration
  548. schema:
  549. type: list
  550. default: []
  551. items:
  552. - variable: label
  553. label: Label
  554. schema:
  555. type: dict
  556. attrs:
  557. - variable: key
  558. label: Key
  559. schema:
  560. type: string
  561. required: true
  562. - variable: value
  563. label: Value
  564. schema:
  565. type: string
  566. required: true
  567. - variable: containers
  568. label: Containers
  569. description: Containers where the label should be applied
  570. schema:
  571. type: list
  572. items:
  573. - variable: container
  574. label: Container
  575. schema:
  576. type: string
  577. required: true
  578. enum:
  579. - value: briefkasten
  580. description: briefkasten
  581. - value: postgres
  582. description: postgres
  583. - variable: resources
  584. label: ""
  585. group: Resources Configuration
  586. schema:
  587. type: dict
  588. attrs:
  589. - variable: limits
  590. label: Limits
  591. schema:
  592. type: dict
  593. attrs:
  594. - variable: cpus
  595. label: CPUs
  596. description: CPUs limit for Briefkasten.
  597. schema:
  598. type: int
  599. default: 2
  600. required: true
  601. - variable: memory
  602. label: Memory (in MB)
  603. description: Memory limit for Briefkasten.
  604. schema:
  605. type: int
  606. default: 4096
  607. required: true