# Server base URL

You must configure your base URL in the SonarQube Server. This URL must be reachable by your build agent (e.g., GitHub-hosted runners). Otherwise, integration and authentication features will not work correctly, the URLs generated in reports and emails will be wrong, etc.

{% hint style="warning" %}
If you want to delegate the SonarQube Server user authentication to an OAUTH provider (GitHub, Bitbucket, GitLab, SAML), you should use HTTPS for security reasons. This means that the SonarQube Server instance should be secured behind a proxy (see [securing-behind-proxy](https://docs.sonarsource.com/sonarqube-server/server-installation/network-security/securing-behind-proxy "mention")).
{% endhint %}

{% hint style="info" %}
The SonarQube base URL needs to be a public URL if SonarQube expects to receive information from an external system. For more information, see [networking-requirements](https://docs.sonarsource.com/sonarqube-server/server-installation/networking-requirements "mention").
{% endhint %}

To configure the server base URL in SonarQube Server:

1. Go to **Administration** > **Configuration** > **General Settings** > **General** > **General.**
2. In **Server base URL**, set your SonarQube Server instance’s URL.

<figure><img src="https://2744305742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3VWSqvZ4eaBLWvA6epdv%2Fuploads%2FIExmdTXiHlsDqSvkkBn8%2Fadmin-server-url.png?alt=media&#x26;token=6d29c3c9-d986-4a7b-a93d-9ced485c20a6" alt="Configuring the server based url in the administration settings"><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sonarsource.com/sonarqube-server/instance-administration/server-base-url.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
