Files

27 lines
620 B
Nginx Configuration File

server {
listen 80;
server_name smartapp.digitribe.fr;
root /usr/share/nginx/html;
index index.html;
# Gzip
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml image/svg+xml;
# SPA routing - must be first
location / {
try_files $uri $uri/ /index.html;
}
# Static assets caching
location ~* \.(js|css|png|jpg|jpeg|gif|svg|ico|woff|woff2|ttf|eot|map)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
# Health check
location /health {
return 200 'OK';
}
}