mirror of
				https://github.com/v2fly/v2ray-examples.git
				synced 2025-11-04 11:55:38 +08:00 
			
		
		
		
	Update config_server.json
This commit is contained in:
		@@ -1,122 +1,73 @@
 | 
			
		||||
{
 | 
			
		||||
  "outbound": {
 | 
			
		||||
    "streamSettings": null,
 | 
			
		||||
    "tag": null,
 | 
			
		||||
    "protocol": "freedom",
 | 
			
		||||
    "mux": null,
 | 
			
		||||
    "settings": null
 | 
			
		||||
  },
 | 
			
		||||
  "log": {
 | 
			
		||||
    "access": "/var/log/v2ray/access.log",
 | 
			
		||||
    "loglevel": "info",
 | 
			
		||||
    "error": "/var/log/v2ray/error.log"
 | 
			
		||||
  },
 | 
			
		||||
  "outboundDetour": [
 | 
			
		||||
    {
 | 
			
		||||
      "tag": "blocked",
 | 
			
		||||
      "protocol": "blackhole",
 | 
			
		||||
      "settings": null
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "inbound": {
 | 
			
		||||
    "streamSettings": {
 | 
			
		||||
      "network": "tcp",
 | 
			
		||||
      "kcpSettings": null,
 | 
			
		||||
      "wsSettings": null,
 | 
			
		||||
      "tcpSettings": {
 | 
			
		||||
        "header": {
 | 
			
		||||
          "request": {
 | 
			
		||||
            "path": [
 | 
			
		||||
              "/"
 | 
			
		||||
            ],
 | 
			
		||||
            "version": "1.1",
 | 
			
		||||
            "method": "GET",
 | 
			
		||||
            "headers": {
 | 
			
		||||
              "Host": "cloudflare.com",
 | 
			
		||||
              "Connection": [
 | 
			
		||||
                "keep-alive"
 | 
			
		||||
              ],
 | 
			
		||||
              "Accept-Encoding": [
 | 
			
		||||
                "gzip, deflate"
 | 
			
		||||
              ],
 | 
			
		||||
              "Pragma": "no-cache",
 | 
			
		||||
              "User-Agent": [
 | 
			
		||||
                "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36",
 | 
			
		||||
                "Mozilla/5.0 (iPhone; CPU iPhone OS 10_0_2 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/53.0.2785.109 Mobile/14A456 Safari/601.1.46"
 | 
			
		||||
              ]
 | 
			
		||||
    "log": {
 | 
			
		||||
        "loglevel": "warning"
 | 
			
		||||
    },
 | 
			
		||||
    "routing": {
 | 
			
		||||
        "domainStrategy": "AsIs",
 | 
			
		||||
        "rules": [
 | 
			
		||||
            {
 | 
			
		||||
                "type": "field",
 | 
			
		||||
                "ip": [
 | 
			
		||||
                    "geoip:private"
 | 
			
		||||
                ],
 | 
			
		||||
                "outboundTag": "block"
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "type": "http",
 | 
			
		||||
          "response": {
 | 
			
		||||
            "status": "200",
 | 
			
		||||
            "headers": {
 | 
			
		||||
              "Transfer-Encoding": [
 | 
			
		||||
                "chunked"
 | 
			
		||||
              ],
 | 
			
		||||
              "Connection": [
 | 
			
		||||
                "keep-alive"
 | 
			
		||||
              ],
 | 
			
		||||
              "Content-Type": [
 | 
			
		||||
                "application/octet-stream",
 | 
			
		||||
                "video/mpeg"
 | 
			
		||||
              ],
 | 
			
		||||
              "Pragma": "no-cache"
 | 
			
		||||
        ]
 | 
			
		||||
    },
 | 
			
		||||
    "inbounds": [
 | 
			
		||||
        {
 | 
			
		||||
            "listen": "0.0.0.0",
 | 
			
		||||
            "port": 1234,
 | 
			
		||||
            "protocol": "vmess",
 | 
			
		||||
            "settings": {
 | 
			
		||||
                "clients": [
 | 
			
		||||
                    {
 | 
			
		||||
                        "id": "",
 | 
			
		||||
                        "alterId": 4
 | 
			
		||||
                    }
 | 
			
		||||
                ],
 | 
			
		||||
                "disableInsecureEncryption": true
 | 
			
		||||
            },
 | 
			
		||||
            "reason": "OK",
 | 
			
		||||
            "version": "1.1"
 | 
			
		||||
          }
 | 
			
		||||
            "streamSettings": {
 | 
			
		||||
                "network": "tcp",
 | 
			
		||||
                "tcpSettings": {
 | 
			
		||||
                    "header": {
 | 
			
		||||
                        "type": "http",
 | 
			
		||||
                        "response": {
 | 
			
		||||
                            "version": "1.1",
 | 
			
		||||
                            "status": "200",
 | 
			
		||||
                            "reason": "OK",
 | 
			
		||||
                            "headers": {
 | 
			
		||||
                                "Content-Type": [
 | 
			
		||||
                                    "application/octet-stream",
 | 
			
		||||
                                    "video/mpeg",
 | 
			
		||||
                                    "application/x-msdownload",
 | 
			
		||||
                                    "text/html",
 | 
			
		||||
                                    "application/x-shockwave-flash"
 | 
			
		||||
                                ],
 | 
			
		||||
                                "Transfer-Encoding": [
 | 
			
		||||
                                    "chunked"
 | 
			
		||||
                                ],
 | 
			
		||||
                                "Connection": [
 | 
			
		||||
                                    "keep-alive"
 | 
			
		||||
                                ],
 | 
			
		||||
                                "Pragma": "no-cache"
 | 
			
		||||
                            }
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                },
 | 
			
		||||
                "security": "none"
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "tlsSettings": {},
 | 
			
		||||
      "security": ""
 | 
			
		||||
    },
 | 
			
		||||
    "settings": {
 | 
			
		||||
      "ip": null,
 | 
			
		||||
      "udp": true,
 | 
			
		||||
      "clients": [
 | 
			
		||||
    ],
 | 
			
		||||
    "outbounds": [
 | 
			
		||||
        {
 | 
			
		||||
          "alterId": 100,
 | 
			
		||||
          "security": "aes-128-gcm",
 | 
			
		||||
          "id": "e2b39869-7e9e-411b-a561-00904419bed9"
 | 
			
		||||
        }
 | 
			
		||||
      ],
 | 
			
		||||
      "auth": null
 | 
			
		||||
    },
 | 
			
		||||
    "protocol": "vmess",
 | 
			
		||||
    "port": 1234,
 | 
			
		||||
    "listen": null
 | 
			
		||||
  },
 | 
			
		||||
  "inboundDetour": null,
 | 
			
		||||
  "routing": {
 | 
			
		||||
    "settings": {
 | 
			
		||||
      "rules": [
 | 
			
		||||
            "protocol": "freedom",
 | 
			
		||||
            "tag": "direct"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
          "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"
 | 
			
		||||
            "protocol": "blackhole",
 | 
			
		||||
            "tag": "block"
 | 
			
		||||
        }
 | 
			
		||||
      ],
 | 
			
		||||
      "domainStrategy": null
 | 
			
		||||
    },
 | 
			
		||||
    "strategy": "rules"
 | 
			
		||||
  },
 | 
			
		||||
  "dns": null
 | 
			
		||||
}
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user