Configure the SonarQube domain name
The SonarQube server domain name is the default IP address or domain name assigned when SonarQube is launched. In order to configure a different domain name, follow the steps below:
- Log in to the SonarQube dashboard and click on the “Administration” tab.
- Browse to the “Configuration -> General settings -> General” menu.
- Under the “General” section, change the “Server base URL” to the new server domain name.
- Save the changes.
You can also manually change the server domain name from the command line by following these steps:
- Log in to the server console.
Use the command below to change the server domain name. Remember to replace the NEW_SERVER_DOMAIN placeholder with the new server domain name.
$ sudo /opt/bitnami/apps/sonarqube/bnconfig --machine_hostname NEW_SERVER_DOMAIN
Rename this tool so that it does not change again at boot time:
$ sudo mv /opt/bitnami/apps/sonarqube/bnconfig /opt/bitnami/apps/sonarqube/bnconfig.disabled