Generate ingress with rate limit conditionally
This commit is contained in:
parent
220eb337f9
commit
a63f170ace
1 changed files with 5 additions and 2 deletions
|
@ -50,7 +50,10 @@
|
||||||
(forgejo/generate-data-volume config)
|
(forgejo/generate-data-volume config)
|
||||||
(forgejo/generate-appini-env config)
|
(forgejo/generate-appini-env config)
|
||||||
(forgejo/generate-secrets auth)]
|
(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)
|
(when (contains? config :restic-repository)
|
||||||
[(backup/generate-config config)
|
[(backup/generate-config config)
|
||||||
(backup/generate-secret auth)
|
(backup/generate-secret auth)
|
||||||
|
|
Loading…
Reference in a new issue