如何configurationdockerregistry使用让我们encryption

从dockerregistry文件我可以看到,configuration应该是这样的:

http: addr: 0.0.0.0:5000 host: https://myregistryaddress.org tls: certificate: /path/to/x509/public key: /path/to/x509/private letsencrypt: cachefile: /path/to/cache-file email: [email protected] 

我用这样的命令启动registry:

 docker run -d -p 443:5000 \ --name registry \ --restart=always \ -v /home/ubuntu/auth:/auth \ -e REGISTRY_AUTH=htpasswd \ -e REGISTRY_AUTH_HTPASSWD_REALM=RegistryRealm \ -e REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd \ registry:2 

证书和密钥的path是必需的,但我不知道path或文件名是什么 – 因为极致代理这样做。

我是否需要首次手动获取证书和密钥? host的configuration值用于确定证书的域,还是应该指定其他位置?