Skip to content

Commit

Permalink
fix: add message size limit option, default to 64MB
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Apr 26, 2024
1 parent 2f7ef55 commit 7284446
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cfg/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

"server": {
"host": "0.0.0.0",
"port": 50062
"port": 50062,
"message_size_limit": 64000000
},

"s3": {
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
start_renderer(rx).await?;

let server = Server::builder()
.max_frame_size(config.get_int("server.message_size_limit").map(|t| { t as u32 }).ok())
.add_service(health_service)
.add_service(reflection_service)
.add_service(PdfRenderingServiceServer::with_interceptor(
Expand Down

0 comments on commit 7284446

Please sign in to comment.