Securing SigNoz UI with SSL Certificates

TLDR Martin needed help with SSL certificates for SigNoz UI. Prashant suggested using Nginx and Certbot for securing the UI on a VM.

Photo of Martin
Martin
Fri, 02 Jun 2023 17:28:51 UTC

good afternoon, do I need to put my ssl certificates on my signoz server? I can't find in which route I should leave them or where to configure them can you help me?

Photo of Prashant
Prashant
Sun, 04 Jun 2023 08:08:07 UTC

Hello Martin, are you trying to secure SigNoz UI or signoz-otel-collector? Both can be done using Reverse Proxy and certs (directly or using certbot/certmanager).

Photo of Prashant
Prashant
Sun, 04 Jun 2023 08:08:36 UTC

We have docs for that in K8s.

Photo of Martin
Martin
Mon, 05 Jun 2023 13:59:50 UTC

Hi Prashant, I trying to secure SigNoz UI

Photo of Prashant
Prashant
Mon, 05 Jun 2023 18:23:13 UTC

Martin Are you using Docker or K8s?

Photo of Martin
Martin
Mon, 05 Jun 2023 18:42:14 UTC

i install signoz using docker

Photo of Prashant
Prashant
Tue, 06 Jun 2023 14:06:21 UTC

Martin you can go with Nginx and Certbot to easily set secure it in your VM.

Photo of Martin
Martin
Tue, 06 Jun 2023 14:51:33 UTC

ok i'll try to do it

Photo of Martin
Martin
Tue, 06 Jun 2023 14:51:39 UTC

thanks!!

Photo of Prashant
Prashant
Tue, 06 Jun 2023 14:54:11 UTC

Martin you nginx config for the site should look like this: ``` server { listen 80; server_name ; return 301 https://$host$request_uri; } upstream signoz_ui { server localhost:3301; } server { listen 443 ssl; server_name ; ssl_certificate /etc/letsencrypt/live/signoz.yourdomain.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/signoz.yourdomain.com/privkey.pem; location / { proxy_pass ; } }```