Split if into multiple whens
Otherwise weird behavior.
This commit is contained in:
parent
054e6954af
commit
010ab3d8fd
1 changed files with 6 additions and 5 deletions
|
@ -50,9 +50,10 @@
|
|||
(forgejo/generate-data-volume config)
|
||||
(forgejo/generate-appini-env config)
|
||||
(forgejo/generate-secrets auth)]
|
||||
(if (contains? config :average)
|
||||
(do (forgejo/generate-rate-limit-ingress-and-cert config)
|
||||
(forgejo/generate-rate-limit-middleware config))
|
||||
(when (contains? config :average)
|
||||
(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 (not (contains? config :average))
|
||||
(forgejo/generate-ingress-and-cert config))
|
||||
(when (contains? config :restic-repository)
|
||||
[(backup/generate-config config)
|
||||
|
|
Loading…
Reference in a new issue