Fix Caddy matcher syntax

This commit is contained in:
Andreas Dueren
2025-11-20 12:43:00 -06:00
parent ef00dde487
commit 12537896f2

View File

@@ -1219,9 +1219,11 @@ cat > "$CADDY_CONFIG" <<EOF_CADDY
respond 204 respond 204
} }
@api_host host ${PHOTOS_HOST} @api_photos {
handle @api_host { host ${PHOTOS_HOST}
handle_path /api/* { path /api/*
}
handle @api_photos {
@api_cors_path header Origin * @api_cors_path header Origin *
header @api_cors_path { header @api_cors_path {
Access-Control-Allow-Origin {http.request.header.Origin} Access-Control-Allow-Origin {http.request.header.Origin}