🍓 refactor(HttpRemote): 拆分代理配置,并增加开发环境配置
This commit is contained in:
parent
9ba1effcab
commit
bcfc4f35b5
@ -31,6 +31,13 @@
|
|||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
|
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
|
||||||
</Content>
|
</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\**\*">
|
<Content Include="wwwroot\**\*">
|
||||||
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
|
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<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",
|
"$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": {
|
"HttpRemotes": {
|
||||||
"Proxy": { // 代理配置
|
|
||||||
"Encrypt": false,
|
|
||||||
"MaxRetries": 3,
|
|
||||||
"Address": "http://route.xiongmaodaili.com/xxxxxxxx",
|
|
||||||
"Account": "",
|
|
||||||
"Password": ""
|
|
||||||
},
|
|
||||||
"WorkWeixin": { // 企业微信
|
"WorkWeixin": { // 企业微信
|
||||||
"EnabledLog": true,
|
"EnabledLog": true,
|
||||||
"UseCookies": false,
|
"UseCookies": false,
|
||||||
|
|||||||
@ -9,7 +9,7 @@ namespace Admin.NET.Core;
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 远程请求代理配置
|
/// 远程请求代理配置
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public sealed class HttpProxyOption : IConfigurableOptions
|
public sealed class HttpProxyOptions : IConfigurableOptions
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 是否加密
|
/// 是否加密
|
||||||
Loading…
Reference in New Issue
Block a user