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;
}
}
Hi Sam,
Please access the following documentation which better explains how to configure Nginx with HipChat Data Center:
Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.