## HAProxy and Nginx-Webserver and Nextcloud ### [](https://#Layer4: **tcp-mode:** ssl termination on backend site(s), x-forward-for/send-proxy-v2 »» [https://forum.hhf.technology/haproxy-mit-ip-forwarding-im-tcp-mode-layer-4/](https://forum.hhf.technology/haproxy-mit-ip-forwarding-im-tcp-mode-layer-4/) ### [](https://#)Layer4or6: **http-mode:** Layer 6 / http-mode with healthcheck and ssl termination on HAProxy **tcp-mode:** Layer 4 / tcp-mode with http-Healthcheck **tcp-mode with ssl-passthrough:** tcp-mode using SNI (e.g for Nextcloud and BigBlueButton)