feat: stand-alone port s3 server (#6242)
* feat: single port s3 server * fix: unable to PUT files if not in root dir
This commit is contained in:
@ -171,3 +171,8 @@ func Cors(r *gin.Engine) {
|
||||
config.AllowMethods = conf.Conf.Cors.AllowMethods
|
||||
r.Use(cors.New(config))
|
||||
}
|
||||
|
||||
func InitS3(e *gin.Engine) {
|
||||
Cors(e)
|
||||
S3Server(e.Group("/"))
|
||||
}
|
||||
|
Reference in New Issue
Block a user