Last active
February 3, 2017 18:41
-
-
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)
This file contains 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
## 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