Created
September 3, 2015 01:09
-
-
Save rafaelcardoso/af5b7dfbdeb1c56f6d9c to your computer and use it in GitHub Desktop.
config
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
server { | |
listen 80; | |
root /home/rafael/dev/app; | |
server_name meusite.com.br www.meusite.com.br; | |
index index.html; | |
location @upstream { | |
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_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $remote_addr; | |
proxy_cache_bypass $http_upgrade; | |
} | |
location / { | |
try_files $uri $uri/ @upstream; | |
} | |
location ~ \.(js|css|png)$ { | |
expires max; | |
root /home/rafael/dev/app/public; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment