Files
Profice_Home/nginx.conf
2026-04-22 14:51:48 +02:00

23 lines
494 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# Serve clean URLs by trying $uri, then $uri.html
location / {
try_files $uri $uri.html $uri/ /index.html;
}
# Cache static assets
location ~* \.(png|jpg|jpeg|gif|ico|svg|woff|woff2)$ {
expires 30d;
add_header Cache-Control "public, immutable";
}
# Gzip
gzip on;
gzip_types text/html text/css application/javascript image/svg+xml;
}