服务器购买推荐:
点击直达 腾讯云服务器
点击直达 海外服务器
点击直达 阿里云服务器
开发者设置–Oauth应用程序
http://你的域名:8008
http://你的域名:8008/oauth2/callback
Client ID xxxxxxxxxx
Client secrets xxxxxxxxxxxxx
https://github.com/naiba/nezha
运行脚本
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod +x nezha.sh && sudo ./nezha.sh
国内服务器拉镜像
curl -L https://jihulab.com/nezha/nezha/-/raw/master/script/install.sh -o nezha.sh && chmod +x nezha.sh && sudo CN=true ./nezha.sh
@BotFather
@userinfobot
https://api.telegram.org/bot5103515355:AAEq_SH_2Mgrj79-zkA2BUALX-5aZn67P0w/sendMessage?chat_id=1406209830&text=#NEZHA#
[{"Type":"offline","Duration":10}]
location /
{
proxy_pass http://127.0.0.1:8008;
proxy_set_header Host $host;
}
location /ws
{
proxy_pass http://127.0.0.1:8008;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}
location /terminal
{
proxy_pass http://127.0.0.1:8008;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}
评论区