Fix duplicate @submit matcher in Caddyfile

- Combined @submit matcher conditions into single block
- Fixed 'matcher is defined more than once' error
- Proper Caddyfile syntax for combining path and method matchers
This commit is contained in:
Deco Vander 2025-07-03 00:58:30 -04:00
parent 18fb9e5a73
commit 118261a0bd

View file

@ -56,8 +56,10 @@ yourdomain.com {
rate_limit @api 30r/m
# Submission rate limiting: 5 requests per minute
@submit path /api/locations
@submit method POST
@submit {
path /api/locations
method POST
}
rate_limit @submit 5r/m
}