diff --git a/FastGithub/appsettings.json b/FastGithub/appsettings.json index f2b148c..c768681 100644 --- a/FastGithub/appsettings.json +++ b/FastGithub/appsettings.json @@ -1,9 +1,40 @@ { "Dns": { - "UpStream": "114.114.114.114", - "GithubTTL": "00:10:00" + "UpStream": "114.114.114.114", // 上游dns + "GithubTTL": "00:10:00" // github相关域名解析结果的存活时长 }, "Github": { + "Lookup": { // ip查找 + "Domains": [ // 查找的域名,下面是github主最要的域名 + "github.com", + "api.github.com", + "collector.githubapp.com", + "github.githubassets.com", + "raw.githubusercontent.com", + "avatars.githubusercontent.com", + "favicons.githubusercontent.com" + ], + "IPAddressComProvider": { + "Enable": true // 是从启用从address.com查找ip + }, + "GithubMetaProvider": { + "Enable": true, // 是否从github获取ip列表 + "MetaUri": "https://gitee.com/jiulang/fast-github/raw/master/FastGithub/meta.json" + }, + "PublicDnsProvider": { + "Enable": true, // 是否需要从dns服务器查找ip + "Dnss": [ // dns服务器列表 + "1.2.4.8", + "8.8.8.8", + "223.5.5.5", + "123.125.81.6", + "180.76.76.76", + "119.29.29.29", + "208.67.220.220", + "114.114.114.114" + ] + } + }, "Scan": { "FullScanInterval": "02:00:00", // 完整扫描时间间隔 "ResultScanInterval": "00:01:00", // 结果扫描时间间隔 @@ -13,55 +44,30 @@ }, "HttpsScan": { "Timeout": "00:00:05", // https扫描超时时间 - "ConnectionClose": false, // 是否使用短连接 - "Rules": { + "ConnectionClose": false, // 是否使用https短连接 + "Rules": { // 域名扫描规则,缺失的域名,将默认HEAD请求到域名的根路径 "github.com": { + "Method": "HEAD", "Path": "/xljiulang/FastGithub" }, "github.githubassets.com": { "Method": "HEAD", "Path": "/favicons/favicon.png" }, + "raw.githubusercontent.com": { + "Method": "HEAD", + "Path": "/xljiulang/FastGithub/master/README.md" + }, "avatars.githubusercontent.com": { "Method": "HEAD", "Path": "/u/8308014?s=40&v=4" }, - "raw.githubusercontent.com": { + "favicons.githubusercontent.com": { "Method": "HEAD", - "Path": "/xljiulang/FastGithub/master/README.md" + "Path": "/github.com" } } } - }, - "Lookup": { - "Domains": [ - "github.com", - "api.github.com", - "collector.githubapp.com", - "github.githubassets.com", - "raw.githubusercontent.com", - "avatars.githubusercontent.com" - ], - "IPAddressComProvider": { - "Enable": true - }, - "GithubMetaProvider": { - "Enable": true, - "MetaUri": "https://gitee.com/jiulang/fast-github/raw/master/FastGithub/meta.json" - }, - "PublicDnsProvider": { - "Enable": true, - "Dnss": [ - "8.8.8.8", - "114.114.114.114", - "180.76.76.76", - "119.29.29.29", - "223.5.5.5", - "1.2.4.8", - "208.67.220.220", - "123.125.81.6" - ] - } } }, "Logging": {