From 0c13b93f8425b5f6c7ce67e137275803d275b905 Mon Sep 17 00:00:00 2001 From: Dingjun Date: Tue, 8 Aug 2017 11:59:54 +0800 Subject: [PATCH] update config sample --- config.sample.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/config.sample.yaml b/config.sample.yaml index 6e3e14f..f0aa56a 100644 --- a/config.sample.yaml +++ b/config.sample.yaml @@ -1,13 +1,28 @@ -timeout: 10 +#timeout: 10 +# + +# default destination +# when no SNI name found +# or parse TLS HELLO message failed default: 127.0.0.1:8443 +# the port listen on +# can specify multiple ports listen: - 443 - 9999 +# forward rules +# exact match or wildcard match forward_rules: + # www.example.com forward to 127.0.0.1:8443 www.example.com: 127.0.0.1:8443 + + # b.example.com forward to 127.0.0.1:8541 b.example.com: 127.0.0.1:8541 + + # forward by SNI, wildcard + # ex: SNI a.example.com from port 9999 forward to a.example.com:443 "*:9999": "*:443"