mirror of
https://github.com/shuaiplus/nodewarden.git
synced 2026-06-23 05:50:14 +00:00
fix: add S3 addressing style option
Add a configurable S3 addressing style for remote backups while keeping path-style as the default for existing configurations. Use virtual-hosted-style to support providers such as Tencent COS buckets that reject path-style requests.
This commit is contained in:
@@ -6,6 +6,7 @@ import type {
|
||||
BackupRuntimeState,
|
||||
BackupScheduleConfig,
|
||||
BackupSettings as AdminBackupSettings,
|
||||
S3BackupAddressingStyle,
|
||||
S3BackupDestination,
|
||||
WebDavBackupDestination,
|
||||
} from '@shared/backup-schema';
|
||||
@@ -26,6 +27,7 @@ export type {
|
||||
BackupRuntimeState,
|
||||
BackupScheduleConfig,
|
||||
AdminBackupSettings,
|
||||
S3BackupAddressingStyle,
|
||||
S3BackupDestination,
|
||||
WebDavBackupDestination,
|
||||
};
|
||||
|
||||
@@ -267,6 +267,9 @@ const en: Record<string, string> = {
|
||||
"txt_backup_webdav_password": "WebDAV Password",
|
||||
"txt_backup_webdav_path": "Remote Folder",
|
||||
"txt_backup_s3_endpoint": "S3 Endpoint",
|
||||
"txt_backup_s3_addressing_style": "S3 Addressing Style",
|
||||
"txt_backup_s3_addressing_path_style": "path-style (default)",
|
||||
"txt_backup_s3_addressing_virtual_hosted_style": "virtual-hosted-style",
|
||||
"txt_backup_s3_bucket": "Bucket",
|
||||
"txt_backup_s3_region": "Region",
|
||||
"txt_backup_s3_access_key": "Access Key",
|
||||
|
||||
@@ -267,6 +267,9 @@ const es: Record<string, string> = {
|
||||
"txt_backup_webdav_password": "Contraseña WebDAV",
|
||||
"txt_backup_webdav_path": "Carpeta remota",
|
||||
"txt_backup_s3_endpoint": "Endpoint S3",
|
||||
"txt_backup_s3_addressing_style": "Estilo de direccionamiento S3",
|
||||
"txt_backup_s3_addressing_path_style": "path-style (predeterminado)",
|
||||
"txt_backup_s3_addressing_virtual_hosted_style": "virtual-hosted-style",
|
||||
"txt_backup_s3_bucket": "Bucket S3",
|
||||
"txt_backup_s3_region": "Región",
|
||||
"txt_backup_s3_access_key": "Clave de acceso",
|
||||
|
||||
@@ -267,6 +267,9 @@ const ru: Record<string, string> = {
|
||||
"txt_backup_webdav_password": "Пароль WebDAV",
|
||||
"txt_backup_webdav_path": "Удаленная папка",
|
||||
"txt_backup_s3_endpoint": "S3 endpoint",
|
||||
"txt_backup_s3_addressing_style": "Стиль адресации S3",
|
||||
"txt_backup_s3_addressing_path_style": "path-style (по умолчанию)",
|
||||
"txt_backup_s3_addressing_virtual_hosted_style": "virtual-hosted-style",
|
||||
"txt_backup_s3_bucket": "Бакет",
|
||||
"txt_backup_s3_region": "Регион",
|
||||
"txt_backup_s3_access_key": "Ключ доступа",
|
||||
|
||||
@@ -267,6 +267,9 @@ const zhCN: Record<string, string> = {
|
||||
"txt_backup_webdav_password": "WebDAV 密码",
|
||||
"txt_backup_webdav_path": "远程目录",
|
||||
"txt_backup_s3_endpoint": "S3 端点",
|
||||
"txt_backup_s3_addressing_style": "S3 寻址方式",
|
||||
"txt_backup_s3_addressing_path_style": "path-style(默认)",
|
||||
"txt_backup_s3_addressing_virtual_hosted_style": "virtual-hosted-style",
|
||||
"txt_backup_s3_bucket": "存储桶",
|
||||
"txt_backup_s3_region": "区域",
|
||||
"txt_backup_s3_access_key": "访问密钥",
|
||||
|
||||
@@ -267,6 +267,9 @@ const zhTW: Record<string, string> = {
|
||||
"txt_backup_webdav_password": "WebDAV 密碼",
|
||||
"txt_backup_webdav_path": "遠程目錄",
|
||||
"txt_backup_s3_endpoint": "S3 端點",
|
||||
"txt_backup_s3_addressing_style": "S3 定址方式",
|
||||
"txt_backup_s3_addressing_path_style": "path-style(預設)",
|
||||
"txt_backup_s3_addressing_virtual_hosted_style": "virtual-hosted-style",
|
||||
"txt_backup_s3_bucket": "儲存桶",
|
||||
"txt_backup_s3_region": "區域",
|
||||
"txt_backup_s3_access_key": "存取金鑰",
|
||||
|
||||
Reference in New Issue
Block a user