Skip to content

Instantly share code, notes, and snippets.

@tim-peterson
Last active February 3, 2017 18:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tim-peterson/6806046 to your computer and use it in GitHub Desktop.
Save tim-peterson/6806046 to your computer and use it in GitHub Desktop.
Config to access Go Revel app remotely, i.e., by IP address or domain name (NOT localhost, or NOT 127.0.0.1)
## nginx.conf ##
server {
listen 80;
# listen [::]:80 default_server ipv6only=on;
root /usr/share/nginx/html;
index index.html index.htm;
# Make site accessible from http://localhost/
# server_name localhost;
server_name mylivesite.com;
location / {
proxy_pass http://127.0.0.1:9000;
}
}
}
## Go Revel mylivesiteapp app.conf ##
http.addr="127.0.0.1"
http.port=9000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment