Skip to content

Instantly share code, notes, and snippets.

@inferno
Last active November 29, 2017 00:31
Show Gist options
  • Select an option

  • Save inferno/8061370 to your computer and use it in GitHub Desktop.

Select an option

Save inferno/8061370 to your computer and use it in GitHub Desktop.
upstream budo {
server 127.0.0.1:5000;
}
server {
listen 80;
server_name budo.ru;
root /home/www/budo.bugz.ru/current/public;
try_files $uri @budo;
index index.html;
client_max_body_size 1G;
location @budo {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://budo;
}
location ~ ^/assets/ {
expires 1y;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment