Traefik TLS握手错误来自xx.xxx.xx.xxx:40748: Jira Webhook的EOF



我使用的是traefik与jenkins docker映像,我安装那里的jira触发器插件。我还在Jira上创建了一个webhook,但它没有运行jenkins作业。我得到的唯一日志是:

traefik | time="2021-10-01T13:46:20Z" level=debug msg="Serving default certificate for request: """
traefik | time="2021-10-01T13:46:20Z" level=debug msg="http: TLS handshake error from xx.xxx.xx.xxx:40748: EOF"

我将添加,这些日志只有在执行webbhok中定义的操作后才会出现。以前,jenkins是独立的,我用这个插件没有问题。

我配置:

docker-compose.yml

version: "3.8"
services:
traefik:
image: "traefik:v2.0"
container_name: traefik
command:
- --log.level=DEBUG
- --entrypoints.web.address=:80
- --entrypoints.web-secure.address=:443
- --api.dashboard=true
- --providers.docker=true
- --providers.file.directory=/configuration/
- --providers.file.watch=true
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik/configuration/:/configuration/
- ./traefik/certs/:/certs/

jenkins:
image: jenkins/jenkins:jdk11
restart: always
container_name: jenkins
volumes:
- /var/jenkins_home
environment:
- JENKINS_OPTS="--prefix=/jenkins"
labels:
- traefik.http.routers.jenkins-http.entrypoints=web
- traefik.http.routers.jenkins-http.rule=Host(`<my_doamin>`) && PathPrefix(`/jenkins`)
- traefik.http.routers.jenkins-http.middlewares=jenkins-https
- traefik.http.middlewares.jenkins-https.redirectscheme.scheme=https
- traefik.http.routers.jenkins.entrypoints=web-secure
- traefik.http.routers.jenkins.rule=Host(`<my_doamin>`) && PathPrefix(`/jenkins`)
- traefik.http.routers.jenkins.tls=true

配置/certificates.toml

[[tls.certificates]]
certFile = "/certs/cert.cert"
keyFile = "/certs/key.key"
[tls.stores]
[tls.stores.default]
[tls.stores.default.defaultCertificate]
certFile = "/certs/cert.cert"
keyFile  = "/certs/key.key"

Jira webhook url: https:///jenkins/jira-trigger-webhook-receiver/

如何修复TLS握手错误?

我找到了解决方案,只需要将域名证书替换为已加入的证书。

cat <my_domain>.crt DigiCertCA.crt TrustedRoot.crt > joined_certificate.crt

相关内容

  • 没有找到相关文章

最新更新