feat(admin): configure S3 backup User-Agent

This commit is contained in:
Kayphoon
2026-07-16 08:56:56 +00:00
parent 9ea84f9748
commit 6b707f29a2
8 changed files with 46 additions and 1 deletions
+5
View File
@@ -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]