rate-limit #3
1 changed files with 6 additions and 5 deletions
|
@ -50,10 +50,11 @@
|
||||||
(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)]
|
||||||
(if (contains? config :average)
|
(when (contains? config :average)
|
||||||
(do (forgejo/generate-rate-limit-ingress-and-cert config)
|
(forgejo/generate-rate-limit-ingress-and-cert config) ; this function has a vector as output
|
||||||
(forgejo/generate-rate-limit-middleware config))
|
[(forgejo/generate-rate-limit-middleware config)]) ; this does not
|
||||||
(forgejo/generate-ingress-and-cert config))
|
(when (not (contains? config :average))
|
||||||
|
(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