4

I installed Sonarqube on a server and given a domain name like http://sonarqube.xyz.com:9000 and now I would like to have the URL to be https.

I have changed the properties of sonar.properties in the conf file and tried redirecting the URL using IIS with URL rewrite.

G. Ann - SonarSource Team
  • 22,346
  • 4
  • 40
  • 76
chandra
  • 111
  • 1
  • 1
  • 8

2 Answers2

7

You should follow the guidelines described at http://docs.sonarqube.org/display/SONAR/Securing+the+Server+Behind+a+Proxy.

Simon Brandhof
  • 5,137
  • 1
  • 21
  • 28
2

Here I followed the following blog to enable SSL with reverse proxy using IIS rewrite.

https://jessehouwing.net/sonarqube-configure-ssl-on-windows/

Thanks all for the answers

jessehouwing
  • 106,458
  • 22
  • 256
  • 341
chandra
  • 111
  • 1
  • 1
  • 8
  • the most important part is Make sure to turn off the checkbox “Reverse rewrite host in response headers” within the ARR (Application Request Routing) configuration of IIS. (Application Request Routing Cache --> Server Proxy Settings), if you are using rewrite sonarqube server in localhost:9000 – Gautam Sharma Sep 04 '19 at 13:57
  • does this mean the sonar will be accessible over https rather than http over internet after applying all the steps ? – Aatif Akhter Nov 17 '21 at 09:33
  • if you want to make your sonarqube accessible over internet, you need a public ip which will point to your machine and to have ssl for the sonarqube website, you need to follow the above process. – chandra Nov 18 '21 at 04:14