I'm deploying DocuSeal behind an existing reverse proxy Pfsense with HAProxy. As I found here:
you need to ensure that specific headers are set to ensure the proper functioning of the application. Failure to set these headers might result in a 422 error page. If you encounter this issue, you might see the following log entry:
ActionController::InvalidAuthenticityToken (HTTP Origin header (https://docuseal.mydomain.com) didn't match request.base_url (http://docuseal.mydomain.com)):
The previous post guides you to resolve the issue adding the following configuration settings inside the location for an nginx proxy:
`location / {
proxy_pass http://yourdocuseal.internal.hostname:3000/;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
}`
But my issue is to convert this setting for a Pfsense with HAproxy enviroiment. My HAProxy has two frontend one for WAN and one for LAN interface. How can I set up the above headers in HAProxy ?