From 52e43fe23c9dd5c5ddfe12592d01787b82600b46 Mon Sep 17 00:00:00 2001 From: erik Date: Wed, 17 Jan 2024 11:37:31 +0100 Subject: [PATCH] Add specs for rate limit options --- src/main/cljc/dda/c4k_forgejo/forgejo.cljc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/cljc/dda/c4k_forgejo/forgejo.cljc b/src/main/cljc/dda/c4k_forgejo/forgejo.cljc index fc55e81..515d370 100644 --- a/src/main/cljc/dda/c4k_forgejo/forgejo.cljc +++ b/src/main/cljc/dda/c4k_forgejo/forgejo.cljc @@ -42,6 +42,8 @@ (s/def ::mailer-pw pred/bash-env-string?) (s/def ::issuer pred/letsencrypt-issuer?) (s/def ::volume-total-storage-size (partial pred/int-gt-n? 5)) +(s/def ::average int?) +(s/def ::burst int?) (def config? (s/keys :req-un [::fqdn ::mailer-from @@ -51,7 +53,9 @@ :opt-un [::issuer ::deploy-federated ::default-app-name - ::service-domain-whitelist])) + ::service-domain-whitelist + ::average + ::burst])) (def auth? (s/keys :req-un [::postgres/postgres-db-user ::postgres/postgres-db-password ::mailer-user ::mailer-pw]))