This commit is contained in:
laodaming
2023-08-15 12:34:41 +08:00
parent 3ce253b1e5
commit edf89ea301
34 changed files with 17 additions and 20 deletions

View File

@@ -1,6 +1,7 @@
Name: map-library
Host: 0.0.0.0
Port: 9906
Timeout: 15000 #服务超时时间
SourceMysql: fusentest:XErSYmLELKMnf3Dh@tcp(110.41.19.98:3306)/fusentest
Auth:
AccessSecret: fusen2023

View File

@@ -22,7 +22,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) {