# minimal example1[[host]]2bind="http://demo.com/"3target="https://127.0.0.1:9090/"4upstream="127.0.0.1:9090"56# example: http to https7#[[host]]8#bind="https://localhost"9#tlscert="default"10#target="http://www.baidu.com/"11#upstream="www.baidu.com:80"12#timeout=30001314# example: http to http15#[[host]]16#bind="http://demo.com"17#target="http://www.baidu.com/path/"18#upstream="www.baidu.com:80"19#timeout=30002021# example: https to https22#[[host]]23#bind="https://demo.com"24#tlscert="proxy.crt"25#tlskey="proxy.key"26#target="https://www.baidu.com/"27#upstream="www.baidu.com:443"28#timeout=30002930######################################################################31# All configuration keys of section [[host]].32# A [[host]] is a section.33# You can set multiple [[host]] for the different binding.34######################################################################35#[[host]]3637######################################################################38# 1.listen on http or https port in url,39# default http port is 80, https defalt https port is 443.40# 2.multiple binding elements split by space.41######################################################################42#bind="https://demo.com/ http://demo2.com/"4344######################################################################45# 1.the binding is https, you can set the certificate and key file.46# 2.tlscert is the https certificate file.47# 3.tlskey is the https certificate key file.48######################################################################49#tlscert="proxy.crt"50#tlskey="proxy.key"5152######################################################################53# 1.all requests to binding url will send to the target url.54# 2.you can set the target path FOO_PATH, or leave it empty.55# 3.the finally path send to taget is "/FOO_PATH/PATH", PATH is56# bind-path, if not set, it is empty.57# 4.the HOST HTTP header send to upstream is the host in target url.58######################################################################59#target="https://demo.com/FOO_PATH"6061######################################################################62# 1.you can set multiple upstreams.63# 2.proxy will select one upstream by the --lb-method rule.64# 3.multiple upstreams separated by space.65# 4.upstream host can be ip or domain, format is HOST:PORT.66######################################################################67#upstream="10.0.0.10:443 app.com:443"6869######################################################################70# 1.you can set some path access forbidden.71# 2."403 path" regex expression supported.72# 3.you can set mutiple path, it is a path array.73######################################################################74#403=["/admin","/auth","^/user/.*html$"]7576######################################################################77# 1.you can set the timeout milliseconds connect to target.78# 2."403 path" regex expression supported.79# 3.you can set mutiple path, it is a path array.80######################################################################81#timeout=30008283##########################################################################84# 1.you can set the alias name of binding.85# 2.the first element is bind to, it should be one element of bind value.86# 3.the else elements are alias host names, name format is HOST:PORT, it87# will be set in the HTTP header HOST send to the upstream.88##########################################################################89#bind-alias=["https://demo.com www.foo.com:443"]9091######################################################################92# 1.the request's path must be has a prefix in the bind-path array.93#bind-path=["/PATH"]9495969798