mirror of
				https://github.com/v2fly/v2ray-examples.git
				synced 2025-11-04 03:45:39 +08:00 
			
		
		
		
	Create server.json (#7)
This commit is contained in:
		
							
								
								
									
										54
									
								
								VLESS+H2C+Caddy2/server.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										54
									
								
								VLESS+H2C+Caddy2/server.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,54 @@
 | 
			
		||||
{
 | 
			
		||||
  "log": {
 | 
			
		||||
    "loglevel": "warning"
 | 
			
		||||
  },
 | 
			
		||||
  "inbounds": [
 | 
			
		||||
    {
 | 
			
		||||
      "port": 2001,
 | 
			
		||||
      "listen": "127.0.0.1",
 | 
			
		||||
      "protocol": "vless",
 | 
			
		||||
      "settings": {
 | 
			
		||||
        "clients": [
 | 
			
		||||
          {
 | 
			
		||||
            "id": "",
 | 
			
		||||
            "email": "love@v2fly.org"
 | 
			
		||||
          }
 | 
			
		||||
        ]
 | 
			
		||||
      },
 | 
			
		||||
      "streamSettings": {
 | 
			
		||||
        "security": "none",
 | 
			
		||||
        "network": "h2",
 | 
			
		||||
        "httpSettings": {
 | 
			
		||||
          "path": "/path",
 | 
			
		||||
          "host": [
 | 
			
		||||
            "xx.com"
 | 
			
		||||
          ]
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "outbounds": [
 | 
			
		||||
    {
 | 
			
		||||
      "tag": "direct",
 | 
			
		||||
      "protocol": "freedom",
 | 
			
		||||
      "settings": {}
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "tag": "blocked",
 | 
			
		||||
      "protocol": "blackhole",
 | 
			
		||||
      "settings": {}
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "routing": {
 | 
			
		||||
    "domainStrategy": "AsIs",
 | 
			
		||||
    "rules": [
 | 
			
		||||
      {
 | 
			
		||||
        "type": "field",
 | 
			
		||||
        "ip": [
 | 
			
		||||
          "geoip:private"
 | 
			
		||||
        ],
 | 
			
		||||
        "outboundTag": "blocked"
 | 
			
		||||
      }
 | 
			
		||||
    ]
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
		Reference in New Issue
	
	Block a user