rate-limit #3

Merged
patdyn merged 23 commits from rate-limit into main 2024-01-23 09:02:07 +00:00
Showing only changes of commit 010ab3d8fd - Show all commits

View file

@ -50,9 +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)]
(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
(when (not (contains? config :average))
(forgejo/generate-ingress-and-cert 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)