diff --git a/nginx.conf b/nginx.conf index ade6ad1..384bb30 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,13 +1,21 @@ -events{} -http { - include /etc/nginx/mime.types; - server { - listen 80; - server_name localhost; - root /usr/share/nginx/html; - index index.html; - location / { - try_files $uri $uri/ /index.html; - } +server { + listen 0.0.0.0:80; + listen [::]:80; + default_type application/octet-stream; + + gzip on; + gzip_comp_level 6; + gzip_vary on; + gzip_min_length 1000; + gzip_proxied any; + gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; + gzip_buffers 16 8k; + gunzip on; + client_max_body_size 256M; + + root /usr/share/nginx/html; + + location / { + try_files $uri $uri/ /index.html =404; } } \ No newline at end of file