Use handle wrapper for /api matcher
This commit is contained in:
5
start.sh
5
start.sh
@@ -1055,8 +1055,8 @@ cat > "$CADDY_CONFIG" <<EOF_CADDY
|
||||
}
|
||||
|
||||
@api_host host ${PHOTOS_HOST}
|
||||
handle_path @api_host /api/* {
|
||||
@api_host host ${PHOTOS_HOST}
|
||||
handle @api_host {
|
||||
handle_path /api/* {
|
||||
@api_cors_subdomain header Origin *
|
||||
header @api_cors_subdomain {
|
||||
Access-Control-Allow-Origin {http.request.header.Origin}
|
||||
@@ -1073,6 +1073,7 @@ cat > "$CADDY_CONFIG" <<EOF_CADDY
|
||||
header_up X-Forwarded-For {http.request.header.X-Forwarded-For}
|
||||
header_up X-Forwarded-Proto {http.request.header.X-Forwarded-Proto}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
handle /health {
|
||||
|
||||
Reference in New Issue
Block a user