跳转到内容
shoes

http2-proxy.yaml

所有示例

使用前请修改地址、凭据、证书路径和其他部署相关的值。这是完整的源文件,但不保证未经修改即可在你的机器上运行。请阅读文件中的注释了解前置条件,然后对修改后的文件运行 shoes check。

examples/http2-proxy.yaml
# HTTPS proxy listener accepting H2 CONNECT and legacy HTTP/1 clients.
- address: "0.0.0.0:8443"
protocol:
type: tls
default_tls_target:
cert: cert.pem
key: key.pem
alpn_protocols: [h2, http/1.1]
protocol:
type: http
username: user
password: replace-me
# Local HTTP entry point forwarding through an H2 HTTPS proxy.
- address: "0.0.0.0:8080"
protocol:
type: http
username: local-user
password: replace-local-password
rules:
- mask: "0.0.0.0/0"
action: allow
client_chain:
- address: "proxy.example.com:8443"
protocol:
type: tls
sni_hostname: proxy.example.com
alpn_protocols: [h2]
protocol:
type: http
http_version: h2
username: user
password: replace-me

查看此修订版本的源文件