From 118261a0bd5a63d50ba84ed461593a060e60e4c3 Mon Sep 17 00:00:00 2001 From: Deco Vander Date: Thu, 3 Jul 2025 00:58:30 -0400 Subject: [PATCH] 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 --- scripts/Caddyfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/Caddyfile b/scripts/Caddyfile index c43edf7..889a9a4 100644 --- a/scripts/Caddyfile +++ b/scripts/Caddyfile @@ -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 }