I am having issues getting confluence to work behind a reverse proxy which is hosted on a different server). What I am getting is when I go to add a new page or edit a page, I get the following message.
"Something went wrong after loading the editor. Copy your unsaved changes and refresh the page to keep editing."
Having a look through I can see that the issue is related to Synchrony. Below is my current nginx proxy settings along with my server.xml config
## nginx Config
server {
listen DMZ_IP:443;
server_name confluence.fakedomain.com;
include /etc/nginx/conf.d/ssl.include;
access_log /var/log/nginx/confluence.access.log;
error_log /var/log/nginx/confluence.error.log;
client_max_body_size 200M;
location / {
include /etc/nginx/conf.d/proxy_options.include;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://confluence;
}
location /synchrony {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://confluence/synchrony;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
}
upstream confluence {
server INTERNAL_IP:8090;
}
## server.xml Config
<Connector port="8090" connectionTimeout="20000" redirectPort="8443"
maxThreads="48" minSpareThreads="10"
enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"
protocol="org.apache.coyote.http11.Http11NioProtocol"
proxyName="confluence.fakedomain.com" proxyPort="443" scheme='https'
/>