123456789101112131415161718192021222324252627282930313233343536 |
- #!/bin/sh
- #Config xray
- rm -rf /etc/xray/config.json
- cat << EOF > /etc/xray/config.json
- {
- "inbounds": [
- {
- "port": $PORT,
- "protocol": "vless",
- "settings": {
- "decryption": "none",
- "clients": [
- {
- "id": "$UUID"
- }
- ]
- },
- "streamSettings": {
- "network": "ws"
- }
- }
- ],
- "outbounds": [
- {
- "protocol": "freedom"
- }
- ]
- }
- EOF
- #run xray
- xray -c /etc/xray/config.json
|