mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-08 02:17:46 +08:00
feat(admin): configure S3 backup User-Agent
This commit is contained in:
@@ -1724,6 +1724,7 @@ pub fn admin_system_config_default_value(key: &str) -> Option<serde_json::Value>
|
||||
"backup_s3_scope" => Some(json!("data")),
|
||||
"backup_s3_endpoint" => Some(serde_json::Value::Null),
|
||||
"backup_s3_region" => Some(json!("auto")),
|
||||
"backup_s3_user_agent" => Some(json!("rclone/v1.68.0")),
|
||||
"backup_s3_bucket" => Some(serde_json::Value::Null),
|
||||
"backup_s3_prefix" => Some(json!("aether/backups/")),
|
||||
"backup_s3_access_key_id" => Some(serde_json::Value::Null),
|
||||
@@ -3378,6 +3379,10 @@ mod tests {
|
||||
admin_system_config_default_value("backup_s3_path_style"),
|
||||
Some(json!(true))
|
||||
);
|
||||
assert_eq!(
|
||||
admin_system_config_default_value("backup_s3_user_agent"),
|
||||
Some(json!("rclone/v1.68.0"))
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user