Skip to content

Instantly share code, notes, and snippets.

@jklue
Created December 21, 2017 21:38
Show Gist options
  • Save jklue/93dad7c6b5040593cbf7d704e75374a3 to your computer and use it in GitHub Desktop.
Save jklue/93dad7c6b5040593cbf7d704e75374a3 to your computer and use it in GitHub Desktop.
http {
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#tcp_nodelay on;
gzip on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
gzip_vary on;
gzip_types text/plain text/css text/javascript application/javascript application/x-javascript image/svg+xml application/json;
server_tokens off;
include /etc/nginx/conf.d/*.conf;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment