which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
what are you trying to achieve
what have you tried so far to achieve this
I installed succesfully Sonarqube developer edition on a production server.
Installation : Sonarqube 8.4.1-developer with docker. Image name ‘sonarqube:8.4.1-developer’
I can successfully connect Sonarqube in local with my local connection :
meaning when I enter http://192.168.15.29:9000 --> I can see Sonarqube web interface and log in etc …etc… No probleme here.
Where I face a problem is when I try to acces sonarqube web interface from public internet with for example address :
Effectively your advice was good and help me for one part of the problem.
I found alone also that in case of a proxy where the web context is needed to redirect correctly the request to the sonar server, you know the “/personal_text_here” after the public adress (the /sonarqube in my case), a sonarqube additionnal setting need to be done in the sonar docker. This setting is to be done in the “sonar.web.context” property
This can be “normally” done via ENV variables but this doesn’t work… See following issue similar to mine :
I also searched for another way to edit the “sonar.web.context” property and found my solution here after days of search…
Conclusion : the lines that has to be added in the proxy conf (available in my first post above) is :
RequestHeader set X-Forwarded-Port "443"
RequestHeader set X-Forwarded-Proto "https"
And the line to add in the docker compose yml file in order to add the web context “/sonarqube” to each reply of the inner server in the sonarqube server is :
command: -Dsonar.web.context=/sonarqube
–> this way proxy redirect correctly all the request in both direction now.