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
|
||||
}
|
||||
|
||||
@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}
|
||||
|
||||
Reference in New Issue
Block a user