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:
parent
18fb9e5a73
commit
118261a0bd
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue