Last active
November 29, 2017 00:31
-
-
Save inferno/8061370 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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