512KiB
This commit is contained in:
parent
8329c75ccf
commit
723a184f7d
1 changed files with 2 additions and 1 deletions
|
@ -3,7 +3,7 @@ use std::fmt::Debug;
|
|||
use anyhow::Result;
|
||||
use axum::{
|
||||
async_trait,
|
||||
extract::{FromRef, FromRequestParts, Query, State},
|
||||
extract::{FromRef, FromRequestParts, Query, State, DefaultBodyLimit},
|
||||
http::{header::AUTHORIZATION, request::Parts, HeaderValue, StatusCode},
|
||||
response::{IntoResponse, Response},
|
||||
routing::{delete, get, post},
|
||||
|
@ -267,6 +267,7 @@ async fn main() -> anyhow::Result<()> {
|
|||
.allow_headers([AUTHORIZATION, CONTENT_TYPE, IF_NONE_MATCH]),
|
||||
),
|
||||
)
|
||||
.layer(DefaultBodyLimit::max(512 * 1024))
|
||||
.layer(sentry_tower::NewSentryLayer::<_>::new_from_top())
|
||||
.layer(sentry_tower::SentryHttpLayer::with_transaction())
|
||||
.with_state(AppState {
|
||||
|
|
Loading…
Reference in a new issue