HTTP: Add redirectRoot option to Http object

This commit is contained in:
Maurus Decimus
2026-06-17 19:30:36 +02:00
parent 8778e1bc45
commit b1880c8670
10 changed files with 45 additions and 21 deletions

View File

@@ -62,6 +62,7 @@ pub struct Http {
pub allowed_endpoint: IfBlock,
pub response_headers: Vec<(hyper::header::HeaderName, hyper::header::HeaderValue)>,
pub use_forwarded: bool,
pub redirect_root: Option<String>,
}
#[derive(Clone)]
@@ -448,6 +449,7 @@ impl Http {
rate_anonymous: http.rate_limit_anonymous,
response_headers: http_headers,
use_forwarded: http.use_x_forwarded,
redirect_root: http.redirect_root,
}
}
}