diff --git a/config/config.go b/config/config.go index c7da998..a55a480 100644 --- a/config/config.go +++ b/config/config.go @@ -524,11 +524,13 @@ func modifyConfigWhenRunInDocker() { *v = strings.ReplaceAll(*v, "localhost:8080", "aospace-gateway:8080") *v = strings.ReplaceAll(*v, "127.0.0.1:6379", "aospace-redis:6379") } - } + Config.GateWay.LanPort = 12841 + Config.GateWay.TlsLanPort = 18569 - // All - Config.GateWay.LanPort = 12841 - Config.GateWay.TlsLanPort = 18569 + } else { + Config.GateWay.LanPort = 80 + Config.GateWay.TlsLanPort = 443 + } } // fmt.Printf("######################## Config.Log.Path:%v\n",