After some more investigation, it seems adding `if { ssl_fc }` does lead to the desired behaviour.
But only if the `X-Forwarded-Proto https` is set. (which makes sense).
So if you use nginx as a ssl terminating reverse proxy, you need to do something like this.
After some more investigation, it seems adding `if { ssl_fc }` does lead to the desired behaviour.
But only if the `X-Forwarded-Proto https` is set. (which makes sense).
So if you use nginx as a ssl terminating reverse proxy, you need to do something like this.
location / {
proxy_ pass http://<floating_IP>:5000;
proxy_ set_header Host name.domain. tld:5001;
proxy_ set_header X-Forwarded-Proto https;
}