Files
MSE-PI-E2EEDA-Plein-de-eeee…/ui/nginx.conf
khalil-bot a7eafa50f6 feat(ci): add Docker build, push and SSH deploy pipeline
- CI: lint, unit tests, production build on all branches
- Docker build & push on all branches (tag :latest on main, :branch-* on others)
- Deploy: SSH pull & restart on all branches (preprod validation)
- Trigger workflow on self-modification (.github/workflows/ui.yml)

Closes #38

Assisted-by: Claude:claude-sonnet-4-6
2026-05-18 12:11:04 +02:00

30 lines
729 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# Angular HTML5 routing
location / {
try_files $uri $uri/ /index.html;
}
# Hashed assets — cache forever
location ~* \.(js|css|woff2?|ttf|eot|svg|ico|png|jpg|webp)$ {
expires 1y;
add_header Cache-Control "public, immutable";
access_log off;
}
# Never cache index.html
location = /index.html {
add_header Cache-Control "no-store, no-cache, must-revalidate";
}
gzip on;
gzip_vary on;
gzip_min_length 1024;
gzip_types text/plain text/css application/json application/javascript
text/xml application/xml text/javascript;
}