Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to get hipchat to work with nginx

Sam Ferrell December 31, 2017

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
Nágila Marques
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 2, 2018

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
TAGS
AUG Leaders

Atlassian Community Events