Ver código fonte

:art: 插入较大的资源文件时内存占用较大 https://github.com/siyuan-note/siyuan/issues/5023

Liang Ding 3 anos atrás
pai
commit
5c63e4a56d
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      kernel/server/serve.go

+ 1 - 1
kernel/server/serve.go

@@ -44,7 +44,7 @@ var cookieStore = cookie.NewStore([]byte("ATN51UlxVq1Gcvdf"))
 func Serve(fastMode bool) {
 	gin.SetMode(gin.ReleaseMode)
 	ginServer := gin.New()
-	ginServer.MaxMultipartMemory = 1024 * 1024 * 32 // 32MB
+	ginServer.MaxMultipartMemory = 1024 * 1024 * 32 // 插入较大的资源文件时内存占用较大 https://github.com/siyuan-note/siyuan/issues/5023
 	ginServer.Use(gin.Recovery())
 	ginServer.Use(cors.Default())
 	ginServer.Use(gzip.Gzip(gzip.DefaultCompression, gzip.WithExcludedExtensions([]string{".pdf", ".mp3", ".wav", ".ogg", ".mov", ".weba", ".mkv", ".mp4", ".webm"})))