Some applications miss behave behind a proxy. This is why we need to force a redirection to remain https most of the time.
Solution
This behavior can be changed:
You just need to change this line highlighted in the picture:
Run these commands as a root user in your server’s terminal to change it.
sed -i 's/\shttp-response/#http-response/g' /opt/bitninja-ssl-termination/etc/haproxy/configs/*.cfg
bitninjacli --module=SslTerminating --reload
These changes will be overwritten on the next HAProxy config generation.