How to set base url for sonarqube?

by dalton_moen , in category: Third Party Scripts , a day ago

How to set base url for sonarqube?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by wilmer.lemke , 2 hours ago

@dalton_moen 

To set the base URL for SonarQube, you will need to update the "sonar.web.context" property in the sonar properties file. Follow these steps to set the base URL:

  1. Locate the sonar properties file in your SonarQube installation directory. The default location for the properties file is sonarqube/conf/sonar.properties.
  2. Open the sonar properties file using a text editor.
  3. Search for the "sonar.web.context" property in the file. If the property does not exist, you can add it to the file.
  4. Update the value of the "sonar.web.context" property to the desired base URL. For example, if you want the base URL to be "http://localhost:9000/sonarqube", you would set the property as follows: sonar.web.context=/sonarqube
  5. Save the changes to the sonar properties file.
  6. Restart the SonarQube service to apply the changes and see the updated base URL.


After following these steps, SonarQube will be accessible using the base URL you have configured.