ryanb / private_pub

Handle pub/sub messaging through private channels in Rails using Faye.
MIT License
864 stars 228 forks source link

Private_pub + SSL + Nginx - Connection timed out #105

Open hqbeyers opened 9 years ago

hqbeyers commented 9 years ago

Hi all,

I have implemented Private_Pub with SSL and I am running that over port 4443 as recommended in: https://github.com/ryanb/private_pub#serving-faye-over-https-with-thin

However, whenever I actually use the private_pub service I receive the following error:

Errno::ETIMEDOUT: Connection timed out - connect(2) for "www.mysite.com" port 4443

The really odd thing is that it was working on another server before we migrated providers.

I have ensured port 4443 is open by telnet-ing to it successfully. I have played around with the nginx config without any luck. I have restarted the thin server several times just to see if I get lucky.

I am able to access: https://www.mysite.com:4443/faye/faye.js

Can anybody point me in the right direction here?

odin1in commented 9 years ago

I use nginx for serving ssl, and setup a reverse proxy to thin, works fine