From 2b799a524fc18ee03620cc26824b65a90b8ce5c0 Mon Sep 17 00:00:00 2001 From: cppla Date: Thu, 9 Jul 2026 17:13:58 +0800 Subject: [PATCH] =?UTF-8?q?raw=E5=9F=9F=E5=90=8D=E8=A2=AB=E9=99=90?= =?UTF-8?q?=E6=B5=81=EF=BC=8C=E6=9B=BF=E6=8D=A2=E4=B8=BAapi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 81e870c..c11a46a 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,9 @@ ADMIN_TOKEN='your-strong-token' docker compose -f docker-compose-server.yml up - ```bash # Docker Run -wget --no-check-certificate -qO ~/serverstatus-config.json \ - https://raw.githubusercontent.com/cppla/ServerStatus/master/server/config.json +wget -qO ~/serverstatus-config.json \ + --header='Accept: application/vnd.github.raw' \ + 'https://api.github.com/repos/cppla/ServerStatus/contents/server/config.json?ref=master' mkdir -p ~/serverstatus-monthtraffic docker run -d --restart=always --name=serverstatus-server \ @@ -61,7 +62,7 @@ docker run -d --restart=always --name=serverstatus-client \ ```bash # Shell Run -wget --no-check-certificate -qO client-linux.py 'https://raw.githubusercontent.com/cppla/ServerStatus/master/clients/client-linux.py' && (nohup python3 client-linux.py SERVER=127.0.0.1 USER=s01 >/dev/null 2>&1 &) +wget -qO client-linux.py --header='Accept: application/vnd.github.raw' 'https://api.github.com/repos/cppla/ServerStatus/contents/clients/client-linux.py?ref=master' && (nohup python3 client-linux.py SERVER=127.0.0.1 USER=s01 >/dev/null 2>&1 &) ``` 客户端环境变量和注意事项: @@ -295,8 +296,9 @@ server { `client-linux.py`: ```bash -wget --no-check-certificate -qO client-linux.py \ - https://raw.githubusercontent.com/cppla/ServerStatus/master/clients/client-linux.py +wget -qO client-linux.py \ + --header='Accept: application/vnd.github.raw' \ + 'https://api.github.com/repos/cppla/ServerStatus/contents/clients/client-linux.py?ref=master' nohup python3 client-linux.py SERVER=127.0.0.1 USER=s01 PASSWORD=USER_DEFAULT_PASSWORD \ >/dev/null 2>&1 &