У меня есть кластер Docker Swarm. В этом кластере мне нужно настроить Traefik с точкой входа SSL. как только я применил свою конфигурацию к traefik, он получил некоторую ошибку. Пожалуйста, помогите мне решить эту проблему.
Вот мой файл .toml,
logLevel = "INFO"
[docker]
endpoint = "unix:///var/run/docker.sock"
exposedbydefault = false
[api]
dashboard =true
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[[entryPoints.https.tls.certificates]]
certFile = "/root/ssl/mi-synergy.com.crt"
keyFile = "/root/ssl/mi-synergy.com.key"
Вот мой файл стека
version: "3.7"
services:
traefik:
image: traefik:2.1.4
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /root/traefik.toml:/etc/traefik/traefik.toml
- /root/ssl:/root/ssl
networks:
- webgateway
- traefik
ports:
- 80:80
- 443:443
- 8080:8080
deploy:
mode: global
placement:
constraints:
- node.role == manager
update_config:
parallelism: 1
delay: 10s
restart_policy:
condition: on-failure
networks:
webgateway:
driver: overlay
traefik:
driver: overlay
Выдержка из журнала
[email protected] | 2020/02/25 14:29:58 command traefik error: field not found, node: redirect
[email protected] | 2020/02/25 14:30:06 command traefik error: field not found, node: redirect
[email protected] | 2020/02/25 14:30:14 command traefik error: field not found, node: redirect
[email protected] | 2020/02/25 14:30:22 command traefik error: field not found, node: redirect
[email protected] | 2020/02/25 14:30:30 command traefik error: field not found, node: redirect
[email protected] | 2020/02/25 14:30:38 command traefik error: field not found, node: redirect
[email protected] | 2020/02/25 14:30:46 command traefik error: field not found, node: redirect
[email protected] | 2020/02/25 14:30:54 command traefik error: field not found, node: redirect
[email protected] | 2020/02/25 14:31:02 command traefik error: field not found, node: redirect
[email protected] | 2020/02/25 14:31:09 command traefik error: field not found, node: redirect
[email protected] | 2020/02/25 14:31:17 command traefik error: field not found, node: redirect
[email protected] | 2020/02/25 14:31:25 command traefik error: field not found, node: redirect
[email protected] | 2020/02/25 14:31:33 command traefik error: field not found, node: redirect
[email protected] | 2020/02/25 14:31:41 command traefik error: field not found, node: redirect
[email protected] | 2020/02/25 14:31:49 command traefik error: field not found, node: redirect
[email protected] | 2020/02/25 14:31:57 command traefik error: field not found, node: redirect
[email protected] | 2020/02/25 14:32:05 command traefik error: field not found, node: redirect