Set sensible defaults

This commit is contained in:
James Mills 2017-06-26 01:54:33 -07:00
parent da3c29209f
commit 76f337705e
No known key found for this signature in database
GPG Key ID: AC4C014F1440EBD6
2 changed files with 2 additions and 3 deletions

View File

@ -3,7 +3,6 @@ FROM golang:alpine
EXPOSE 80/tcp
ENTRYPOINT ["gopherproxy"]
CMD ["-bind", "0.0.0.0:80", "-uri", "floodgap.com"]
RUN \
apk add --update git && \

View File

@ -8,8 +8,8 @@ import (
)
var (
bind = flag.String("bind", ":80", "[int]:port to bind to")
uri = flag.String("uri", "127.0.0.1:70", "<host>:[port] to proxy to")
bind = flag.String("bind", "0.0.0.0:80", "[int]:port to bind to")
uri = flag.String("uri", "floodgap.com", "<host>:[port] to proxy to")
)
func main() {