mirror of https://github.com/cloudreve/Cloudreve
fix(captcha): Backend default: cdn → jsdelivr
parent
53b4e74ef6
commit
0cc526f6e1
|
@ -395,7 +395,7 @@ var DefaultSettings = map[string]string{
|
||||||
"captcha_cap_instance_url": "",
|
"captcha_cap_instance_url": "",
|
||||||
"captcha_cap_site_key": "",
|
"captcha_cap_site_key": "",
|
||||||
"captcha_cap_secret_key": "",
|
"captcha_cap_secret_key": "",
|
||||||
"captcha_cap_asset_server": "cdn",
|
"captcha_cap_asset_server": "jsdelivr",
|
||||||
"thumb_width": "400",
|
"thumb_width": "400",
|
||||||
"thumb_height": "300",
|
"thumb_height": "300",
|
||||||
"thumb_entity_suffix": "._thumb",
|
"thumb_entity_suffix": "._thumb",
|
||||||
|
|
|
@ -671,7 +671,7 @@ func (s *settingProvider) CapCaptcha(ctx context.Context) *Cap {
|
||||||
InstanceURL: s.getString(ctx, "captcha_cap_instance_url", ""),
|
InstanceURL: s.getString(ctx, "captcha_cap_instance_url", ""),
|
||||||
SiteKey: s.getString(ctx, "captcha_cap_site_key", ""),
|
SiteKey: s.getString(ctx, "captcha_cap_site_key", ""),
|
||||||
SecretKey: s.getString(ctx, "captcha_cap_secret_key", ""),
|
SecretKey: s.getString(ctx, "captcha_cap_secret_key", ""),
|
||||||
AssetServer: s.getString(ctx, "captcha_cap_asset_server", "cdn"),
|
AssetServer: s.getString(ctx, "captcha_cap_asset_server", "jsdelivr"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue