FastGithub/FastGithub/appsettings.json
2021-08-30 09:16:12 +08:00

46 lines
1.8 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
// 新增的子配置文件appsettings.*.json重启应用程序才生效
"FastGithub": {
"Listen": {
"SshPort": 22, // ssh监听的端口修改后重启应用才生效
"DnsPort": 53 // dns监听的端口修改后重启应用才生效
},
"FallbackDns": [ // 用于解析不在DomainConfigs的域名
{
"IPAddress": "114.114.114.114",
"Port": 53
},
{
"IPAddress": "8.8.8.8",
"Port": 53
}
],
"DomainConfigs": {
"*.x.y.z.com": { // 域名的*表示除.之外0到多个任意字符
"TlsSni": false, // 指示tls握手时是否发送SNI
"TlsSniPattern": null, // SNI表达式@domain变量表示取域名值 @ipaddress变量表示取ip @random变量表示取随机值其它字符保留不替换
"TlsIgnoreNameMismatch": false, // 是否忽略服务器证书域名不匹配当不发送SNI时服务器可能发回域名不匹配的证书默认为false
"Timeout": null, // 请求超时时长,格式为"00:02:00"默认为null
"IPAddress": null, // 请求的ip默认为null
"Destination": null, // 请求目的地格式为绝对或相对Uri默认null
"Response": { // 阻断请求直接响应设置了Response其它配置都不起作用了
"StatusCode": 404, // 响应的状态码
"ContentType": "text/plain;charset=utf-8", // 如果有ContentValue就要指示ContentType
"ContentValue": "这是一个用于示范配置的域名" // 自定义返回的内容,这是可选的
}
}
}
},
"Serilog": {
"MinimumLevel": {
"Default": "Information",
"Override": {
"Yarp": "Warning",
"System": "Warning",
"Microsoft": "Warning",
"Microsoft.AspNetCore.Server.Kestrel": "Error"
}
}
}
}