[英]Traefik SSL without let's encrypt
有沒有辦法使用traefik(帶有docker swarm)和SSL,而無需“讓我們加密”。
讓我們加密支持非常棒( https://docs.traefik.io/user-guide/docker-and-lets-encrypt ),但是我不需要在我們組織中運行自己的CA時使用letencrypt。
有沒有一種方法可以將證書(.crt和.key)簡單地放置在某個地方,因為我們不需要生成證書(在文件夾中或作為秘密)。 你有什么想法嗎?
我們想做一個非常基本的設置,並在群集集群中有幾個容器,我們想按域來定位它們,例如: https : //foo.ourdomain.com和https://bar.ourdomain.com
謝謝您的幫助!
您可以掛載traefik的卷:
- ${USERDIR}/docker/traefik/acme/yourcrt.crt:/yourcrt.crt
- ${USERDIR}/docker/traefik/acme/yourcrt.key:/yourcrt.key
在您的docker-compose中,並在traffic.toml中引用它:
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[[entryPoints.https.tls.certificates]]
certFile = "/yourcrt.crt"
keyFile = "/yourcrt.key"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.