Skip to content

Instantly share code, notes, and snippets.

@manfe
Last active October 11, 2019 21:05
Show Gist options
  • Save manfe/385a35a9545952c6b6ca6c29fb900138 to your computer and use it in GitHub Desktop.
Save manfe/385a35a9545952c6b6ca6c29fb900138 to your computer and use it in GitHub Desktop.
server {
gzip on;
gzip_disable "msie6";
gzip_comp_level 6;
gzip_vary on;
gzip_min_length 1000;
gzip_buffers 16 8k;
gzip_proxied any;
gzip_types text/plain text/css text/js text/xml text/javascript application/javascript application/json application/xml application/rss+xml image/svg+xml;
listen 80 default_server;
listen [::]:80 default_server;
#listen 443 ssl http2 default_server;
#listen [::]:443 ssl http2 default_server;
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
server_name _;
location / {
try_files $uri $uri/ =404;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment