Skip to content

Instantly share code, notes, and snippets.

@megrxu megrxu/client-config.json

Last active Jul 8, 2020
Embed
What would you like to do?
v2ray | WebSocket + VMess + HTTPS
{
"inbounds": [{
"port": 1080,
"listen": "127.0.0.1",
"protocol": "socks",
"settings": {
"udp": false
}
}],
"outbounds": [{
"protocol": "vmess",
"settings": {
"vnext": [{
"address": "example.com",
"port": 443,
"users": [{ "id": "your-uuid" }]
}]
},
"streamSettings": {
"network": "ws",
"security": "tls",
"wsSettings": {
"path": "/ray"
}
}
},{
"protocol": "dns",
"settings": {
"network": "tcp",
"address": "1.1.1.1",
"port": 53
}
}]
}
server {
listen 443 ssl;
ssl_certificate /etc/v2ray/v2ray.crt;
ssl_certificate_key /etc/v2ray/v2ray.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
server_name example.com;
location /ray {
proxy_redirect off;
proxy_pass http://127.0.0.1:12345/ray;
proxy_http_version 1.1;
proxy_set_header Host "example.domain";
proxy_set_header Connection "Upgrade";
proxy_set_header Upgrade "WebSocket";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_intercept_errors on;
}
location / {
return 204;
}
}
{
"inbounds": [
{
"port": 12345,
"listen":"127.0.0.1",
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "your-uuid"
}
]
},
"streamSettings": {
"network": "ws",
"wsSettings": {
"path": "/ray"
}
}
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {}
}
]
}
@olegblecher

This comment has been minimized.

Copy link

olegblecher commented Oct 16, 2019

Thank you, this is really helpful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.