mirror of
				https://github.com/v2fly/v2ray-examples.git
				synced 2025-11-04 20:05:39 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			235 B
		
	
	
	
		
			Caddyfile
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			235 B
		
	
	
	
		
			Caddyfile
		
	
	
		
			Executable File
		
	
	
	
	
https://example.domain * {
 | 
						|
 gzip
 | 
						|
 tls kiri_so@outlook.com
 | 
						|
 proxy / https://www.baidu.com
 | 
						|
 log / stdout "{request}"
 | 
						|
 
 | 
						|
 rewrite {
 | 
						|
  if {host} is google.com
 | 
						|
  to /test
 | 
						|
 }
 | 
						|
 
 | 
						|
 proxy /test localhost:1234 {
 | 
						|
  websocket
 | 
						|
  without /test
 | 
						|
 } 
 | 
						|
}
 | 
						|
 |