layer4-proxy/example-config.yaml

27 lines
545 B
YAML
Raw Normal View History

2021-10-21 08:43:59 +00:00
version: 1
log: info
servers:
example_server:
listen:
- "0.0.0.0:443"
- "[::]:443"
tls: true # Enable TLS features like SNI filtering
sni:
proxy.example.com: proxy
www.example.com: nginx
default: ban
proxy_server:
listen:
- "127.0.0.1:8081"
default: remote
2021-10-26 13:36:12 +00:00
kcp_server:
protocol: kcp # default TCP
listen:
- "127.0.0.1:8082"
default: echo
2021-10-21 08:43:59 +00:00
upstream:
nginx: "127.0.0.1:8080"
proxy: "127.0.0.1:1024"
2021-10-26 15:27:03 +00:00
remote: "www.remote.example.com:8082" # proxy to remote address