feat(deploy): add umami tracking, fix CSP, and lock JSON writes

This commit is contained in:
2026-07-22 15:23:28 +02:00
parent f3cfacfd11
commit 1ab41bf3ec
6 changed files with 76 additions and 18 deletions
+12 -3
View File
@@ -1,5 +1,9 @@
andreknie.de {
root * /opt/andreknie/site
www.andreknie.de {
redir https://andreknie.de{uri}
}
localhost, andreknie.de {
root * /dist
encode zstd gzip
header {
@@ -8,10 +12,11 @@ andreknie.de {
X-Frame-Options "DENY"
Referrer-Policy "strict-origin-when-cross-origin"
Permissions-Policy "camera=(), geolocation=(), microphone=()"
Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' https://stats.andreknie.de http://localhost:3000; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:; connect-src 'self' https://stats.andreknie.de http://localhost:3000"
}
handle /api/* {
reverse_proxy localhost:3003
reverse_proxy backend:3003
}
@assets path /assets/*
@@ -26,3 +31,7 @@ andreknie.de {
file_server
}
}
stats.andreknie.de {
reverse_proxy umami:3000
}