This version of the SonarQube documentation is no longer maintained. It relates to a version of SonarQube that is not active.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Advanced installation features

Explains how to perform advanced setup on SonarQube server including web connection parameter change.

This section explains how to:

  • Change the web server connection parameters

  • Modify the default configuration of the server installation

You can also:

Changing the web server connection parameters

To set up the web server connection:

  • For a server installation from the ZIP file: Verify and change if necessary the following properties in the SonarQube Server configuration file (<sonarqubeHome>/conf/sonar.properties).

  • For a server installation from the Docker image: Verify and change if necessary the following environment variables.

Property (ZIP installation)

Environment variable (Docker installation)

Description

sonar.web.host

SONAR_WEB_HOST

For servers with more than one IP address, this property specifies which address will be used for listening on the specified ports.

Default value: 0.0.0.0 (ports will be used on all IP addresses associated with the server)

sonar.web.port

SONAR_WEB_PORT

TCP port for incoming HTTP connections.

Default value: 9000

sonar.web.context

SONAR_WEB_CONTEXT

Web context specifying the path at which to serve SonarQube. For example, with sonar.web.port=9000 and sonar.web.context=/sonarqube, you will access the web interface at http://localhost:9000/sonarqube.

Example: /sonarqube (must start with a forward slash)

Default value: empty (root context)

Modifying the default configuration of a server installation

To modify the default configuration:

  • For a server installation from the ZIP file: Change the sonar properties in the SonarQube Server configuration file (<sonarqubeHome>/conf/sonar.properties).

  • For a server installation from the Docker image: Change the sonar Environment variables.

Last updated

Was this helpful?