Using a reverse proxy
The reverse proxy must send the header X-Forwarded-Proto
Example configuration for caddy
https://your-host.com {
reverse_proxy localhost:8080 {
header_up Host {host}
header_up X-Forwarded-For {remote_host}
header_up X-Forwarded-Proto {scheme}
header_up X-Forwarded-Host {host}
header_up Origin {scheme}://{host}
}
}
If you are using a reverse proxy you need to add the network to the KnownNetworks setting.
When using docker you can do this by using the env variables
KnownNetworks__0: '172.24.0.0/16'