Initial commit: QR code generator (encodage et rendu côté navigateur)

This commit is contained in:
florian committed 2026-08-27 15:19:52 +02:00
commit 8be33ed3f6
11 files changed
+2864

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
server {
listen 8080;
server_name _;
root /usr/share/nginx/html;
index index.html;
# Rien ne doit jamais sortir du navigateur : CSP verrouillée, pas de connect-src externe.
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; connect-src 'none'; frame-ancestors 'none'; base-uri 'self'; form-action 'none'" always;
add_header X-Content-Type-Options "nosniff" always;
add_header X-Frame-Options "DENY" always;
add_header Referrer-Policy "no-referrer" always;
add_header Permissions-Policy "geolocation=(), camera=(), microphone=()" always;
location / {
try_files $uri $uri/ =404;
}
location = /healthz {
access_log off;
return 200 "ok\n";
add_header Content-Type text/plain;
}
}