Change Default Port 3000 to 443

Hello, I install grafana last version and configure ssl certificate. Also I have changed https_port = 443, protocols = https, added .key and .crt file, root_url=changed without port. But I can not open my url https://test.grafana.az. It opens https://test.grafana.az:3000. Please help. Thanks for in advanced

Hi @nemete34,

Thanks for opening this post.

You also would need to configure the web server (Nginx, Apache, etc) configuration file and update there the path too.

I hope this helps.

Hi @nemete34 ,

I suggest you let the grafana as it is and add nginx in front of grafana and put the certificate in the nginx configuration and make the nginx as proxy_pass to grafana service. It’s simple and I think it’s more secure than direct connection to grafana. I have a lots of sites using this approach and no problem with it.
Also if you use letsencrypts, it’s simpler to handle the certbot update.

Regards,
Fadjar

2 Likes

@fadjar340 This worked for me thank you!!

@fadjar340 my server will eventually be installed in a remote location using a Starlink ipv6 address. Do you foresee any issues or additional configurations other that forwarding port 443 to my Grafana server using this approach?

Hi,

It’s only matter of nginx config to use ipv6, and if the IP4 still can connect to the Grafana server with port 3000, I think it’s no issue.
If you have some issue, please paste the config here, so we can check together…

Regards,
Fadjar