diff --git a/roles/nginxplus/files/conf/http/ansible-tower_prod.conf b/roles/nginxplus/files/conf/http/ansible-tower_prod.conf index 46e8390ec7..1df9e60443 100644 --- a/roles/nginxplus/files/conf/http/ansible-tower_prod.conf +++ b/roles/nginxplus/files/conf/http/ansible-tower_prod.conf @@ -38,14 +38,18 @@ server { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; - #attempt to enable websocket - #proxy_set_header Host $host; not sure if we can use this - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; proxy_cache ansible-towercache; proxy_intercept_errors on; health_check interval=10 fails=3 passes=2; + + location /websocket/ { + proxy_pass https://ansible-tower; + #attempt to enable websocket + proxy_set_header Host $host; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + } } include /etc/nginx/conf.d/templates/errors.conf;