Fix Caddy matcher syntax
This commit is contained in:
8
start.sh
8
start.sh
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user