mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-31 00:24:38 +00:00
Merge pull request #4593 from StarryKira/fix/image-storage-env-unreachable
fix: 异步生图开关配了却不生效(环境变量被静默丢弃 + 迁移到后台开关)
This commit is contained in:
@@ -102,6 +102,19 @@ export default {
|
||||
testFailed: 'S3 connection test failed',
|
||||
saved: 'S3 configuration saved'
|
||||
},
|
||||
imageStorage: {
|
||||
title: 'Async image object storage',
|
||||
description: 'Enables the asynchronous image endpoints and offloads generated images to object storage, keeping only short links in Redis. Shares the S3 client with backups and takes effect on save — no restart needed.',
|
||||
enabled: 'Enable async image tasks',
|
||||
reuseBackupS3: 'Reuse the backup S3 configuration above (different bucket/prefix only)',
|
||||
bucket: 'Bucket',
|
||||
bucketInherited: 'Leave empty to use the backup bucket',
|
||||
prefix: 'Key prefix',
|
||||
publicBaseUrl: 'Public base URL',
|
||||
publicBaseUrlPlaceholder: 'Leave empty to return presigned links',
|
||||
presignExpiryHours: 'Presigned link TTL (hours)',
|
||||
saved: 'Async image object storage saved'
|
||||
},
|
||||
schedule: {
|
||||
title: 'Scheduled Backup',
|
||||
description: 'Configure automatic scheduled backups',
|
||||
|
||||
@@ -102,6 +102,19 @@ export default {
|
||||
testFailed: 'S3 连接测试失败',
|
||||
saved: 'S3 配置已保存'
|
||||
},
|
||||
imageStorage: {
|
||||
title: '异步生图对象存储',
|
||||
description: '开启后,异步生图接口可用,生成结果转存到对象存储,只把短链接写入 Redis。与备份共用同一套 S3 客户端,保存后立即生效,无需重启。',
|
||||
enabled: '启用异步生图',
|
||||
reuseBackupS3: '复用上方备份的 S3 配置(只用不同的存储桶/前缀)',
|
||||
bucket: '存储桶',
|
||||
bucketInherited: '留空则沿用备份存储桶',
|
||||
prefix: 'Key 前缀',
|
||||
publicBaseUrl: '公开访问域名',
|
||||
publicBaseUrlPlaceholder: '留空则返回预签名临时链接',
|
||||
presignExpiryHours: '预签名链接有效期(小时)',
|
||||
saved: '异步生图对象存储配置已保存'
|
||||
},
|
||||
schedule: {
|
||||
title: '定时备份',
|
||||
description: '配置自动定时备份',
|
||||
|
||||
Reference in New Issue
Block a user