add support for vhost-style s3 bucket

This commit is contained in:
Trinity Pointard
2021-11-11 11:26:02 +01:00
committed by Gitea
parent cdeb5b4dbb
commit 9c58ec28d3
8 changed files with 224 additions and 122 deletions
+3
View File
@@ -68,6 +68,9 @@ pub struct ApiConfig {
pub api_bind_addr: SocketAddr,
/// S3 region to use
pub s3_region: String,
/// Suffix to remove from domain name to find bucket. If None,
/// vhost-style S3 request are disabled
pub root_domain: Option<String>,
}
/// Configuration for serving files as normal web server