Files
is-it-christmas/docker/nginx.conf
Julien Lengrand-Lambert 16ae2a1430 Creating the project
2025-11-11 10:06:56 +01:00

23 lines
461 B
Nginx Configuration File

server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
# Enable gzip compression
gzip on;
gzip_types text/html text/css application/javascript application/json;
gzip_min_length 1000;
location / {
try_files $uri $uri/ /index.html;
}
# Cache static assets
location ~* \.(js|css|html)$ {
expires 1h;
add_header Cache-Control "public, immutable";
}
}