files are fucky maybe this will fix?

This commit is contained in:
Lee
2023-07-04 17:42:02 +01:00
parent 0655f4d5df
commit 41ea1378ef
2 changed files with 6 additions and 24 deletions

View File

@ -9,15 +9,7 @@ http {
server {
server_name _;
listen 80;
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 8;
gzip_buffers 16 64k;
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
root /var/www/html;
index index.html index.htm;
@ -37,21 +29,6 @@ http {
location / {
expires 7d;
# TCP optimizations
tcp_nopush on;
tcp_nodelay on;
# file shit
sendfile on;
# Keep connections alive for 15 seconds
keepalive_timeout 15;
open_file_cache max=1000 inactive=60s;
open_file_cache_valid 60s;
open_file_cache_min_uses 1;
open_file_cache_errors on;
# Serve the file directly from disk
try_files $uri $uri/;
}