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:
		
							
								
								
									
										75
									
								
								http/config_client.json
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										75
									
								
								http/config_client.json
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							@@ -57,15 +57,19 @@
 | 
			
		||||
      "enabled": true
 | 
			
		||||
    },
 | 
			
		||||
    "settings": {
 | 
			
		||||
      "vnext": [{
 | 
			
		||||
        "users": [{
 | 
			
		||||
          "alterId": 100,
 | 
			
		||||
          "security": "aes-128-gcm",
 | 
			
		||||
          "id": "e2b39869-7e9e-411b-a561-00904419bed9"
 | 
			
		||||
        }],
 | 
			
		||||
        "port": 1234,
 | 
			
		||||
        "address": "Your_IP_Address"
 | 
			
		||||
      }]
 | 
			
		||||
      "vnext": [
 | 
			
		||||
        {
 | 
			
		||||
          "users": [
 | 
			
		||||
            {
 | 
			
		||||
              "alterId": 100,
 | 
			
		||||
              "security": "aes-128-gcm",
 | 
			
		||||
              "id": "e2b39869-7e9e-411b-a561-00904419bed9"
 | 
			
		||||
            }
 | 
			
		||||
          ],
 | 
			
		||||
          "port": 1234,
 | 
			
		||||
          "address": "Your_IP_Address"
 | 
			
		||||
        }
 | 
			
		||||
      ]
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  "log": {
 | 
			
		||||
@@ -73,7 +77,8 @@
 | 
			
		||||
    "loglevel": "info",
 | 
			
		||||
    "error": ""
 | 
			
		||||
  },
 | 
			
		||||
  "outboundDetour": [{
 | 
			
		||||
  "outboundDetour": [
 | 
			
		||||
    {
 | 
			
		||||
      "tag": "direct",
 | 
			
		||||
      "protocol": "freedom",
 | 
			
		||||
      "settings": {
 | 
			
		||||
@@ -105,29 +110,31 @@
 | 
			
		||||
  "inboundDetour": null,
 | 
			
		||||
  "routing": {
 | 
			
		||||
    "settings": {
 | 
			
		||||
      "rules": [{
 | 
			
		||||
        "ip": [
 | 
			
		||||
          "0.0.0.0/8",
 | 
			
		||||
          "10.0.0.0/8",
 | 
			
		||||
          "100.64.0.0/10",
 | 
			
		||||
          "127.0.0.0/8",
 | 
			
		||||
          "169.254.0.0/16",
 | 
			
		||||
          "172.16.0.0/12",
 | 
			
		||||
          "192.0.0.0/24",
 | 
			
		||||
          "192.0.2.0/24",
 | 
			
		||||
          "192.168.0.0/16",
 | 
			
		||||
          "198.18.0.0/15",
 | 
			
		||||
          "198.51.100.0/24",
 | 
			
		||||
          "203.0.113.0/24",
 | 
			
		||||
          "::1/128",
 | 
			
		||||
          "fc00::/7",
 | 
			
		||||
          "fe80::/10"
 | 
			
		||||
        ],
 | 
			
		||||
        "domain": null,
 | 
			
		||||
        "type": "field",
 | 
			
		||||
        "port": null,
 | 
			
		||||
        "outboundTag": "direct"
 | 
			
		||||
      }],
 | 
			
		||||
      "rules": [
 | 
			
		||||
        {
 | 
			
		||||
          "ip": [
 | 
			
		||||
            "0.0.0.0/8",
 | 
			
		||||
            "10.0.0.0/8",
 | 
			
		||||
            "100.64.0.0/10",
 | 
			
		||||
            "127.0.0.0/8",
 | 
			
		||||
            "169.254.0.0/16",
 | 
			
		||||
            "172.16.0.0/12",
 | 
			
		||||
            "192.0.0.0/24",
 | 
			
		||||
            "192.0.2.0/24",
 | 
			
		||||
            "192.168.0.0/16",
 | 
			
		||||
            "198.18.0.0/15",
 | 
			
		||||
            "198.51.100.0/24",
 | 
			
		||||
            "203.0.113.0/24",
 | 
			
		||||
            "::1/128",
 | 
			
		||||
            "fc00::/7",
 | 
			
		||||
            "fe80::/10"
 | 
			
		||||
          ],
 | 
			
		||||
          "domain": null,
 | 
			
		||||
          "type": "field",
 | 
			
		||||
          "port": null,
 | 
			
		||||
          "outboundTag": "direct"
 | 
			
		||||
        }
 | 
			
		||||
      ],
 | 
			
		||||
      "domainStrategy": "IPIfNonMatch"
 | 
			
		||||
    },
 | 
			
		||||
    "strategy": "rules"
 | 
			
		||||
@@ -139,4 +146,4 @@
 | 
			
		||||
      "localhost"
 | 
			
		||||
    ]
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										74
									
								
								http/config_server.json
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										74
									
								
								http/config_server.json
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							@@ -11,11 +11,13 @@
 | 
			
		||||
    "loglevel": "info",
 | 
			
		||||
    "error": "/var/log/v2ray/error.log"
 | 
			
		||||
  },
 | 
			
		||||
  "outboundDetour": [{
 | 
			
		||||
    "tag": "blocked",
 | 
			
		||||
    "protocol": "blackhole",
 | 
			
		||||
    "settings": null
 | 
			
		||||
  }],
 | 
			
		||||
  "outboundDetour": [
 | 
			
		||||
    {
 | 
			
		||||
      "tag": "blocked",
 | 
			
		||||
      "protocol": "blackhole",
 | 
			
		||||
      "settings": null
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "inbound": {
 | 
			
		||||
    "streamSettings": {
 | 
			
		||||
      "network": "tcp",
 | 
			
		||||
@@ -71,11 +73,13 @@
 | 
			
		||||
    "settings": {
 | 
			
		||||
      "ip": null,
 | 
			
		||||
      "udp": true,
 | 
			
		||||
      "clients": [{
 | 
			
		||||
        "alterId": 100,
 | 
			
		||||
        "security": "aes-128-gcm",
 | 
			
		||||
        "id": "e2b39869-7e9e-411b-a561-00904419bed9"
 | 
			
		||||
      }],
 | 
			
		||||
      "clients": [
 | 
			
		||||
        {
 | 
			
		||||
          "alterId": 100,
 | 
			
		||||
          "security": "aes-128-gcm",
 | 
			
		||||
          "id": "e2b39869-7e9e-411b-a561-00904419bed9"
 | 
			
		||||
        }
 | 
			
		||||
      ],
 | 
			
		||||
      "auth": null
 | 
			
		||||
    },
 | 
			
		||||
    "protocol": "vmess",
 | 
			
		||||
@@ -85,32 +89,34 @@
 | 
			
		||||
  "inboundDetour": null,
 | 
			
		||||
  "routing": {
 | 
			
		||||
    "settings": {
 | 
			
		||||
      "rules": [{
 | 
			
		||||
        "ip": [
 | 
			
		||||
          "0.0.0.0/8",
 | 
			
		||||
          "10.0.0.0/8",
 | 
			
		||||
          "100.64.0.0/10",
 | 
			
		||||
          "127.0.0.0/8",
 | 
			
		||||
          "169.254.0.0/16",
 | 
			
		||||
          "172.16.0.0/12",
 | 
			
		||||
          "192.0.0.0/24",
 | 
			
		||||
          "192.0.2.0/24",
 | 
			
		||||
          "192.168.0.0/16",
 | 
			
		||||
          "198.18.0.0/15",
 | 
			
		||||
          "198.51.100.0/24",
 | 
			
		||||
          "203.0.113.0/24",
 | 
			
		||||
          "::1/128",
 | 
			
		||||
          "fc00::/7",
 | 
			
		||||
          "fe80::/10"
 | 
			
		||||
        ],
 | 
			
		||||
        "domain": null,
 | 
			
		||||
        "type": "field",
 | 
			
		||||
        "port": null,
 | 
			
		||||
        "outboundTag": "blocked"
 | 
			
		||||
      }],
 | 
			
		||||
      "rules": [
 | 
			
		||||
        {
 | 
			
		||||
          "ip": [
 | 
			
		||||
            "0.0.0.0/8",
 | 
			
		||||
            "10.0.0.0/8",
 | 
			
		||||
            "100.64.0.0/10",
 | 
			
		||||
            "127.0.0.0/8",
 | 
			
		||||
            "169.254.0.0/16",
 | 
			
		||||
            "172.16.0.0/12",
 | 
			
		||||
            "192.0.0.0/24",
 | 
			
		||||
            "192.0.2.0/24",
 | 
			
		||||
            "192.168.0.0/16",
 | 
			
		||||
            "198.18.0.0/15",
 | 
			
		||||
            "198.51.100.0/24",
 | 
			
		||||
            "203.0.113.0/24",
 | 
			
		||||
            "::1/128",
 | 
			
		||||
            "fc00::/7",
 | 
			
		||||
            "fe80::/10"
 | 
			
		||||
          ],
 | 
			
		||||
          "domain": null,
 | 
			
		||||
          "type": "field",
 | 
			
		||||
          "port": null,
 | 
			
		||||
          "outboundTag": "blocked"
 | 
			
		||||
        }
 | 
			
		||||
      ],
 | 
			
		||||
      "domainStrategy": null
 | 
			
		||||
    },
 | 
			
		||||
    "strategy": "rules"
 | 
			
		||||
  },
 | 
			
		||||
  "dns": null
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user