Fix Caddyfile syntax for respond directive

This commit is contained in:
2025-03-16 22:50:25 +01:00
parent e300261f4f
commit 29cda3bc2d

View File

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