Fix Caddyfile syntax for respond directive

This commit is contained in:
Andreas Düren 2025-03-16 22:50:25 +01:00
parent 549b91ff22
commit 38f08c135e

View File

@ -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