Further split flow control

This commit is contained in:
erik 2024-01-17 12:36:24 +01:00
parent 56b843981f
commit 260d086232

View file

@ -51,8 +51,9 @@
(forgejo/generate-appini-env config) (forgejo/generate-appini-env config)
(forgejo/generate-secrets auth)] (forgejo/generate-secrets auth)]
(when (contains? config :average) (when (contains? config :average)
(forgejo/generate-rate-limit-ingress-and-cert config) ; this function has a vector as output (forgejo/generate-rate-limit-ingress-and-cert config)) ; this function has a vector as output
[(forgejo/generate-rate-limit-middleware config)]) ; this does not (when (contains? config :average)
[(forgejo/generate-rate-limit-middleware config)]) ; this does not
(when (not (contains? config :average)) (when (not (contains? config :average))
(forgejo/generate-ingress-and-cert config)) (forgejo/generate-ingress-and-cert config))
(when (contains? config :restic-repository) (when (contains? config :restic-repository)