From 8ce94a3bd42565a00e58c6a71f01f7f92b98e4c5 Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Tue, 15 Jun 2021 11:37:32 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=84=9A=E6=9C=AC):=20=E6=B7=BB=E5=8A=A0a?= =?UTF-8?q?cme=E5=AE=89=E8=A3=85=E6=97=A5=E5=BF=97=E3=80=81=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=99=BA=E8=83=BDCDN=E8=A7=A3=E6=9E=90=EF=BC=8C?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=A4=87=E6=B3=A8=E3=80=81=E4=BF=AE=E6=94=B9?= =?UTF-8?q?readme=E6=B3=A8=E6=84=8F=E4=BA=8B=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- install.sh | 23 ++++++++++++++--------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 0193292..c8ea2c6 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ ## 注意事项 - **修改Cloudflare->SSL/TLS->Overview->Full** -- **Cloudflare ---> A记录解析的云朵必须为灰色** +- **Cloudflare ---> A记录解析的云朵必须为灰色【如非灰色,会影响到定时任务自动续签证书】** - **使用纯净系统安装,如使用其他脚本安装过,请重新build系统再安装** - wget: command not found [**这里需要自己手动安装下wget**] ,如未使用过Linux,[点击查看](https://github.com/mack-a/v2ray-agent/tree/master/documents/install_tools.md)安装教程 diff --git a/install.sh b/install.sh index 8166927..ffea098 100644 --- a/install.sh +++ b/install.sh @@ -719,9 +719,9 @@ installTLS() { elif [[ -d "$HOME/.acme.sh" ]] && [[ ! -f "$HOME/.acme.sh/${tlsDomain}_ecc/${tlsDomain}.cer" || ! -f "$HOME/.acme.sh/${tlsDomain}_ecc/${tlsDomain}.key" ]]; then echoContent green " ---> 安装TLS证书" if [[ -n "${pingIPv6}" ]]; then - sudo "$HOME/.acme.sh/acme.sh" --issue -d "${tlsDomain}" --standalone -k ec-256 --listen-v6 >/dev/null + sudo "$HOME/.acme.sh/acme.sh" --issue -d "${tlsDomain}" --standalone -k ec-256 --listen-v6 >> /etc/v2ray-agent/tls/acme.log else - sudo "$HOME/.acme.sh/acme.sh" --issue -d "${tlsDomain}" --standalone -k ec-256 >/dev/null + sudo "$HOME/.acme.sh/acme.sh" --issue -d "${tlsDomain}" --standalone -k ec-256 >> /etc/v2ray-agent/tls/acme.log fi sudo "$HOME/.acme.sh/acme.sh" --installcert -d "${tlsDomain}" --fullchainpath "/etc/v2ray-agent/tls/${tlsDomain}.crt" --keypath "/etc/v2ray-agent/tls/${tlsDomain}.key" --ecc >/dev/null @@ -2144,13 +2144,14 @@ EOF # 自定义CDN IP customCDNIP() { echoContent skyBlue "\n进度 $1/${totalProgress} : 添加DNS智能解析" - echoContent yellow "\n 移动:104.19.45.117" - echoContent yellow " 联通:www.cloudflare.com" + echoContent yellow "如对CDN自选ip不了解,请选择[n]" + echoContent yellow "\n 移动:104.16.123.96" + echoContent yellow " 联通:hostmonit.com" echoContent yellow " 电信:www.digitalocean.com" echoContent skyBlue "----------------------------" read -r -p '是否使用?[y/n]:' dnsProxy if [[ "${dnsProxy}" == "y" ]]; then - add="www.cloudflare.com" + add="domain08.mqcjuc.ml" echoContent green "\n ---> 使用成功" else add="${domain}" @@ -2922,8 +2923,9 @@ checkLog() { echoContent yellow "2.监听access日志" echoContent yellow "3.监听error日志" - echoContent yellow "4.查看证书更新日志" - echoContent yellow "5.清空日志" + echoContent yellow "4.查看证书定时任务日志" + echoContent yellow "5.查看证书安装日志" + echoContent yellow "6.清空日志" echoContent red "==============================================================" read -r -p "请选择:" selectAccessLogType @@ -2964,6 +2966,9 @@ EOF tail -n 100 /etc/v2ray-agent/crontab_tls.log ;; 5) + tail -n 100 /etc/v2ray-agent/tls/acme.log + ;; + 6) echo >${configPathLog}access.log echo >${configPathLog}error.log ;; @@ -3094,7 +3099,7 @@ streamingToolbox() { echoContent red "\n==============================================================" echoContent yellow "1.Netflix检测" echoContent yellow "2.任意门落地机解锁Netflix" - echoContent yellow "3.DNS解锁流媒体\n" + echoContent yellow "3.DNS解锁流媒体" read -r -p "请选择:" selectType case ${selectType} in @@ -3794,7 +3799,7 @@ menu() { cd "$HOME" || exit echoContent red "\n==============================================================" echoContent green "作者:mack-a" - echoContent green "当前版本:v2.4.43" + echoContent green "当前版本:v2.4.44" echoContent green "Github:https://github.com/mack-a/v2ray-agent" echoContent green "描述:八合一共存脚本\c" showInstallStatus