acessing the Sonarqube with http://xyz.abc.com:9000

77 views Asked by At

We are working in project where we wanted to customized the rule. To customized the rule, we need to upload a file to sonar server. As we are working in a restricted environment where we can't upload the file to unknown server. We can only upload the file only if server url end with abc.com.

is there any way to change the url
http://localhost:9000 to http://xyz.abc.com:9000..??

1

There are 1 answers

0
Nicolas B. On

Your question is completely independent from SonarQube as it boils down to hostname management, mapping xyz.abc.com to localhost (and/or to SonarQube server's IP). Changing sonar.web.host (as per your above comment) won't help at all as it is for SonarQube to bind on a specific interface, something unrelated to your situation here.

Approach your problem from a network connectivity (and name resolution) perspective. Your goal can be summed up in: xyz.abc.com must resolve to the IP of the server which hosts SonarQube.

If all work is only done locally for now then per comment from @snakecharmerb you can update your /etc/hosts with a new mapping, otherwise update your DNS with a new entry.