ci: dockerise le front (build Vite/pnpm -> nginx) + workflow Gitea Actions

- DataSentinel/Dockerfile (node 22 + pnpm + nginx) + nginx.conf (SPA + headers sécurité)
- workflow build/push image avec VITE_API_URL=https://datasentinel-api.nfteam.ovh
This commit is contained in:
neckfire
2026-06-20 12:27:51 +02:00
parent 87c099433b
commit 4466b38f75
3 changed files with 68 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
server {
listen 80;
root /usr/share/nginx/html;
index index.html;
# SPA : toutes les routes retombent sur index.html
location / {
try_files $uri $uri/ /index.html;
}
add_header X-Frame-Options "DENY" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
}