Skip to content

Instantly share code, notes, and snippets.

Created May 22, 2016 05:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
server {
listen 80;
location ~ /(.git|.svn| {
deny all;
log_not_found off;
access_log off;
return 404;
location = /favicon.ico {
log_not_found off;
access_log off;
location / {
try_files $uri @service;
location @service {
proxy_redirect off;
proxy_buffering off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment