Fix Caddyfile syntax error in rewrite_early directive

This commit is contained in:
Andreas Düren 2025-03-16 22:21:03 +01:00
parent 4baeaed265
commit ece40fe707

View File

@ -230,7 +230,7 @@ cat > /app/data/caddy/Caddyfile <<EOT
} }
header Content-Type "text/html; charset=utf-8" header Content-Type "text/html; charset=utf-8"
replace_response_headers Content-Length "" replace_response_headers Content-Length ""
rewrite_early * { rewrite_early {
# This injects the script into the head section of any index.html # This injects the script into the head section of any index.html
r </head> <script>window.ENTE_CONFIG = { API_URL: "${CLOUDRON_APP_ORIGIN}/api" };</script></head> r </head> <script>window.ENTE_CONFIG = { API_URL: "${CLOUDRON_APP_ORIGIN}/api" };</script></head>
} }