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

@ -49,8 +49,11 @@
(forgejo/generate-service-ssh)
(forgejo/generate-data-volume config)
(forgejo/generate-appini-env config)
(forgejo/generate-secrets auth)]
(forgejo/generate-ingress-and-cert config)
(forgejo/generate-secrets auth)]
(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)