改动: 2/19 将使用xtls-rprx-direct 改为了使用xtls-rprx-vision
如需在ios等设备上使用需将“flow”参数改为:"xray-rprx-direct,none"
暂时保留了xtls-rprx-direct
在原脚本的基础上增加了(仅针对XTLS加密方式的)流量统计的脚本和配置,也增加了多用户添加的命令
流量统计详情直接运行traffic.sh脚本即可,traffic.sh位于xray目录下
安装时会一并修改脚本中的对于端口,对于多个用户的流量统计流量统计脚本也会一并给出,脚本会在每月一号时清空本月流量详情(需设置cron等定时任务)
This script have added several functions, in addition to the original one-key script, that allows you to monitor the data utilization from all users and add new users.
The original script is for setting up a network proxy server without understanding the details, in order to get access to censored websites.
If you need more English information about this script please email me.
支持配置方式
- VLESS + TCP + TLS + Nginx + WebSocket
wget -N --no-check-certificate -q -O install.sh "https://raw.githubusercontent.com/wulabing/Xray_onekey/nginx_forward/install.sh" && chmod +x install.sh && bash install.sh
支持配置方式
-
VLESS + TCP + TLS (flow: xray-rprx-vision) + Nginx
-
VLESS + TCP + XTLS (flow: xray-rprx-direct) + Nginx
wget -N --no-check-certificate -q -O install.sh "https://raw.githubusercontent.com/abelyuan00/Xray_onekey_with_traffic/main/install.sh" && chmod +x install.sh && bash install.sh
启动 Xray:systemctl start xray
停止 Xray:systemctl stop xray
启动 Nginx:systemctl start nginx
停止 Nginx:systemctl stop nginx
Web 目录:/www/xray_web
Xray 服务端配置:/usr/local/etc/xray/config.json
Nginx 目录: /etc/nginx
证书文件: /ssl/xray.key
(私钥)和 /ssl/xray.crt
(证书公钥)
搬瓦工 AFF
https://bandwagonhost.com/aff.php?aff=63939
JustMySocks AFF
https://justmysocks.net/members/aff.php?aff=17621
DMIT AFF
https://www.dmit.io/aff.php?aff=3957
Vultr AFF
https://www.vultr.com/?ref=6881279
USDT TRC20:TFannfnajNGYsMTuVDcXfZXXPbcaxAEffa