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 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Mar 26, 2018 in Hipchat Data Center

Migration of Hipchat server to Data Center - a retrospective

Background While our Hipchat server environment was reliable and performing well, as a significant and growing part of our business, the need to leverage the benefits of Hipchat Data Center&nbs...

460 views 2 6
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