diff --git a/roles/confluence/templates/vhost.j2 b/roles/confluence/templates/vhost.j2 index eba17cf..00243c8 100644 --- a/roles/confluence/templates/vhost.j2 +++ b/roles/confluence/templates/vhost.j2 @@ -1,3 +1,5 @@ +# {{ ansible_managed }} + server { listen 80; listen [::]:80; @@ -29,4 +31,13 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 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"; + } }