Currently, I have sonarqube server developer edition and I want to perform SSO through SAML with entra ID. I have followed all the steps and I have success even when I do the testing from sonarqube server, but when I enable and perform the test does not redirect me to my URL which is: https://192.168.40.x:9000; but it does it to port 80. I have read that it may be the nginx however I have put the lines that suggests other case but I still get no results.
Not enough info to go on but I would suggest first that you can not use both port 9000 and port 443 (https) at the same time. Nginx is likely there to be a proxy and it should be setup to do a port forward from Internet → https (443) → NGINX → port 9000. If you want to handle both http and https then you need to have the domain configured to port forward on both 80 and 443.
I tried to do what you indicated but I get the same result. My current nginx configuration is as follows:
server {
listen 443 ssl;
listen [::]:443 ssl;
client_max_body_size 100M;
server_name brgdevopsserverci.xxxxxx.fin;
ssl_certificate /etc/ssl/certs/sonarqube.crt;
ssl_certificate_key /etc/ssl/private/sonarqube.key;
access_log /var/log/nginx/sonarqube.access.log;
error_page 497 301 =307 https://$host:9000$request_uri;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-SSL on;
proxy_set_header X-Forwarded-Proto $scheme
proxy_set_header X-Forwarded-Host $host;
proxy_pass http://sonarqube:9000;
proxy_redirect https://192.168.x.x:9000 http://192.168.x.x:9000;
}
}
Attached is also the successful test from sonarqube . The problem is the redirection when performing the SSO that does it to port 80 and not to 9000.