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
|
||||
handle /api-config.js {
|
||||
respond "window.ENTE_CONFIG = { API_URL: '${API_ENDPOINT}' };" 200 {
|
||||
Content-Type "application/javascript"
|
||||
}
|
||||
header Content-Type "application/javascript"
|
||||
respond "window.ENTE_CONFIG = { API_URL: '${API_ENDPOINT}' };" 200
|
||||
}
|
||||
|
||||
# Photos app - root path
|
||||
|
Loading…
x
Reference in New Issue
Block a user