diff --git a/goctl_template/api/etc.tpl b/goctl_template/api/etc.tpl index a39c0af4..a813c4d3 100644 --- a/goctl_template/api/etc.tpl +++ b/goctl_template/api/etc.tpl @@ -1,6 +1,7 @@ Name: {{.serviceName}} Host: {{.host}} Port: {{.port}} +Timeout: 15000 #服务超时时间(毫秒) SourceMysql: fusentest:XErSYmLELKMnf3Dh@tcp(110.41.19.98:3306)/fusentest Auth: AccessSecret: fusen2023 diff --git a/server/websocket/etc/websocket.yaml b/server/websocket/etc/websocket.yaml deleted file mode 100644 index 5f58765d..00000000 --- a/server/websocket/etc/websocket.yaml +++ /dev/null @@ -1,9 +0,0 @@ -Name: websocket -Host: 0.0.0.0 -Port: 9914 -SourceMysql: fusentest:XErSYmLELKMnf3Dh@tcp(110.41.19.98:3306)/fusentest -Auth: - AccessSecret: fusen2023 - AccessExpire: 2592000 - RefreshAfter: 1592000 -SourceRabbitMq: amqp://rabbit001:rabbit001129@110.41.19.98:5672 \ No newline at end of file diff --git a/server/websocket/websocket.go b/server/websocket/websocket.go index c5e7bdd0..04f326e9 100644 --- a/server/websocket/websocket.go +++ b/server/websocket/websocket.go @@ -23,7 +23,6 @@ func main() { var c config.Config conf.MustLoad(*configFile, &c) - c.Timeout = int64(time.Second * 15) server := rest.MustNewServer(c.RestConf, rest.WithCustomCors(auth.FsCors, func(w http.ResponseWriter) { })) defer server.Stop()