Skip to content

Commit 9254f7f

Browse files
committed
fix: increase payload size allowed to 1gb for large files
1 parent 7e41397 commit 9254f7f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pdf2md/server/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ pub async fn main() -> std::io::Result<()> {
165165
.into_utoipa_app()
166166
.openapi(ApiDoc::openapi())
167167
.app_data(json_cfg.clone())
168-
.app_data(PayloadConfig::new(134200000))
168+
.app_data(PayloadConfig::new(1073741824))
169169
.app_data(web::Data::new(jinja_env))
170170
.app_data(web::Data::new(redis_pool.clone()))
171171
.app_data(web::Data::new(clickhouse_client.clone()))

server/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ pub fn main() -> std::io::Result<()> {
960960
.wrap(
961961
Cors::permissive()
962962
)
963-
.app_data(PayloadConfig::new(134200000))
963+
.app_data(PayloadConfig::new(1073741824))
964964
.wrap(
965965
// Set up logger, but avoid logging hot status endpoints
966966
Logger::new("%r %s %b %{Referer}i %{User-Agent}i %T %{TR-Dataset}i")

0 commit comments

Comments
 (0)