Problem serving HTTPs only

I’m having some trouble setting up corteza with HTTPS only, when logging in it always redirects to the http version of the page, which i doesn’t serve as it should not be needed

relevant configs:

environment:
VIRTUAL_HOST=my-cool-domain:8883
DOMAIN=my-cool-domain:8883
VERSION=2023.9.2

Caddyfile:
my-cool-domain:8883 {
reverse_proxy localhost:8883
}

The expected behaviour is to never redirect to HTTP.
The issue happens when logging in, the auth page shows correctly.

Hi,

try using HTTP_SSL_TERMINATED: Server configuration :: Corteza Docs