Add client/nginx.conf

This commit is contained in:
2025-11-21 15:21:27 +00:00
parent c6b95ef9c7
commit 716a73c7a9

19
client/nginx.conf Normal file
View File

@@ -0,0 +1,19 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# Angular SPA : toutes les routes renvoient index.html
location / {
try_files $uri $uri/ /index.html;
}
# Optionnel : servir les assets statiques correctement
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff2?)$ {
try_files $uri =404;
access_log off;
add_header Cache-Control "public, max-age=31536000, immutable";
}
}