feat: period is also configurable

This commit is contained in:
2026-10-08 11:24:14 -03:00
parent 21ea1dd698
commit c18fca9d7c
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -258,3 +258,4 @@ WRITE_TIMEOUT=0s
#RATE_LIMIT_EVERYTHING=false
#RATE_LIMIT_AVERAGE=100
#RATE_LIMIT_BURST=200
#RATE_LIMIT_PERIOD=1s
+1 -1
View File
@@ -26,7 +26,7 @@ http:
rateLimit:
average: {{ or (env "RATE_LIMIT_AVERAGE") "100" }}
burst: {{ or (env "RATE_LIMIT_BURST") "200" }}
period: "1s"
period: {{ or (env "RATE_LIMIT_PERIOD") "1s" }}
security:
headers:
frameDeny: true