From b919cd285a6084ed695f02863205f81abe9e9f7b Mon Sep 17 00:00:00 2001 From: jack30724 Date: Tue, 3 Dec 2024 09:02:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E5=AE=B9=E5=99=A8=E6=97=B6=E5=B1=80?= =?UTF-8?q?=E5=9F=9F=E7=BD=91=E5=86=85=E7=BD=91=E5=85=B3=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E7=AB=AF=E5=8F=A3=E5=8F=B7=E6=94=B9=E6=88=90=2080/443=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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",