Skip to content

Instantly share code, notes, and snippets.

@brucepom
Last active September 27, 2016 00:13
Show Gist options
  • Save brucepom/8f7fb2bd65d028c26966324814e71139 to your computer and use it in GitHub Desktop.
Save brucepom/8f7fb2bd65d028c26966324814e71139 to your computer and use it in GitHub Desktop.
upstream chat_web {
server 127.0.0.1:8080;
}
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server{
listen 80;
server_name chat-prod.test;
location / {
try_files $uri @proxy;
}
location @proxy {
include proxy_params;
proxy_redirect off;
proxy_pass http://chat_web;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
}
@brucepom
Copy link
Author

Nginx conf for Phoenix, no ssl and no gzip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment