Revert /api matcher nesting

This commit is contained in:
Andreas Dueren
2025-11-20 13:22:24 -06:00
parent 37ce044181
commit f984184b39

View File

@@ -1055,8 +1055,7 @@ cat > "$CADDY_CONFIG" <<EOF_CADDY
} }
@api_host host ${PHOTOS_HOST} @api_host host ${PHOTOS_HOST}
handle @api_host { handle_path @api_host /api/* {
handle_path /api/* {
@api_cors_subdomain header Origin * @api_cors_subdomain header Origin *
header @api_cors_subdomain { header @api_cors_subdomain {
Access-Control-Allow-Origin {http.request.header.Origin} Access-Control-Allow-Origin {http.request.header.Origin}
@@ -1073,7 +1072,6 @@ cat > "$CADDY_CONFIG" <<EOF_CADDY
header_up X-Forwarded-For {http.request.header.X-Forwarded-For} header_up X-Forwarded-For {http.request.header.X-Forwarded-For}
header_up X-Forwarded-Proto {http.request.header.X-Forwarded-Proto} header_up X-Forwarded-Proto {http.request.header.X-Forwarded-Proto}
} }
}
} }
handle /health { handle /health {