From 06cc4cee7c9e6a62b716f126140a5356444e6118 Mon Sep 17 00:00:00 2001 From: longze chen Date: Tue, 23 Jul 2019 11:12:36 -0400 Subject: [PATCH] Set default host to work with docker osf Running fakeCAS on localhost:8080 w/o docker-compose doesn't work with OSF w/ docker-compose during login. Use 192.168.168.167 instead. --- fakecas.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fakecas.go b/fakecas.go index 0d9fd57..d454982 100644 --- a/fakecas.go +++ b/fakecas.go @@ -15,7 +15,7 @@ import ( var Version string var ( - Host = flag.String("host", "localhost:8080", "The host to bind to") + Host = flag.String("host", "192.168.168.167:8080", "The host to bind to") OSFHost = flag.String("osfhost", "localhost:5000", "The osf host to bind to") DatabaseName = flag.String("dbname", "osf", "The name of your OSF database") DatabaseAddress = flag.String("dbaddress", "postgres://postgres@localhost:5432/osf?sslmode=disable", "The address of your postgres instance. ie: postgres://user:pass@127.0.0.1/dbname?other=args")