chat ID : @RawDataBo
t - Telegram Bot Raw
Bot token: @Botfather
mkdir sss && cd sss && wget --no-check-certificate https://raw.githubusercontent.com/lidalao/ServerStatus/master/sss.sh && chmod +x ./sss.sh && sudo ./sss.sh YOUR_TG_CHAT_ID YOUR_TG_BOT_TOKEN
该部分仅登录用户可见
web服务地址:http://ip:8081
添加节点
cd /home/cokan/sss
python3 _sss.py
反代理
user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 1024;
}
http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
gzip on;
server {
listen 443 ssl;
server_name cloud.puroluna.me; #????
ssl_certificate /etc/x-ui/server.crt; #????
ssl_certificate_key /etc/x-ui/server.key; #????
ssl_session_timeout 1d;
ssl_session_cache shared:MozSSL:10m;
ssl_session_tickets off;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers off;
location / {
proxy_pass https://cloud.hyuan.site; #????
proxy_redirect off;
proxy_ssl_server_name on;
sub_filter_once off;
sub_filter "cloud.hyuan.site" $server_name;
proxy_set_header Host "cloud.hyuan.site";
proxy_set_header Referer $http_referer;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header User-Agent $http_user_agent;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header Accept-Encoding "";
proxy_set_header Accept-Language "zh-CN";
}
location /2dd7ffa3-8959-4bb0-e4a9-04841006d8c4 { #????
proxy_redirect off;
proxy_pass http://127.0.0.1:32609; #Xray??
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /2dd7ffa3-8959-4bb0-e4a9-04841006d8c4-xui { #xui??
proxy_redirect off;
proxy_pass http://127.0.0.1:54369; #xui????
proxy_http_version 1.1;
proxy_set_header Host $host;
}
location /api/ {
proxy_pass http://127.0.0.1:8081/; #端口2:用于接口访问,这里一定要带上末尾的'/'
proxy_read_timeout 300;
proxy_connect_timeout 300;
proxy_redirect off;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
}
}
server {
listen 80;
location /.well-known/ {
root /var/www/html;
}
location / {
rewrite ^(.*)$ https://$host$1 permanent;
}
}
}
该部分仅登录用户可见
How to Find a Chat ID in Telegram (alphr.com)
支持节点管理和监控的ServerStatus,它来了 - 李大佬 (lidalao.com)