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 260d086232 - Show all commits

View file

@ -51,7 +51,8 @@
(forgejo/generate-appini-env config) (forgejo/generate-appini-env config)
(forgejo/generate-secrets auth)] (forgejo/generate-secrets auth)]
(when (contains? config :average) (when (contains? config :average)
(forgejo/generate-rate-limit-ingress-and-cert config) ; this function has a vector as output (forgejo/generate-rate-limit-ingress-and-cert config)) ; this function has a vector as output
(when (contains? config :average)
[(forgejo/generate-rate-limit-middleware config)]) ; this does not [(forgejo/generate-rate-limit-middleware config)]) ; this does not
(when (not (contains? config :average)) (when (not (contains? config :average))
(forgejo/generate-ingress-and-cert config)) (forgejo/generate-ingress-and-cert config))