I tried using my app through CloudFlare today, and I got a WebSocket connection error. But the app still functions, and if I update the the database, data changes about as quickly as it does when WebSockets is working.
Thanks! I tried adding "DISABLE_WEBSOCKETS": 1 into my mup.json file and deployed. The performance hit isn’t terrible, it seems to poll about every 15 seconds or so. And my app is not necessarily a “has to be 100% real-time” app, so I might go this route for the benefits of CloudFlare.
Hi , Have you tried Option 2 on the same article ? Basically , you have to “bypass” Cloudflare for managing websockets on your own .
If you have the chance , i recommend you to use your own nginx setup , and just configure SSL certificates .
I’m finishing some documentation about this ( nginx setup for meteor with SSL support and letsencrypt certs ) , so stay tuned . I’ll post it once i’ve finished it.
myapp.com routed through CloudFlare, using their SSL
ddp.myapp.com bypassing CloudFlare, using purchased (or letsencrypt) SSL
That could work, and would definitely help against threats, since it would be pretty difficult for someone to discover the ddp subdomain.
I tried letsencrypt, but it’s not working properly for me. Still in closed beta. I imagine they’ll address many of the issues by the time open beta starts next month.
Letsencrypt as you said, is still in beta , and the CA which signs your certificate is not trusted yet ( Maybe on December ) . So this has some implications as you cannot test it in mobile apps ( without including those certificates manually ) . So in other words not ready yet for production … But ,
If you want to be prepare and you want to try letsencrypt , you can do it ( with some effort from your side ) .
Some tips for installing letsencrypt on a ubuntu box ( Tested on Digital Ocean Droplet ):
Later on, you have to setup nginx ( mine is 1.9.6 )
Please wait until i have some time to publish all documentation . The good news is i’ve already written it , but the bad news is i have to translate to english yet ( Now is in spanish ) .
I’ll try to publish ASAP ,
Hope this helps , at least to get letscrypt working