-
Bug
-
Resolution: Fixed
-
Major
(Sorry – I'm not sure what component this falls under)
I have a ssl proxy on another machine in front of jenkins. The ssl proxy listens on port 8080 and forwards to Jenkins on port 8080.
After I submit my login details to Jenkins on https://domain.com:8080/login, it redirects me to http://domain.com:8080. I'd like to stay on https. I've configured the Jenkins URL to be https://domain.com:8080, but it didn't seem to make a difference.
Two solutions?
1. Never change the protocol. If the redirect was to '/' instead of 'http://domain.com', there would be no problem.
2. The proxy adds a X-Forwarded-Proto to each request – could Jenkins look at that and realize it's a https request?
- is related to
-
JENKINS-23294 Interpret X-Forwarded-Port
-
- Resolved
-
Code changed in jenkins
User: Vojtěch Juránek
Path:
core/src/main/java/jenkins/model/Jenkins.java
core/src/test/java/jenkins/model/JenkinsGetRootUrlTest.java
http://jenkins-ci.org/commit/jenkins/5c25cb6a1b3d5640a2c42c2ebd2ca6343ffd3d2f
Log:
Merge pull request #964 from edenrox/master
[FIXED JENKINS-10675] use X-Forwarded-Proto if present
Compare: https://github.com/jenkinsci/jenkins/compare/2b9347a00227...5c25cb6a1b3d