Proxy configuration

Must-share information:

Hi,

I’m trying to deploy SonarQube using the Helm chart but can’t get seem to get the proxy connection right. What is the expected format format in values.yaml?

I’ve tried:

Would be great to have an example in the docs :slight_smile:

Hi,

Welcome to the community!

There’s no example of this in the docs because that’s not the way we expect it to work. If you want traffic to go through a proxy… put a proxy in front of SonarQube. No configuration on the SonarQube side necessary.

 
HTH,
Ann

Hi! :slight_smile:

That is actually a reverse proxy and not at all what I was trying to configure. I would recommend updating the title of that page, as I found it while trying to find a solution.

For anyone else trying to solve this, here’s what I found:

  1. The following values will only set the environment variables HTTP_PROXY, HTTPS_PROXY, and NO_PROXY.

    httpProxySecret: ""
    httpProxy: ""
    httpsProxy: ""
    noProxy:
    
  2. I had to set the following in `values.yaml` for SonarQube itself to use our corporate proxy:

    ```yaml
    sonarProperties:
    http.proxyHost: ‘proxy.company.local‘
    http.proxyPort: ‘8080‘
    http.nonProxyHosts: ‘*.company.local‘
    ```

    HTTPS values will be inherited from the HTTP value if not explicitly set.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.