Fix Caddyfile syntax for respond directive
This commit is contained in:
parent
549b91ff22
commit
38f08c135e
5
start.sh
5
start.sh
@ -254,9 +254,8 @@ cat > /app/data/caddy/Caddyfile <<EOT
|
|||||||
|
|
||||||
# Simple JavaScript file that defines the API endpoint
|
# Simple JavaScript file that defines the API endpoint
|
||||||
handle /api-config.js {
|
handle /api-config.js {
|
||||||
respond "window.ENTE_CONFIG = { API_URL: '${API_ENDPOINT}' };" 200 {
|
header Content-Type "application/javascript"
|
||||||
Content-Type "application/javascript"
|
respond "window.ENTE_CONFIG = { API_URL: '${API_ENDPOINT}' };" 200
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Photos app - root path
|
# Photos app - root path
|
||||||
|
Loading…
x
Reference in New Issue
Block a user