Files
plimi/nginx.conf
2026-06-02 20:33:09 +02:00

40 lines
637 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
server_tokens off;
gzip on;
gzip_comp_level 6;
gzip_min_length 1024;
gzip_types
text/plain
text/css
text/xml
text/javascript
application/javascript
application/json
application/xml
image/svg+xml
font/woff2;
location /assets/ {
try_files $uri =404;
expires 1y;
add_header Cache-Control "public, immutable";
}
location = /favicon.svg {
try_files $uri =404;
expires 30d;
add_header Cache-Control "public";
}
location / {
try_files $uri $uri/ /index.html;
}
}