mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: grpc max message size
This commit is contained in:
@@ -69,7 +69,10 @@ func NewServer(ctx context.Context, profile *profile.Profile, store *store.Store
|
|||||||
// Create and register RSS routes.
|
// Create and register RSS routes.
|
||||||
rss.NewRSSService(s.Profile, s.Store).RegisterRoutes(rootGroup)
|
rss.NewRSSService(s.Profile, s.Store).RegisterRoutes(rootGroup)
|
||||||
|
|
||||||
grpcServer := grpc.NewServer(grpc.ChainUnaryInterceptor(
|
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.NewLoggerInterceptor().LoggerInterceptor,
|
||||||
apiv1.NewGRPCAuthInterceptor(store, secret).AuthenticationInterceptor,
|
apiv1.NewGRPCAuthInterceptor(store, secret).AuthenticationInterceptor,
|
||||||
))
|
))
|
||||||
|
Reference in New Issue
Block a user