Make it possible to exempt ips from the rate-limiter

This commit is contained in:
LinQhost Managed hosting 2021-05-04 10:29:25 +02:00
parent d65bf02d78
commit 7d82c82fd9
5 changed files with 128 additions and 3 deletions

View file

@ -135,6 +135,10 @@ markdown = "Markdown"
; Set this to 0 to disable rate limiting.
limit = 10
; Set ips (v4|v6) which should be exempted for the rate-limit. CIDR also supported. Needed to be comma separated.
; Unset for enabling and invalid values will be ignored
; eg: exemptedIp = '1.2.3.4,10.10.10/24'
; (optional) if your website runs behind a reverse proxy or load balancer,
; set the HTTP header containing the visitors IP address, i.e. X_FORWARDED_FOR
; header = "X_FORWARDED_FOR"