From 716a73c7a97eb9b330803e1e7c4a817eed4c0e7b Mon Sep 17 00:00:00 2001 From: Vincent Guillet Date: Fri, 21 Nov 2025 15:21:27 +0000 Subject: [PATCH] Add client/nginx.conf --- client/nginx.conf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 client/nginx.conf diff --git a/client/nginx.conf b/client/nginx.conf new file mode 100644 index 0000000..ab4a703 --- /dev/null +++ b/client/nginx.conf @@ -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"; + } +} \ No newline at end of file