mirror of
https://github.com/cloudreve/frontend.git
synced 2025-12-26 04:02:47 +00:00
Feat: add cdn distinct for oss
This commit is contained in:
parent
5d4d01a797
commit
cbb70fb0a5
|
|
@ -452,6 +452,7 @@
|
|||
"intranetEndPoint": "内网 EndPoint",
|
||||
"ossCDNDes": "是否要使用配套的 阿里云CDN 加速 OSS 访问?",
|
||||
"createOSSCDNDes": "前往 <0>阿里云 CDN 管理控制台</0> 创建 CDN 加速域名,并设定源站为刚创建的 OSS Bucket。在下方填写 CDN 加速域名,并选择是否使用 HTTPS:",
|
||||
"ossAKCDNDes": "为防止用户绕过CDN刷流量,请单独再获取一个阿里云AccessKey,并填写在下方。",
|
||||
"ossAKDes": "在阿里云 <0>安全信息管理</0> 页面获取 用户 AccessKey,并填写在下方。",
|
||||
"shouldNotContainSpace": "不能含有空格",
|
||||
"nameThePolicyFirst": "为此存储策略命名:",
|
||||
|
|
|
|||
|
|
@ -143,6 +143,8 @@ export default function OSSGuide(props) {
|
|||
server_side_endpoint: "",
|
||||
chunk_size: 25 << 20,
|
||||
placeholder_with_size: "false",
|
||||
cdn_access_key: "",
|
||||
cdn_secret_key: "",
|
||||
},
|
||||
}
|
||||
);
|
||||
|
|
@ -534,7 +536,7 @@ export default function OSSGuide(props) {
|
|||
"https://cdn.console.aliyun.com/domain/list"
|
||||
}
|
||||
target={"_blank"}
|
||||
/>,
|
||||
/>
|
||||
]}
|
||||
/>
|
||||
</Typography>
|
||||
|
|
@ -546,6 +548,43 @@ export default function OSSGuide(props) {
|
|||
label={t("bucketCDNDomain")}
|
||||
/>
|
||||
</div>
|
||||
<br></br>
|
||||
<br></br>
|
||||
<Typography variant={"body2"}>
|
||||
{t("ossAKCDNDes")}
|
||||
</Typography>
|
||||
<div className={classes.form}>
|
||||
<FormControl fullWidth>
|
||||
<InputLabel htmlFor="component-helper">
|
||||
AccessKey ID
|
||||
</InputLabel>
|
||||
<Input
|
||||
required
|
||||
inputProps={{
|
||||
pattern: "\\S+",
|
||||
title: t("shouldNotContainSpace")
|
||||
}}
|
||||
value={policy.OptionsSerialized.cdn_access_key}
|
||||
onChange={handleOptionChange("cdn_access_key")}
|
||||
/>
|
||||
</FormControl>
|
||||
</div>
|
||||
<div className={classes.form}>
|
||||
<FormControl fullWidth>
|
||||
<InputLabel htmlFor="component-helper">
|
||||
Access Key Secret
|
||||
</InputLabel>
|
||||
<Input
|
||||
required
|
||||
inputProps={{
|
||||
pattern: "\\S+",
|
||||
title: t("shouldNotContainSpace")
|
||||
}}
|
||||
value={policy.OptionsSerialized.cdn_secret_key}
|
||||
onChange={handleOptionChange("cdn_secret_key")}
|
||||
/>
|
||||
</FormControl>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</Collapse>
|
||||
|
|
@ -568,7 +607,7 @@ export default function OSSGuide(props) {
|
|||
"https://usercenter.console.aliyun.com/#/manage/ak"
|
||||
}
|
||||
target={"_blank"}
|
||||
/>,
|
||||
/>
|
||||
]}
|
||||
/>
|
||||
</Typography>
|
||||
|
|
|
|||
Loading…
Reference in New Issue