fix(media): 资源访问 - 签名地址有效期跟随后台策略并放开服务器访问地址限制

平台展示与厂商读取的签名地址有效期改为读取「资源与请求策略」,默认均为 4 小时,不再硬编码 5 分钟。服务器访问地址只校验 http/https 格式,允许本机、局域网或 HTTP 地址,模型读取平台资源不再强制 HTTPS 公网地址。
This commit is contained in:
ddcat666
2026-09-30 03:38:31 +08:00
parent 4957f8bc22
commit 4272b0e499
9 changed files with 40 additions and 14 deletions

View File

@@ -462,7 +462,7 @@ export default function StorageSettingsPage() {
<div className="admin-storage-form-section">
<FormSectionTitle icon={<Globe2 className="size-4" />} title="公开访问根地址" description="用于生成本地资源的短时签名链接;填写站点根地址,不要附带 /api、查询参数或片段。" />
<div className="admin-storage-local-field">
<Form.Item name="publicBaseUrl" label="服务器访问地址" extra="服务端还会按部署安全策略校验协议、主机及私网访问许可。">
<Form.Item name="publicBaseUrl" label="服务器访问地址" extra="支持本机、局域网或公网地址,例如 http://192.168.1.10:8080。">
<div className="admin-storage-address-control">
<Input aria-label="服务器访问地址" autoComplete="off" inputMode="url" placeholder="https://canvas.example.com" prefix={<Globe2 className="size-4 text-foreground/35" />} />
<Button