JetBrains / teamcity-docker-agent

TeamCity agent docker image sources
https://hub.docker.com/r/jetbrains/teamcity-agent/
Apache License 2.0
77 stars 64 forks source link

Agent unable to connect to server running behind Caddy reverse proxy with Let's Encrypt certificate #54

Closed NEXUS2345 closed 5 years ago

NEXUS2345 commented 5 years ago

I am attempting to connect a Linux docker agent to a TeamCity 2019.1 server. The server is hosted behind a Caddy (https://caddyserver.com) reverse proxy with transparent proxying including WebSocket. The server also uses a Let's Encrypt wildcard certificate. For some reason which I am unable to grasp, the agent refuses to connect to the server.

Here is the log: https://gist.github.com/NEXUS2345/93a56c98d346e0094d4e90e395862832

Any help is greatly appreciated.

dmitry-treskunov commented 5 years ago

Hi, seems you need to add the certificate to the agent JVM, see details here

NEXUS2345 commented 5 years ago

Hi Dmitry, Thanks for the response. First, I need to mention that the link you have provided is to a tweet, not the documentation. Second, I believe I may have already identified the cause. I have misconfigured Caddy and told it to use just the certificate rather than the full chain, so I'll correct this and see if it fixes it. Thanks, NEXUS2345.

dmitry-treskunov commented 5 years ago

Oh, sorry, I posted the wrong link :) Anyway, glad that you resolved the issue!