🐳修改dockerfile
This commit is contained in:
@@ -19,16 +19,6 @@ func InitRouter() *gin.Engine {
|
||||
r.ForwardedByClientIP = true
|
||||
// 将请求打印至控制台
|
||||
r.Use(gin.Logger())
|
||||
//r.Use(cors.New(cors.Config{
|
||||
// AllowOrigins: []string{"http://localhost:3100"},
|
||||
// AllowMethods: []string{"GET", "POST", "PUT", "PATCH", "DELETE"},
|
||||
// AllowHeaders: []string{"Origin"},
|
||||
// ExposeHeaders: []string{"Content-Length"},
|
||||
// AllowCredentials: true,
|
||||
// AllowOriginFunc: func(origin string) bool {
|
||||
// return true
|
||||
// },
|
||||
//}))
|
||||
|
||||
if config.Config.File.Type == "local" {
|
||||
r.Static("/assets", config.Config.File.Path)
|
||||
|
Reference in New Issue
Block a user