mirror of
				https://github.com/v2fly/v2ray-examples.git
				synced 2025-11-04 20:05:39 +08:00 
			
		
		
		
	add http/2 config
This commit is contained in:
		
							
								
								
									
										0
									
								
								websocket+Nginx+TLS/Nginx.config
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										0
									
								
								websocket+Nginx+TLS/Nginx.config
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
								
								
									
										132
									
								
								websocket+Nginx+TLS/config_client.json
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										132
									
								
								websocket+Nginx+TLS/config_client.json
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							@@ -1,132 +1,132 @@
 | 
			
		||||
{
 | 
			
		||||
  "outbound": {
 | 
			
		||||
    "protocol": "freedom", 
 | 
			
		||||
    "settings": { }, 
 | 
			
		||||
    "protocol": "freedom",
 | 
			
		||||
    "settings": {},
 | 
			
		||||
    "tag": "direct"
 | 
			
		||||
  }, 
 | 
			
		||||
  },
 | 
			
		||||
  "inboundDetour": [
 | 
			
		||||
    {
 | 
			
		||||
      "port": 1086, 
 | 
			
		||||
      "listen": "127.0.0.1", 
 | 
			
		||||
      "protocol": "socks", 
 | 
			
		||||
      "port": 1086,
 | 
			
		||||
      "listen": "127.0.0.1",
 | 
			
		||||
      "protocol": "socks",
 | 
			
		||||
      "settings": {
 | 
			
		||||
        "auth": "noauth", 
 | 
			
		||||
        "timeout": 300, 
 | 
			
		||||
        "auth": "noauth",
 | 
			
		||||
        "timeout": 300,
 | 
			
		||||
        "udp": true
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  ], 
 | 
			
		||||
  ],
 | 
			
		||||
  "outboundDetour": [
 | 
			
		||||
    {
 | 
			
		||||
      "mux": {
 | 
			
		||||
        "concurrency": 6, 
 | 
			
		||||
        "concurrency": 6,
 | 
			
		||||
        "enabled": true
 | 
			
		||||
      }, 
 | 
			
		||||
      "protocol": "vmess", 
 | 
			
		||||
      },
 | 
			
		||||
      "protocol": "vmess",
 | 
			
		||||
      "settings": {
 | 
			
		||||
        "vnext": [
 | 
			
		||||
          {
 | 
			
		||||
            "users": [
 | 
			
		||||
              {
 | 
			
		||||
                "id": "97c0ec9c-dc4e-11e7-9296-cec278b6b50a", 
 | 
			
		||||
                "alterId": 0, 
 | 
			
		||||
                "id": "97c0ec9c-dc4e-11e7-9296-cec278b6b50a",
 | 
			
		||||
                "alterId": 0,
 | 
			
		||||
                "security": "aes-128-cfb"
 | 
			
		||||
              }
 | 
			
		||||
            ], 
 | 
			
		||||
            "address": "domain.Name", 
 | 
			
		||||
            ],
 | 
			
		||||
            "address": "domain.Name",
 | 
			
		||||
            "port": 443
 | 
			
		||||
          }
 | 
			
		||||
        ]
 | 
			
		||||
      }, 
 | 
			
		||||
      },
 | 
			
		||||
      "streamSettings": {
 | 
			
		||||
        "tlsSettings": {
 | 
			
		||||
          "allowInsecure": false
 | 
			
		||||
        }, 
 | 
			
		||||
        },
 | 
			
		||||
        "wsSettings": {
 | 
			
		||||
          "headers": {
 | 
			
		||||
            "Host": "domain.Name"
 | 
			
		||||
          }, 
 | 
			
		||||
          },
 | 
			
		||||
          "path": "/PATH/"
 | 
			
		||||
        }, 
 | 
			
		||||
        "network": "ws", 
 | 
			
		||||
        },
 | 
			
		||||
        "network": "ws",
 | 
			
		||||
        "security": "tls"
 | 
			
		||||
      }, 
 | 
			
		||||
      },
 | 
			
		||||
      "tag": "proxy"
 | 
			
		||||
    }, 
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "protocol": "blackhole", 
 | 
			
		||||
      "settings": { }, 
 | 
			
		||||
      "protocol": "blackhole",
 | 
			
		||||
      "settings": {},
 | 
			
		||||
      "tag": "block"
 | 
			
		||||
    }
 | 
			
		||||
  ], 
 | 
			
		||||
  ],
 | 
			
		||||
  "dns": {
 | 
			
		||||
    "servers": [
 | 
			
		||||
      "8.8.8.8", 
 | 
			
		||||
      "8.8.8.8",
 | 
			
		||||
      "8.8.4.4"
 | 
			
		||||
    ]
 | 
			
		||||
  }, 
 | 
			
		||||
  },
 | 
			
		||||
  "inbound": {
 | 
			
		||||
    "port": 1087, 
 | 
			
		||||
    "listen": "127.0.0.1", 
 | 
			
		||||
    "protocol": "http", 
 | 
			
		||||
    "port": 1087,
 | 
			
		||||
    "listen": "127.0.0.1",
 | 
			
		||||
    "protocol": "http",
 | 
			
		||||
    "settings": {
 | 
			
		||||
      "timeout": 300
 | 
			
		||||
    }
 | 
			
		||||
  }, 
 | 
			
		||||
  },
 | 
			
		||||
  "routing": {
 | 
			
		||||
    "settings": {
 | 
			
		||||
      "rules": [
 | 
			
		||||
        {
 | 
			
		||||
          "type": "field", 
 | 
			
		||||
          "type": "field",
 | 
			
		||||
          "domain": [
 | 
			
		||||
            "geosite:cn"
 | 
			
		||||
          ], 
 | 
			
		||||
          ],
 | 
			
		||||
          "outboundTag": "direct"
 | 
			
		||||
        }, 
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
          "type": "field", 
 | 
			
		||||
          "type": "field",
 | 
			
		||||
          "domain": [
 | 
			
		||||
            "google", 
 | 
			
		||||
            "facebook", 
 | 
			
		||||
            "youtube", 
 | 
			
		||||
            "twitter", 
 | 
			
		||||
            "instagram", 
 | 
			
		||||
            "gmail", 
 | 
			
		||||
            "domain:twimg.com", 
 | 
			
		||||
            "google",
 | 
			
		||||
            "facebook",
 | 
			
		||||
            "youtube",
 | 
			
		||||
            "twitter",
 | 
			
		||||
            "instagram",
 | 
			
		||||
            "gmail",
 | 
			
		||||
            "domain:twimg.com",
 | 
			
		||||
            "domain:t.co"
 | 
			
		||||
          ], 
 | 
			
		||||
          ],
 | 
			
		||||
          "outboundTag": "proxy"
 | 
			
		||||
        }, 
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
          "type": "field", 
 | 
			
		||||
          "type": "field",
 | 
			
		||||
          "ip": [
 | 
			
		||||
            "8.8.8.8/32", 
 | 
			
		||||
            "8.8.4.4/32", 
 | 
			
		||||
            "91.108.56.0/22", 
 | 
			
		||||
            "91.108.4.0/22", 
 | 
			
		||||
            "109.239.140.0/24", 
 | 
			
		||||
            "149.154.164.0/22", 
 | 
			
		||||
            "91.108.56.0/23", 
 | 
			
		||||
            "67.198.55.0/24", 
 | 
			
		||||
            "149.154.168.0/22", 
 | 
			
		||||
            "8.8.8.8/32",
 | 
			
		||||
            "8.8.4.4/32",
 | 
			
		||||
            "91.108.56.0/22",
 | 
			
		||||
            "91.108.4.0/22",
 | 
			
		||||
            "109.239.140.0/24",
 | 
			
		||||
            "149.154.164.0/22",
 | 
			
		||||
            "91.108.56.0/23",
 | 
			
		||||
            "67.198.55.0/24",
 | 
			
		||||
            "149.154.168.0/22",
 | 
			
		||||
            "149.154.172.0/22"
 | 
			
		||||
          ], 
 | 
			
		||||
          ],
 | 
			
		||||
          "outboundTag": "proxy"
 | 
			
		||||
        }, 
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
          "type": "field", 
 | 
			
		||||
          "type": "field",
 | 
			
		||||
          "ip": [
 | 
			
		||||
            "192.168.0.0/16", 
 | 
			
		||||
            "10.0.0.0/8", 
 | 
			
		||||
            "172.16.0.0/12", 
 | 
			
		||||
            "127.0.0.0/8", 
 | 
			
		||||
            "192.168.0.0/16",
 | 
			
		||||
            "10.0.0.0/8",
 | 
			
		||||
            "172.16.0.0/12",
 | 
			
		||||
            "127.0.0.0/8",
 | 
			
		||||
            "geoip:cn"
 | 
			
		||||
          ], 
 | 
			
		||||
          ],
 | 
			
		||||
          "outboundTag": "direct"
 | 
			
		||||
        }
 | 
			
		||||
      ], 
 | 
			
		||||
      ],
 | 
			
		||||
      "domainStrategy": "IPIfNonMatch"
 | 
			
		||||
    }, 
 | 
			
		||||
    },
 | 
			
		||||
    "strategy": "rules"
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										0
									
								
								websocket+Nginx+TLS/config_server.json
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										0
									
								
								websocket+Nginx+TLS/config_server.json
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
		Reference in New Issue
	
	Block a user