Skip to content

Instantly share code, notes, and snippets.

@CaptainChemist
Created September 20, 2016 19:18
Show Gist options
  • Save CaptainChemist/9ef625fb0b18ba4f02a3ccb79d2a6fe0 to your computer and use it in GitHub Desktop.
Save CaptainChemist/9ef625fb0b18ba4f02a3ccb79d2a6fe0 to your computer and use it in GitHub Desktop.
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
#try_files $uri $uri/ =404;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
proxy_pass http://127.0.0.1:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header X-Forwarded-For $remote_addr;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment