401 - Unauthorized in Grafana UI after setting up SSL

In order to get the NEATO integration running again after the last core update, I was forced to install DuckDNS with Let’s Encrypt and NGINX add-ons. Now finally I can again access HA both locally using IP:port and using address.duckdns.org. The problem is that when I start Grafana UI (or use side bar, obviously), all I get is 401 - Unauthorised error. Not just in iFrames as often happens but the UI itself.
When accessed via address.duckdns.org it works alright. Same when I go localip:3000 (port I set up in Grafana config).
I am sure there is some trivial tweak waiting to be done but unfortunately I don’t understand this reverse proxy thing at all, so I don’t really know where to look.
Any tips, please?

Did you change the grafana cnfiguration to allow ssl ?

plugins: []
env_vars: []
ssl: true
certfile: fullchain.pem
keyfile: privkey.pem

Indeed.

ssl: true
certfile: fullchain.pem
keyfile: privkey.pem
log_level: info

Actually, I had ssl set to false but setting to true didn’t change the behaviour in any way. Weird.

EDIT1: InfluxDB behaves exactly the same.
EDIT2: when I use different browser, both work as expected.

1 Like