Generate ingress with rate limit conditionally

This commit is contained in:
erik 2024-01-17 11:36:43 +01:00
parent 220eb337f9
commit a63f170ace

View file

@ -50,7 +50,10 @@
(forgejo/generate-data-volume config)
(forgejo/generate-appini-env config)
(forgejo/generate-secrets auth)]
(forgejo/generate-ingress-and-cert config)
(if (contains? config :average)
(do (forgejo/generate-rate-limit-ingress-and-cert config)
(forgejo/generate-rate-limit-middleware config))
(forgejo/generate-ingress-and-cert config))
(when (contains? config :restic-repository)
[(backup/generate-config config)
(backup/generate-secret auth)