How to get hipchat to work with nginx

I'm unable to get chatting working correctly through nginx. You can login but when you click 'Start Chatting', it fails with couldn't connect after about a minute. I've tried several variations for the path and wildcards for the location blocks with no success. It is running on the same server over port 443,just going to /chat. Not sure what I've missed. Thanks for the help.

server {
listen 443 ssl;
listen [::]:443 ssl;
server_name 10.11.40.231;
ssl_certificate /etc/ssl/certs/nginx-selfsigned.crt;
ssl_certificate_key /etc/ssl/private/nginx-selfsigned.key;
ssl on;
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
ssl_prefer_server_ciphers on;
access_log /var/log/nginx/access.log;

location / {
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_pass https://10.11.30.146;
proxy_buffering off;
chunked_transfer_encoding on;
client_max_body_size 100M;
proxy_read_timeout 90;
}
location /chat {
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_pass https://10.11.30.146/chat;
proxy_buffering off;
chunked_transfer_encoding on;
client_max_body_size 100M;
proxy_read_timeout 90;
}
}

1 answer

0 votes

Hi Sam, 

Please access the following documentation which better explains how to configure Nginx with HipChat Data Center:

Thank you!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 14, 2018 in Hipchat Cloud

Hipchat Cloud and Stride End of Life: Just over 90 days away

Earlier this year we made the difficult decision to discontinue our team messaging tools, Stride and Hipchat. The end of life date for Stride and Hipchat Cloud is quickly approaching - February 15, 2...

22,735 views 0 7
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you