Collabora Code Haproxy

Hi All,
I would like to deploy collabora code behind haproxy.
Sample configuration is available for apache and nginx.
Has onyone created a sample config for haproxy as well? Is it possible?

hey did you ever end up figuring this out? I am working on rancher and using native load balancer (which is haproxy) and I cannot seem to crack it

It seems to be working well.

The relevant parts of the haproxy config file are below:

frontend http-in
bind *:80
reqadd X-Forwarded-Proto:\ http

# Define virtual hosts
acl vhost_cloud hdr(host)       -i cloud.mydomain.net
       acl vhost_doc hdr(host)         -i doc.mydomain.net

# Define backends
    use_backend cloud_cluster        if vhost_cloud
use_backend doc_cluster          if vhost_doc

frontend https-in
bind *:443 ssl crt cloud.pem crt doc.pem
reqadd X-Forwarded-Proto:\ https

# Define virtual hosts
acl vhost_cloud hdr(host)       -i cloud.mydomain.net
acl vhost_doc hdr(host)         -i doc.mydomain.net

# Define backends
    use_backend cloud_cluster        if vhost_cloud
use_backend doc_cluster          if vhost_doc

backend cloud_cluster
redirect scheme https if !{ ssl_fc }
http-response set-header Strict-Transport-Security max-age=15552000;\ includeSubDomains;\ preload;
balance roundrobin
mode http
server vs-docker-11 10.16.1.11:8888 check

backend doc_cluster
redirect scheme https if !{ ssl_fc }
balance roundrobin
server vs-docker-11 10.16.1.11:9980 ssl verify none