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/sonarqube/bnconfig --machine_hostname NEW_SERVER_DOMAIN