Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
fix: grpc max message size
Steven4950ea1c74e6
diff --git a/server/server.go b/server/server.goindex 27d0165ee..da40e10f8 100644--- a/server/server.go+++ b/server/server.go@@ -69,10 +69,13 @@ func NewServer(ctx context.Context, profile *profile.Profile, store *store.Store// Create and register RSS routes.rss.NewRSSService(s.Profile, s.Store).RegisterRoutes(rootGroup)- grpcServer := grpc.NewServer(grpc.ChainUnaryInterceptor(- apiv1.NewLoggerInterceptor().LoggerInterceptor,- apiv1.NewGRPCAuthInterceptor(store, secret).AuthenticationInterceptor,- ))+ grpcServer := grpc.NewServer(+ // Override the maximum receiving message size to 100M for uploading large resources.+ grpc.MaxRecvMsgSize(100*1024*1024),+ grpc.ChainUnaryInterceptor(+ apiv1.NewLoggerInterceptor().LoggerInterceptor,+ apiv1.NewGRPCAuthInterceptor(store, secret).AuthenticationInterceptor,+ ))s.grpcServer = grpcServerapiV1Service := apiv1.NewAPIV1Service(s.Secret, profile, store, grpcServer)