Skip to content

Instantly share code, notes, and snippets.

@lujiacn
Forked from tim-peterson/Go Revel nginx.conf
Created October 22, 2015 09:23
Show Gist options
  • Save lujiacn/756ea288360c2b4e32e0 to your computer and use it in GitHub Desktop.
Save lujiacn/756ea288360c2b4e32e0 to your computer and use it in GitHub Desktop.
Revel Framework nginx.conf to make Revel app work outside of localhost, i.e., on my live, personal-website.com
http{
index index.html;
server {
listen 80;
root /gocode/src/personalwebsiteapp;
server_name personal-website.com;
location ~ / {
proxy_pass http://127.0.0.1:8888;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment