From 4ee64d7eacbfd6ec64dc9afef5cedb80da361597 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=9B=BD=E4=BC=9F?= <366193849@qq.com> Date: Thu, 24 Jun 2021 15:59:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=85=8D=E7=BD=AE=E6=A0=B7?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FastGithub/FastGithub.csproj | 3 +++ FastGithub/appsettings.domain.json.example | 23 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 FastGithub/appsettings.domain.json.example diff --git a/FastGithub/FastGithub.csproj b/FastGithub/FastGithub.csproj index 7367b53..dc0ec9b 100644 --- a/FastGithub/FastGithub.csproj +++ b/FastGithub/FastGithub.csproj @@ -23,6 +23,9 @@ + + PreserveNewest + PreserveNewest diff --git a/FastGithub/appsettings.domain.json.example b/FastGithub/appsettings.domain.json.example new file mode 100644 index 0000000..450c534 --- /dev/null +++ b/FastGithub/appsettings.domain.json.example @@ -0,0 +1,23 @@ +{ + "Lookup": { // ip查找 + "Domains": [ // 查找的域名,下面是要加速的域名 + "domain.com", + "xx.domain.com", + "yy.domain.com" + ] + }, + "Scan": { // 扫描规则 + "HttpsScan": { + "Rules": { // 域名扫描规则,缺失的域名,将默认HEAD请求到域名的根路径 + "xx.domain.com": { + "Method": "HEAD", + "Path": "/xx/" + }, + "yy.domain.com": { + "Method": "HEAD", + "Path": "/yy/" + } + } + } + } +}