mirror of
				https://github.com/XTLS/Xray-examples.git
				synced 2025-11-04 11:55:34 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			216 B
		
	
	
	
		
			Caddyfile
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			216 B
		
	
	
	
		
			Caddyfile
		
	
	
	
	
	
example.com {
 | 
						|
	@grpc {
 | 
						|
		protocol grpc
 | 
						|
		path  # 填写 /你的 ServiceName/*
 | 
						|
	}
 | 
						|
	reverse_proxy @grpc unix//dev/shm/Xray-Trojan-gRPC.socket {
 | 
						|
		transport http {
 | 
						|
			versions h2c
 | 
						|
		}
 | 
						|
	}
 | 
						|
	root * /var/www
 | 
						|
	file_server
 | 
						|
}
 |