https.yaml
使用前请修改地址、凭据、证书路径和其他部署相关的值。这是完整的源文件,但不保证未经修改即可在你的机器上运行。请阅读文件中的注释了解前置条件,然后对修改后的文件运行 shoes check。
# An HTTPS server with Basic Authentication.- address: 127.0.0.1:443 transport: tcp protocol: type: tls default_target: cert: cert.pem key: key.pem protocol: type: http username: secretuser password: secretpass rules: - mask: 1.2.3.4/32 action: allow override_address: 192.168.0.1 client_chain: direct - mask: 0.0.0.0/0 action: allow # Direct connection, don't forward requests through another proxy. client_chain: direct