Glances - setup without specifying port

I want to monitor an external server with glances and I don’t want to connect this server to my home network.

Glances is currently running at https://subdomain.domain.com/glances (configured with nginx reverse proxy). Without going too much into detail, I can only set it up like this (and I can’t for example configure nginx to https://glances.domain.com).

This works:

curl -X GET https://subdomain.domain.com/glances/api/3/mem/free
> {"free":1499201536}

However, I can’t get this set up in home assistant, probably because glances is running on a subfolder. I tried:

But I get the error that it can’t connect. I have a hunch that it would work if I could leave the port field empty, but it’s a required field.

Heya, have you found an answer to this by any chance yet?
I’m having the same adventure right now, putting Glances behind a Proxy with forced SSL, but putting any kind of combination of sub.domain.xyz or https://sub.domain.xyz and Port 443 doesn’t work whatsoever.

No, unfortunately not yet :frowning:

Hi, yes actually. It was quite a while ago, and I think the solution was to just update Glances and Home Assistant to the latest version. But I can also remember doing something in the config… tho not 100% sure anymore.
If you’re not using the latest version of both yet try that first, if that still doesn’t work can check my config for you :slight_smile: