Last active
December 2, 2023 17:28
-
-
Save ErFUN-KH/0e52696818c8c808900ac294b9010e62 to your computer and use it in GitHub Desktop.
V2ray-new
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"log": { | |
"loglevel": "warning", | |
"access": "/var/log/xray/access.log", | |
"error": "/var/log/xray/error.log" | |
}, | |
"inbounds": [{ | |
"port": 10000, | |
"protocol": "vmess", | |
"settings": { | |
"clients": [ | |
{ | |
"id": "50b9be5c-18f8-f885-965a-36d5a334cee4", | |
"level": 1, | |
"alterId": 64 | |
} | |
] | |
}, | |
"streamSettings": { | |
"network": "ws", | |
"wsSettings": { | |
"path": "/update-data" | |
} | |
} | |
}], | |
"outbounds": [{ | |
"protocol": "freedom", | |
"settings": {} | |
},{ | |
"protocol": "blackhole", | |
"settings": {}, | |
"tag": "blocked" | |
}], | |
"routing": { | |
"rules": [ | |
{ | |
"type": "field", | |
"ip": ["geoip:private"], | |
"outboundTag": "blocked" | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
add your domain to the CDN and add the IP address to the DNS but disable the CDN, it should connect to the server directly
Run these commands:
nano /etc/nginx/sites-enabled/your_domain_name.com
select your domain number and...
then turn the CDN on.
Done