questions.yaml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449
  1. groups:
  2. - name: Shlink Configuration
  3. description: Configure Shlink
  4. - name: Network Configuration
  5. description: Configure Network for Shlink
  6. - name: Storage Configuration
  7. description: Configure Storage for Shlink
  8. - name: Labels Configuration
  9. description: Configure Labels for Shlink
  10. - name: Resources Configuration
  11. description: Configure Resources for Shlink
  12. questions:
  13. - variable: TZ
  14. group: Shlink Configuration
  15. label: Timezone
  16. schema:
  17. type: string
  18. default: Etc/UTC
  19. required: true
  20. $ref:
  21. - definitions/timezone
  22. - variable: shlink
  23. label: ""
  24. group: Shlink Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: postgres_image_selector
  29. label: Postgres Image (CAUTION)
  30. description: |
  31. If you are changing this after the postgres directory has been initialized,</br>
  32. STOP! and make sure you have a backup of your data.</br>
  33. Changing this will trigger an one way database upgrade.</br>
  34. You can only select newer versions of postgres.</br>
  35. Selecting an older version will refuse to start.</br>
  36. If something goes wrong, you will have to restore from backup.
  37. schema:
  38. type: string
  39. default: postgres_17_image
  40. required: true
  41. enum:
  42. - value: postgres_17_image
  43. description: Postgres 17
  44. - variable: db_password
  45. label: Database Password
  46. description: The password for Shlink.
  47. schema:
  48. type: string
  49. default: ""
  50. required: true
  51. private: true
  52. - variable: redis_password
  53. label: Redis Password
  54. schema:
  55. type: string
  56. default: ""
  57. required: true
  58. private: true
  59. - variable: default_domain
  60. label: Default Domain
  61. description: The default short domain used for this Shlink instance. For example example.com.
  62. schema:
  63. type: string
  64. default: ""
  65. required: true
  66. - variable: is_https_enabled
  67. label: Is HTTPS Enabled
  68. description: Tells if Shlink is served with https or not (true or false). It’s still up to you to actually serve it with HTTPS.
  69. schema:
  70. type: boolean
  71. default: false
  72. - variable: initial_api_key
  73. label: Initial API Key
  74. description: |
  75. The initial API key to use for Shlink. This is used to access the Shlink API.
  76. You can create additional API keys later on using the CLI.</br>
  77. schema:
  78. type: string
  79. default: ""
  80. private: true
  81. immutable: true
  82. - variable: additional_envs
  83. label: Additional Environment Variables
  84. schema:
  85. type: list
  86. default: []
  87. items:
  88. - variable: env
  89. label: Environment Variable
  90. schema:
  91. type: dict
  92. attrs:
  93. - variable: name
  94. label: Name
  95. schema:
  96. type: string
  97. required: true
  98. - variable: value
  99. label: Value
  100. schema:
  101. type: string
  102. - variable: network
  103. label: ""
  104. group: Network Configuration
  105. schema:
  106. type: dict
  107. attrs:
  108. - variable: api_port
  109. label: API Port
  110. schema:
  111. type: dict
  112. attrs:
  113. - variable: bind_mode
  114. label: Port Bind Mode
  115. description: |
  116. The port bind mode.</br>
  117. - Publish: The port will be published on the host for external access.</br>
  118. - Expose: The port will be exposed for inter-container communication.</br>
  119. - None: The port will not be exposed or published.</br>
  120. Note: If the Dockerfile defines an EXPOSE directive,
  121. the port will still be exposed for inter-container communication regardless of this setting.
  122. schema:
  123. type: string
  124. default: "published"
  125. enum:
  126. - value: "published"
  127. description: Publish port on the host for external access
  128. - value: "exposed"
  129. description: Expose port for inter-container communication
  130. - value: ""
  131. description: None
  132. - variable: port_number
  133. label: Port Number
  134. schema:
  135. type: int
  136. default: 30227
  137. min: 1
  138. max: 65535
  139. required: true
  140. - variable: host_ips
  141. label: Host IPs
  142. description: IPs on the host to bind this port
  143. schema:
  144. type: list
  145. show_if: [["bind_mode", "=", "published"]]
  146. default: []
  147. items:
  148. - variable: host_ip
  149. label: Host IP
  150. schema:
  151. type: string
  152. required: true
  153. $ref:
  154. - definitions/node_bind_ip
  155. - variable: storage
  156. label: ""
  157. group: Storage Configuration
  158. schema:
  159. type: dict
  160. attrs:
  161. - variable: postgres_data
  162. label: Postgres Data Storage
  163. description: The path to store Postgres Data.
  164. schema:
  165. type: dict
  166. attrs:
  167. - variable: type
  168. label: Type
  169. description: |
  170. ixVolume: Is dataset created automatically by the system.</br>
  171. Host Path: Is a path that already exists on the system.
  172. schema:
  173. type: string
  174. required: true
  175. default: "ix_volume"
  176. enum:
  177. - value: "host_path"
  178. description: Host Path (Path that already exists on the system)
  179. - value: "ix_volume"
  180. description: ixVolume (Dataset created automatically by the system)
  181. - variable: ix_volume_config
  182. label: ixVolume Configuration
  183. description: The configuration for the ixVolume dataset.
  184. schema:
  185. type: dict
  186. show_if: [["type", "=", "ix_volume"]]
  187. $ref:
  188. - "normalize/ix_volume"
  189. attrs:
  190. - variable: acl_enable
  191. label: Enable ACL
  192. description: Enable ACL for the storage.
  193. schema:
  194. type: boolean
  195. default: false
  196. - variable: dataset_name
  197. label: Dataset Name
  198. description: The name of the dataset to use for storage.
  199. schema:
  200. type: string
  201. required: true
  202. hidden: true
  203. default: "pg_data"
  204. - variable: acl_entries
  205. label: ACL Configuration
  206. schema:
  207. type: dict
  208. show_if: [["acl_enable", "=", true]]
  209. attrs: []
  210. - variable: host_path_config
  211. label: Host Path Configuration
  212. schema:
  213. type: dict
  214. show_if: [["type", "=", "host_path"]]
  215. attrs:
  216. - variable: acl_enable
  217. label: Enable ACL
  218. description: Enable ACL for the storage.
  219. schema:
  220. type: boolean
  221. default: false
  222. - variable: acl
  223. label: ACL Configuration
  224. schema:
  225. type: dict
  226. show_if: [["acl_enable", "=", true]]
  227. attrs: []
  228. $ref:
  229. - "normalize/acl"
  230. - variable: path
  231. label: Host Path
  232. description: The host path to use for storage.
  233. schema:
  234. type: hostpath
  235. show_if: [["acl_enable", "=", false]]
  236. required: true
  237. - variable: auto_permissions
  238. label: Automatic Permissions
  239. description: |
  240. Automatically set permissions for the host path.
  241. Enabling this, will check the top level directory,</br>
  242. If it finds incorrect permissions, it will `chown` the
  243. host path to the user and group required for the
  244. postgres container.
  245. schema:
  246. type: boolean
  247. default: false
  248. show_if: [["acl_enable", "=", false]]
  249. - variable: additional_storage
  250. label: Additional Storage
  251. schema:
  252. type: list
  253. default: []
  254. items:
  255. - variable: storageEntry
  256. label: Storage Entry
  257. schema:
  258. type: dict
  259. attrs:
  260. - variable: type
  261. label: Type
  262. description: |
  263. ixVolume: Is dataset created automatically by the system.</br>
  264. Host Path: Is a path that already exists on the system.</br>
  265. SMB Share: Is a SMB share that is mounted to as a volume.
  266. schema:
  267. type: string
  268. required: true
  269. default: "ix_volume"
  270. enum:
  271. - value: "host_path"
  272. description: Host Path (Path that already exists on the system)
  273. - value: "ix_volume"
  274. description: ixVolume (Dataset created automatically by the system)
  275. - value: "cifs"
  276. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  277. - variable: read_only
  278. label: Read Only
  279. description: Mount the volume as read only.
  280. schema:
  281. type: boolean
  282. default: false
  283. - variable: mount_path
  284. label: Mount Path
  285. description: The path inside the container to mount the storage.
  286. schema:
  287. type: path
  288. required: true
  289. - variable: host_path_config
  290. label: Host Path Configuration
  291. schema:
  292. type: dict
  293. show_if: [["type", "=", "host_path"]]
  294. attrs:
  295. - variable: acl_enable
  296. label: Enable ACL
  297. description: Enable ACL for the storage.
  298. schema:
  299. type: boolean
  300. default: false
  301. - variable: acl
  302. label: ACL Configuration
  303. schema:
  304. type: dict
  305. show_if: [["acl_enable", "=", true]]
  306. attrs: []
  307. $ref:
  308. - "normalize/acl"
  309. - variable: path
  310. label: Host Path
  311. description: The host path to use for storage.
  312. schema:
  313. type: hostpath
  314. show_if: [["acl_enable", "=", false]]
  315. required: true
  316. - variable: ix_volume_config
  317. label: ixVolume Configuration
  318. description: The configuration for the ixVolume dataset.
  319. schema:
  320. type: dict
  321. show_if: [["type", "=", "ix_volume"]]
  322. $ref:
  323. - "normalize/ix_volume"
  324. attrs:
  325. - variable: acl_enable
  326. label: Enable ACL
  327. description: Enable ACL for the storage.
  328. schema:
  329. type: boolean
  330. default: false
  331. - variable: dataset_name
  332. label: Dataset Name
  333. description: The name of the dataset to use for storage.
  334. schema:
  335. type: string
  336. required: true
  337. default: "storage_entry"
  338. - variable: acl_entries
  339. label: ACL Configuration
  340. schema:
  341. type: dict
  342. show_if: [["acl_enable", "=", true]]
  343. attrs: []
  344. $ref:
  345. - "normalize/acl"
  346. - variable: cifs_config
  347. label: SMB Configuration
  348. description: The configuration for the SMB dataset.
  349. schema:
  350. type: dict
  351. show_if: [["type", "=", "cifs"]]
  352. attrs:
  353. - variable: server
  354. label: Server
  355. description: The server to mount the SMB share.
  356. schema:
  357. type: string
  358. required: true
  359. - variable: path
  360. label: Path
  361. description: The path to mount the SMB share.
  362. schema:
  363. type: string
  364. required: true
  365. - variable: username
  366. label: Username
  367. description: The username to use for the SMB share.
  368. schema:
  369. type: string
  370. required: true
  371. - variable: password
  372. label: Password
  373. description: The password to use for the SMB share.
  374. schema:
  375. type: string
  376. required: true
  377. private: true
  378. - variable: domain
  379. label: Domain
  380. description: The domain to use for the SMB share.
  381. schema:
  382. type: string
  383. - variable: labels
  384. label: ""
  385. group: Labels Configuration
  386. schema:
  387. type: list
  388. default: []
  389. items:
  390. - variable: label
  391. label: Label
  392. schema:
  393. type: dict
  394. attrs:
  395. - variable: key
  396. label: Key
  397. schema:
  398. type: string
  399. required: true
  400. - variable: value
  401. label: Value
  402. schema:
  403. type: string
  404. required: true
  405. - variable: containers
  406. label: Containers
  407. description: Containers where the label should be applied
  408. schema:
  409. type: list
  410. items:
  411. - variable: container
  412. label: Container
  413. schema:
  414. type: string
  415. required: true
  416. enum:
  417. - value: shlink
  418. description: shlink
  419. - value: postgres
  420. description: postgres
  421. - value: redis
  422. description: redis
  423. - variable: resources
  424. label: ""
  425. group: Resources Configuration
  426. schema:
  427. type: dict
  428. attrs:
  429. - variable: limits
  430. label: Limits
  431. schema:
  432. type: dict
  433. attrs:
  434. - variable: cpus
  435. label: CPUs
  436. description: CPUs limit for Shlink.
  437. schema:
  438. type: int
  439. default: 2
  440. required: true
  441. - variable: memory
  442. label: Memory (in MB)
  443. description: Memory limit for Shlink.
  444. schema:
  445. type: int
  446. default: 4096
  447. required: true