This question is in reference to Atlassian Documentation: Running Confluence behind NGINX with SSL
I think there is an issue with /synchrony configuration. One should conditionally send "Connect" header to 8091 upstream. If you always send "Connect: Upgrade" you will and up with not working static js files.
For example this url will return 404
https://confluence.example.com/synchrony/resources/js/vendor/sockjs.min.js
So you need to make configuration as in nginx documentation example http://nginx.org/ru/docs/http/websocket.html
http { map $http_upgrade $connection_upgrade { default upgrade; '' close; } server { .... 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://localhost:8091; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; # Note using $connection_upgrade variable # It is not set and header is not passed to upstream for static file requests proxy_set_header Connection $connection_upgrade; } }
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.