diff --git a/ansible/group_vars/thehive-master.yml b/ansible/group_vars/thehive-master.yml index a6c2a52..0d08dea 100644 --- a/ansible/group_vars/thehive-master.yml +++ b/ansible/group_vars/thehive-master.yml @@ -41,6 +41,16 @@ nginx_sites: - ssl_certificate_key /certs/status.im/origin.key - location / { - proxy_set_header Host $host; proxy_pass http://127.0.0.1:{{ the_hive_port }}/; + proxy_http_version 1.1; + proxy_cache_bypass $http_upgrade; + + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header Host $host; + 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; + proxy_set_header X-Forwarded-Host $host; + proxy_set_header X-Forwarded-Port $server_port; }