mirror of
				https://github.com/v2fly/v2ray-examples.git
				synced 2025-11-04 20:05:39 +08:00 
			
		
		
		
	edit README
This commit is contained in:
		
							
								
								
									
										10
									
								
								websocket+caddy+tls/Caddyfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								websocket+caddy+tls/Caddyfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
https://example.domain {
 | 
			
		||||
 root /usr/local/caddy/www/aria2
 | 
			
		||||
 timeouts none
 | 
			
		||||
 tls kiri_so@outlook.com
 | 
			
		||||
 gzip
 | 
			
		||||
 proxy /test localhost:1234 {
 | 
			
		||||
  websocket
 | 
			
		||||
  header_upstream -Origin
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										113
									
								
								websocket+caddy+tls/config_client.json
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										113
									
								
								websocket+caddy+tls/config_client.json
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,113 @@
 | 
			
		||||
{
 | 
			
		||||
    "outbound": {
 | 
			
		||||
     "streamSettings": {
 | 
			
		||||
      "network": "ws", 
 | 
			
		||||
      "kcpSettings": null, 
 | 
			
		||||
      "wsSettings": {
 | 
			
		||||
       "headers": {
 | 
			
		||||
        "host": "example.domain"
 | 
			
		||||
       }, 
 | 
			
		||||
       "path": "/test" 
 | 
			
		||||
      }, 
 | 
			
		||||
      "tcpSettings": null, 
 | 
			
		||||
      "tlsSettings": {}, 
 | 
			
		||||
      "security": "tls"
 | 
			
		||||
     }, 
 | 
			
		||||
     "tag": "agentout", 
 | 
			
		||||
     "protocol": "vmess", 
 | 
			
		||||
     "mux": {
 | 
			
		||||
      "enabled": true,
 | 
			
		||||
      "concurrency": 8
 | 
			
		||||
     }, 
 | 
			
		||||
     "settings": {
 | 
			
		||||
      "vnext": [
 | 
			
		||||
       {
 | 
			
		||||
        "users": [
 | 
			
		||||
         {
 | 
			
		||||
          "alterId": 100, 
 | 
			
		||||
          "security": "aes-128-gcm", 
 | 
			
		||||
          "id": "e2b39869-7e9e-411b-a561-00904419bed9"
 | 
			
		||||
         }
 | 
			
		||||
        ], 
 | 
			
		||||
        "port": 443, 
 | 
			
		||||
        "address": "example.domain"
 | 
			
		||||
       }
 | 
			
		||||
      ]
 | 
			
		||||
     }
 | 
			
		||||
    }, 
 | 
			
		||||
    "log": {
 | 
			
		||||
     "access": "", 
 | 
			
		||||
     "loglevel": "info", 
 | 
			
		||||
     "error": ""
 | 
			
		||||
    }, 
 | 
			
		||||
    "outboundDetour": [
 | 
			
		||||
     {
 | 
			
		||||
      "tag": "direct", 
 | 
			
		||||
      "protocol": "freedom", 
 | 
			
		||||
      "settings": {
 | 
			
		||||
       "response": null
 | 
			
		||||
      }
 | 
			
		||||
     }, 
 | 
			
		||||
     {
 | 
			
		||||
      "tag": "blockout", 
 | 
			
		||||
      "protocol": "blackhole", 
 | 
			
		||||
      "settings": {
 | 
			
		||||
       "response": {
 | 
			
		||||
        "type": "http"
 | 
			
		||||
       }
 | 
			
		||||
      }
 | 
			
		||||
     }
 | 
			
		||||
    ], 
 | 
			
		||||
    "inbound": {
 | 
			
		||||
     "streamSettings": null, 
 | 
			
		||||
     "settings": {
 | 
			
		||||
      "ip": "127.0.0.1", 
 | 
			
		||||
      "udp": true, 
 | 
			
		||||
      "clients": null, 
 | 
			
		||||
      "auth": "noauth"
 | 
			
		||||
     }, 
 | 
			
		||||
     "protocol": "socks", 
 | 
			
		||||
     "port": 10086, 
 | 
			
		||||
     "listen": "0.0.0.0"
 | 
			
		||||
    }, 
 | 
			
		||||
    "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"
 | 
			
		||||
       }
 | 
			
		||||
      ], 
 | 
			
		||||
      "domainStrategy": "IPIfNonMatch"
 | 
			
		||||
     }, 
 | 
			
		||||
     "strategy": "rules"
 | 
			
		||||
    }, 
 | 
			
		||||
    "dns": {
 | 
			
		||||
     "servers": [
 | 
			
		||||
      "8.8.8.8", 
 | 
			
		||||
      "8.8.4.4", 
 | 
			
		||||
      "localhost"
 | 
			
		||||
     ]
 | 
			
		||||
    }
 | 
			
		||||
   }
 | 
			
		||||
   
 | 
			
		||||
							
								
								
									
										90
									
								
								websocket+caddy+tls/config_server.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										90
									
								
								websocket+caddy+tls/config_server.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,90 @@
 | 
			
		||||
{
 | 
			
		||||
 "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": "direct", 
 | 
			
		||||
   "protocol": "freedom", 
 | 
			
		||||
   "settings": null
 | 
			
		||||
  }, 
 | 
			
		||||
  {
 | 
			
		||||
   "tag": "blocked", 
 | 
			
		||||
   "protocol": "blackhole", 
 | 
			
		||||
   "settings": null
 | 
			
		||||
  }
 | 
			
		||||
 ], 
 | 
			
		||||
 "inbound": {
 | 
			
		||||
  "streamSettings": {
 | 
			
		||||
   "network": "ws", 
 | 
			
		||||
   "kcpSettings": null, 
 | 
			
		||||
   "wsSettings": {
 | 
			
		||||
    "headers": {
 | 
			
		||||
     "host": "example.domain"
 | 
			
		||||
    }, 
 | 
			
		||||
    "path": "/test", 
 | 
			
		||||
    "connectionReuse": true
 | 
			
		||||
   }, 
 | 
			
		||||
   "tcpSettings": null, 
 | 
			
		||||
   "tlsSettings": {}, 
 | 
			
		||||
   "security": ""
 | 
			
		||||
  }, 
 | 
			
		||||
  "settings": {
 | 
			
		||||
   "ip": null, 
 | 
			
		||||
   "udp": true, 
 | 
			
		||||
   "clients": [
 | 
			
		||||
    {
 | 
			
		||||
     "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": [
 | 
			
		||||
        {
 | 
			
		||||
         "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