Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure SonarQube6.2 to use https?

I have SonarQube 6.2 installed and and want to configure it to use https. All instructions I have seen thus far, regarding this, suggest that 5.2 seems the last version to support https. Does SonarQube 6.2 support https? The instructions I'm referring to can be found here: https://docs.sonarqube.org/display/SONARQUBE52/Running+SonarQube+Over+HTTPS

If https is supported in 6.2 - I have not been able to find any instructions in the installation instructions.

like image 442
LenG Avatar asked Mar 22 '17 20:03

LenG


People also ask

How do I enable https on SonarQube?

To run the SonarQube server over HTTPS, you must build a standard reverse proxy infrastructure. The reverse proxy must be configured to set the value X_FORWARDED_PROTO: https in each HTTP request header. Without this property, redirection initiated by the SonarQube server will fall back on HTTP.

How do I change the port on SonarQube?

In the extracted folder navigate to Conf folder, edit sonar. properties file to change the default web port or you may need available port. By default SonarQube uses port 9000. Make sure to assign an available port for SonarQube, you may need to use the netstat command to check the currently in use ports.


1 Answers

In 5.4 the native support for HTTPS was dropped. See the 5.4 Upgrade notes.

As replacement they now advise to use a reverse proxy (as stated in the upgrade notes). The current docs (6.3) are here and explain on how to use either Apache, Nginx or IIS as the reverse proxy.

like image 170
Johnnei Avatar answered Sep 28 '22 10:09

Johnnei