Jenkins: How to configure Jenkins behind Nginx reverse proxy for JNLP slaves to connect

后端 未结 2 1125
轮回少年
轮回少年 2020-12-08 16:50

I am trying to set up a Jenkins master and a Jenkins slave node where the Jenkins Master is behind Nginx reverse proxy on a different server with SSL termination. The nginx

2条回答
  •  独厮守ぢ
    2020-12-08 17:43

    It's been almost 4 years since OP has asked this question, nevertheless, if you reached this page and looking for a proper solution, well, it's now possible.

    I use Traefik as reverse proxy to Jenkins. TCP port inbound completely disabled now.

    The only thing you need to make sure is your agent/slave is trusting Jenkins server certificate (as webSocket cannot be used with -disableHttpsCertValidation or -noCertificateCheck

    If this is a Windows agent, use:

    C:\Program Files (x86)\Java\jre1.8.0_251\bin\keytool.exe -import -storepass "changeit" -keystore "C:\Program Files (x86)\Java\jre1.8.0_251\lib\security\cacerts" -alias  -file ""
    

    (Change path accordingly to your java version)

提交回复
热议问题