github.com/mholt/caddy-l4@v0.0.0-20241104153248-ec8fae209322/integration/caddyfile_adapt/gd_matcher_ssh.caddytest (about) 1 { 2 layer4 { 3 :443 { 4 @a ssh 5 route @a { 6 proxy localhost:22 7 } 8 route { 9 tls 10 proxy localhost:8080 11 } 12 } 13 } 14 } 15 ---------- 16 { 17 "apps": { 18 "layer4": { 19 "servers": { 20 "srv0": { 21 "listen": [ 22 ":443" 23 ], 24 "routes": [ 25 { 26 "match": [ 27 { 28 "ssh": {} 29 } 30 ], 31 "handle": [ 32 { 33 "handler": "proxy", 34 "upstreams": [ 35 { 36 "dial": [ 37 "localhost:22" 38 ] 39 } 40 ] 41 } 42 ] 43 }, 44 { 45 "handle": [ 46 { 47 "handler": "tls" 48 }, 49 { 50 "handler": "proxy", 51 "upstreams": [ 52 { 53 "dial": [ 54 "localhost:8080" 55 ] 56 } 57 ] 58 } 59 ] 60 } 61 ] 62 } 63 } 64 } 65 } 66 }