记录 VLESS
网站配置文件最后}之前加
1 2 3 4 5 6 7 8 9 10 |
location /tt { proxy_pass http://127.0.0.1:66666; proxy_redirect off; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $http_host; proxy_read_timeout 300s; } |
编辑
/usr/local/etc/v2ray
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
{ "log": { "access": "/var/log/v2ray/access.log", "error": "/var/log/v2ray/error.log", "loglevel": "warning" }, "inbounds": [ { "port":66666, "listen": "127.0.0.1", "tag": "VLESS-in", "protocol": "VLESS", "settings": { "clients": [ { "id":"*******", "alterId": 0 } ], "decryption": "none" }, "streamSettings": { "network": "ws", "wsSettings": { "path":"/tt" } } } ], "outbounds": [ { "protocol": "freedom", "settings": { }, "tag": "direct" }, { "protocol": "blackhole", "settings": { }, "tag": "blocked" } ], "dns": { "servers": [ "https+local://1.1.1.1/dns-query", "1.1.1.1", "1.0.0.1", "8.8.8.8", "8.8.4.4", "localhost" ] }, "routing": { "domainStrategy": "AsIs", "rules": [ { "type": "field", "inboundTag": [ "VLESS-in" ], "outboundTag": "direct" } ] } } |
更新:https://github.com/v2fly/fhs-install-v2ray
service v2ray restart #重启V2Ray服务
service v2ray status #查看v2ray是否运行
本文出自E星期五的博客,转载时请注明出处及相应链接。
本文永久链接: https://exqw.com/archives/1223.html