How to use "x-fowarded-host/proto" in the pfSense-HAproxy package GUI
-
Hello!
I'm relatively new to using HAproxy so please excuse some possible nooby questions. The larger problem I'm trying to solve is this one: [SOLVED] ERROR - Nextcloud & OnlyOffice Docs. This content is blocked. Contact the site owner to fix the issue and I do not yet know how to implement this solution in pfSense+HAproxy GUI. I assume it's possible... (Maybe there are other ways of circumventing this problem?)
It is stated on the official OnlyOffice site that "You need to set up two types of HTTP headers: X-Forwarded-Proto and X-Forwarded-Host". There are also clear official examples of "X-Forwarded-Host" or "X-Forwarded-Proto" usage but I don't know how to implement them as I lack sufficient knowledge about HAproxy's inner workings.
Any help is greatly appreciated. Thank you!