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
}
@api_host host ${PHOTOS_HOST}
handle @api_host {
handle_path /api/* {
@api_photos {
host ${PHOTOS_HOST}
path /api/*
}
handle @api_photos {
@api_cors_path header Origin *
header @api_cors_path {
Access-Control-Allow-Origin {http.request.header.Origin}