Good day,
We are currently migrating our Confluence instance from IP to hostname; however, we are unable to edit pages due to this error:

We suspect that it has something to do with Synchrony and its configuration mapping with HAProxy. In our previous IP instance, we used nginx with this configuration:
location /confluence {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://confluence_web:8090;
}
location /synchrony {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://confluence_web:8091;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}Everything works fine, but after migrating to HAProxy, even though Confluence is accessible using the DNS, we experienced editing issues as seen in the screenshot above. Our current haproxy.cfg configuration looks like this:
backend confluence_server
mode http
balance source
option forwardfor
server confluence 107.105.134.53:8090 check
backend synchrony_server
mode http
balance source
option forwardfor
server synchrony 107.105.134.53:8091 check
We are unsure if we converted the configurations properly. We already modified our server.xml located in confluence-server/confluence_install/conf which looks like this:
<Connector port="8090"
protocol="org.apache.coyote.http11.Http11NioProtocol"
connectionTimeout="20000"
URIEncoding="UTF-8" acceptCount="10"<br> enableLookups="false" debug="0"
redirectPort="443"
maxThreads="200" minSpareThreads="10"
scheme="http"
proxyName="mycompany.com"
proxyPort="80" />We deployed the Confluence service using docker-compose and already exposed both 8090 and 8091 ports in our config file.
Any help is appreciated. Thank you.