mirror of
				https://github.com/XTLS/Xray-examples.git
				synced 2025-11-04 20:05:34 +08:00 
			
		
		
		
	* add VLESS-TCP-XTLS-WS add reverse proxy examples add VLESS-TCP-XTLS-WS * Update README.md fix typo update 移除 client、bridge 配置中的 "allowInsecure": true 默认注释 portal.json 中仅转发内网流量的配置 update readme.md
		
			
				
	
	
		
			70 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			70 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
  "log": {
 | 
						|
    "loglevel": "warning"
 | 
						|
  },
 | 
						|
  "reverse": {
 | 
						|
    "bridges": [
 | 
						|
      {
 | 
						|
        "tag": "bridge",
 | 
						|
        "domain": "reverse.proxy"
 | 
						|
      }
 | 
						|
    ]
 | 
						|
  },
 | 
						|
  "outbounds": [
 | 
						|
    {
 | 
						|
      "tag": "interconn",
 | 
						|
      "protocol": "vless",
 | 
						|
      "settings": {
 | 
						|
        "vnext": [
 | 
						|
          {
 | 
						|
            "address": "reverse.example", // 换成你的域名或 IP
 | 
						|
            "port": 443,
 | 
						|
            "users": [
 | 
						|
              {
 | 
						|
                "id": "", // 填写你的 UUID
 | 
						|
                "encryption": "none",
 | 
						|
                "level": 0
 | 
						|
              }
 | 
						|
            ]
 | 
						|
          }
 | 
						|
        ]
 | 
						|
      },
 | 
						|
      "streamSettings": {
 | 
						|
        "network": "ws",
 | 
						|
        "security": "tls",
 | 
						|
        "tlsSettings": {
 | 
						|
          "serverName": "reverse.example" // 换成你的域名
 | 
						|
        },
 | 
						|
        "wsSettings": {
 | 
						|
          "path": "/interconn" //对应 portal 中 interconn 的 path
 | 
						|
        }
 | 
						|
      }
 | 
						|
    },
 | 
						|
    {
 | 
						|
      "protocol": "freedom",
 | 
						|
      "settings": {},
 | 
						|
      "tag": "out"
 | 
						|
    }
 | 
						|
  ],
 | 
						|
  "routing": {
 | 
						|
    "rules": [
 | 
						|
      {
 | 
						|
        "type": "field",
 | 
						|
        "inboundTag": [
 | 
						|
          "bridge"
 | 
						|
        ],
 | 
						|
        "domain": [
 | 
						|
          "full:reverse.proxy"
 | 
						|
        ],
 | 
						|
        "outboundTag": "interconn"
 | 
						|
      },
 | 
						|
      {
 | 
						|
        "type": "field",
 | 
						|
        "inboundTag": [
 | 
						|
          "bridge"
 | 
						|
        ],
 | 
						|
        "outboundTag": "out"
 | 
						|
      }
 | 
						|
    ]
 | 
						|
  }
 | 
						|
} |