Revert /api matcher nesting
This commit is contained in:
4
start.sh
4
start.sh
@@ -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}
|
||||||
@@ -1074,7 +1073,6 @@ cat > "$CADDY_CONFIG" <<EOF_CADDY
|
|||||||
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 {
|
||||||
rewrite * /ping
|
rewrite * /ping
|
||||||
|
|||||||
Reference in New Issue
Block a user