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

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Aug 10, 2018 in Hipchat

What should I think about when migrating HipChat to Slack?

...from the beginning. We have built up a lot of content in HipChat, with it being a core tool in our distributed company model. While it is true that we didn’t need to move to Slack immediately, we felt it...

240 views 1 9
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