mirror of https://github.com/certd/certd
perf: cf授权支持配置http代理
parent
0d71a8ee50
commit
27386ea04d
|
@ -25,6 +25,18 @@ export class CloudflareAccess extends BaseAccess {
|
||||||
encrypt: true,
|
encrypt: true,
|
||||||
})
|
})
|
||||||
apiToken = '';
|
apiToken = '';
|
||||||
|
|
||||||
|
@AccessInput({
|
||||||
|
title: 'HTTP代理',
|
||||||
|
component: {
|
||||||
|
placeholder: 'http://xxxx.xxx.xx:10811',
|
||||||
|
},
|
||||||
|
helper:
|
||||||
|
'是否使用http代理',
|
||||||
|
required: false,
|
||||||
|
encrypt: false,
|
||||||
|
})
|
||||||
|
proxy = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
new CloudflareAccess();
|
new CloudflareAccess();
|
||||||
|
|
|
@ -53,6 +53,7 @@ export class CloudflareDnsProvider extends AbstractDnsProvider<CloudflareRecord>
|
||||||
Authorization: `Bearer ${this.access.apiToken}`,
|
Authorization: `Bearer ${this.access.apiToken}`,
|
||||||
},
|
},
|
||||||
data,
|
data,
|
||||||
|
httpProxy: this.access.proxy,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!res.success) {
|
if (!res.success) {
|
||||||
|
|
Loading…
Reference in New Issue