跳转到内容
shoes

certificates_acme.yaml

所有示例

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

examples/certificates_acme.yaml
# Configure a domain you control and forward public TCP :80 to :8080.
# Read the staging CA's terms and replace terms_of_service with its exact URL.
# After staging succeeds, use the production directory and a NEW state_dir.
- certificate_source: public
type: acme
domains: [proxy.example.com]
directory_url: https://acme-staging-v02.api.letsencrypt.org/directory
state_dir: /var/lib/shoes/acme/staging-public
contacts: [mailto:operator@example.com]
terms_of_service: https://example.invalid/replace-with-accepted-ca-terms-url
challenge:
type: http01
listen: ["0.0.0.0:8080"]
# Alternatively, forward public TCP :443 to :8443 and use:
# challenge: {type: tls_alpn01}
- address: "0.0.0.0:8443"
protocol:
type: tls
tls_targets:
proxy.example.com:
certificate_source: public
protocol:
type: trojan
password: replace-with-a-strong-password
- address: "0.0.0.0:8443"
transport: quic
quic_settings:
certificate_source: public
protocol:
type: hysteria2
password: replace-with-a-strong-password

查看此修订版本的源文件