fix(s3): 自定义访问域名回填地址补上存储桶一段(域名/桶/前缀/文件名)

MinIO 等自建服务 API 地址与访问地址分离,访问域名指向服务根,
原实现按 域名/前缀/文件名 拼、漏了桶名,文档里的地址会 404。
改为 域名/bucket/key;设置弹窗说明同步写清拼接规则,docs/30 补记。
同份 s3.rs 在独立 crate 对模拟 S3 复测通过(期望值已更新)。
This commit is contained in:
Muse
2026-11-15 09:03:25 +08:00
parent 967aada3ca
commit b3c22fd597
3 changed files with 17 additions and 5 deletions

View File

@@ -98,7 +98,7 @@ export function S3SettingsModal({ initial, onSave, onClose }: {
/>
</label>
<label className="modal-field">
<span>自定义访问域名(可空,如 CDN 域名;回填文档用它拼地址)</span>
<span>自定义访问域名(可空;回填地址 = 此域名 / 存储桶 / 前缀 / 文件名,适合 MinIO 等 API 与访问地址分离的部署)</span>
<input
className="input"
value={draft.publicBase}