🍓 refactor(HttpRemote): 拆分代理配置,并增加开发环境配置
This commit is contained in:
parent
9ba1effcab
commit
bcfc4f35b5
@ -31,6 +31,13 @@
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
|
||||
</Content>
|
||||
<Content Remove="Configuration\HttpRemotes.*.json" />
|
||||
<Content Include="Configuration\HttpRemotes.*.json">
|
||||
<DependentUpon>HttpRemotes.json</DependentUpon>
|
||||
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
|
||||
</Content>
|
||||
<Content Include="wwwroot\**\*">
|
||||
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
|
||||
@ -0,0 +1,24 @@
|
||||
{
|
||||
"$schema": "https://gitee.com/dotnetchina/Furion/raw/v4/schemas/v4/furion-schema.json",
|
||||
|
||||
"HttpProxy": { // 代理配置
|
||||
"Encrypt": false,
|
||||
"MaxRetries": 3,
|
||||
"Address": "http://route.xiongmaodaili.com/xxxxxxxx",
|
||||
"Account": "",
|
||||
"Password": ""
|
||||
},
|
||||
"HttpRemotes": {
|
||||
"WorkWeixin": { // 企业微信
|
||||
"EnabledLog": true,
|
||||
"UseCookies": false,
|
||||
"EnabledProxy": false,
|
||||
"HttpName": "WORK_WEIXIN",
|
||||
"BaseAddress": "https://qyapi.weixin.qq.com",
|
||||
"Headers": {
|
||||
"User-Agent": "WORK_WEIXIN"
|
||||
},
|
||||
"Timeout": 60
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,14 +1,14 @@
|
||||
{
|
||||
"$schema": "https://gitee.com/dotnetchina/Furion/raw/v4/schemas/v4/furion-schema.json",
|
||||
|
||||
"HttpProxy": { // 代理配置
|
||||
"Encrypt": false,
|
||||
"MaxRetries": 3,
|
||||
"Address": "http://route.xiongmaodaili.com/xxxxxxxx",
|
||||
"Account": "",
|
||||
"Password": ""
|
||||
},
|
||||
"HttpRemotes": {
|
||||
"Proxy": { // 代理配置
|
||||
"Encrypt": false,
|
||||
"MaxRetries": 3,
|
||||
"Address": "http://route.xiongmaodaili.com/xxxxxxxx",
|
||||
"Account": "",
|
||||
"Password": ""
|
||||
},
|
||||
"WorkWeixin": { // 企业微信
|
||||
"EnabledLog": true,
|
||||
"UseCookies": false,
|
||||
|
||||
@ -9,7 +9,7 @@ namespace Admin.NET.Core;
|
||||
/// <summary>
|
||||
/// 远程请求代理配置
|
||||
/// </summary>
|
||||
public sealed class HttpProxyOption : IConfigurableOptions
|
||||
public sealed class HttpProxyOptions : IConfigurableOptions
|
||||
{
|
||||
/// <summary>
|
||||
/// 是否加密
|
||||
Loading…
Reference in New Issue
Block a user