Update nginx config to support confluence 6.x

This commit is contained in:
Markus 2017-04-05 17:12:07 +02:00
parent 7dc86c4c16
commit 3e6f2f1b5b

View File

@ -1,3 +1,5 @@
# {{ ansible_managed }}
server { server {
listen 80; listen 80;
listen [::]:80; listen [::]:80;
@ -29,4 +31,13 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:8090/; proxy_pass http://localhost:8090/;
} }
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/synchrony;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
} }