mirror of
				https://github.com/XTLS/Xray-examples.git
				synced 2025-11-04 03:45:34 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			264 B
		
	
	
	
		
			Caddyfile
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			264 B
		
	
	
	
		
			Caddyfile
		
	
	
	
	
	
xx.com {
 | 
						|
    log {
 | 
						|
        level DEBUG
 | 
						|
    }
 | 
						|
    root * /var/www
 | 
						|
    file_server
 | 
						|
    tls CA.crt priv.key # 换成你的证书和私钥,绝对路径
 | 
						|
    
 | 
						|
    reverse_proxy /path 127.0.0.1:2001 {
 | 
						|
        transport http {
 | 
						|
            versions h2c
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |