2024-04-09 22:10:09 +02:00
|
|
|
server {
|
|
|
|
listen 80 default_server;
|
|
|
|
listen [::]:80 default_server;
|
|
|
|
server_name _;
|
|
|
|
access_log /logs/nginx.access.log main;
|
|
|
|
sendfile off;
|
|
|
|
root /wwwroot;
|
|
|
|
index index.html;
|
|
|
|
|
|
|
|
location ~ ^/feed {
|
|
|
|
rewrite ^/feed$ /index.xml last;
|
|
|
|
rewrite ^/feed/.*$ /index.xml last;
|
|
|
|
}
|
|
|
|
|
|
|
|
location = /404.html {
|
|
|
|
internal;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
gzip on;
|
2024-06-25 20:38:43 +00:00
|
|
|
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript text/x-js image/x-icon image/svg+xml font/woff2 font/woff application/x-font-woff;
|
2024-04-09 22:10:09 +02:00
|
|
|
gzip_disable "msie6";
|
|
|
|
|
|
|
|
etag on;
|
|
|
|
if_modified_since exact;
|
|
|
|
add_header Pragma "public";
|
|
|
|
add_header Cache-Control "max-age=31536000, public";
|