Skip to content

Instantly share code, notes, and snippets.

@tim-peterson
Last active March 10, 2018 04:10
Show Gist options
  • Save tim-peterson/6774608 to your computer and use it in GitHub Desktop.
Save tim-peterson/6774608 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;
}
}
}
@mmcdaris
Copy link

Thanks I used this one for a vagrant box locally.
Its right on the money 💵
Thank you!

@logrusorgru
Copy link

Thanks, proxy_pass is awesome

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