docker - traefik tls cli parameters
问题描述
Are there cli parameters for file parameters certFile and keyFile for docker:
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[[entryPoints.https.tls.certificates]]
certFile = "examples/traefik.crt"
keyFile = "examples/traefik.key"
I need it because I can not use let's encript and I have wildcard sertificate (*.domain.com) which I want to use.
Thank you.
解决方案
来自https://community.containo.us/t/traefik-tls-cli-parameters/1564
你好,
您必须使用 CLI 定义您的入口点:
traefik:
image: traefik:v1.7.14
command:
- "--entryPoints=Name:http Address::80 Redirect.EntryPoint:https"
- "--entryPoints=Name:https Address::443 TLS:/examples/traefik.crt,/examples/traefik.key"
# ...
https://docs.traefik.io/v1.7/configuration/entrypoints/#all-available-options
推荐阅读
- postman - 通过 API 从亚马逊 MWS 暂存器获取销售订单
- ckan - 如何更改 CKAN 默认 css
- java - log4j 问题:将 logg 重定向到许多文件
- python - 用python中另一个函数的参数调用一个函数
- sql - 如何基于postgres中的另一列聚合一列
- spring-cloud-stream - 从 spring-cloud-stream app starter 修改消息正文
- validation - 自定义 Excel 数据验证公式将输入限制为时间、空白或“-”
- excel - 使用 Delphi 的 OleObject 在 Office 365 和 Office 2013 中的工作方式不同
- php - 如果 url 末尾不存在扩展名(如 .png、.jpg),如何将用户从特定文件夹重定向到另一个位置
- vba - 带有图片框和计时器的 Visual Basic 循环图像