mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-21 02:16:37 +00:00
Remove website redirects
This commit is contained in:
@@ -43,15 +43,9 @@ pub struct BucketParams {
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Eq, Clone, Debug, Serialize, Deserialize)]
|
||||
pub enum WebsiteConfig {
|
||||
RedirectAll {
|
||||
hostname: String,
|
||||
protocol: String,
|
||||
},
|
||||
Website {
|
||||
index_document: String,
|
||||
error_document: Option<String>,
|
||||
},
|
||||
pub struct WebsiteConfig {
|
||||
pub index_document: String,
|
||||
pub error_document: Option<String>,
|
||||
}
|
||||
|
||||
impl BucketParams {
|
||||
|
||||
@@ -70,7 +70,7 @@ impl Migrate {
|
||||
let alias_ts = aliases.get_timestamp(&new_name);
|
||||
|
||||
let website = if *old_bucket_p.website.get() {
|
||||
Some(WebsiteConfig::Website {
|
||||
Some(WebsiteConfig {
|
||||
index_document: "index.html".into(),
|
||||
error_document: None,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user