Skip to content

Instantly share code, notes, and snippets.

@thajo
Created March 8, 2016 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thajo/d5db8e679c1237dfdb76 to your computer and use it in GitHub Desktop.
Save thajo/d5db8e679c1237dfdb76 to your computer and use it in GitHub Desktop.
server {
listen 443;
ssl on;
ssl_certificate /var/www/wsApp/config/sslcerts/cert.pem;
ssl_certificate_key /var/www/wsApp/config/sslcerts/key.pem;
server_name localhost;
gzip on;
gzip_comp_level 6;
gzip_vary on;
gzip_min_length 1000;
gzip_proxied any;
gzip_types text/plain text/html text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_buffers 16 8k;
location ~ ^/(images/|img/|javascript/|js/|css/|stylesheets/|flash/|media/|static/|robots.txt|humans.txt|favicon.ico) {
root /var/www/wsApp/public;
access_log off;
expires max;
}
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment