django-eventstream icon indicating copy to clipboard operation
django-eventstream copied to clipboard

SSL Issue

Open jkain88 opened this issue 3 years ago • 6 comments

When ssl was implemented on our platform, it stopped receiving events.

We've used channels and daphne daphne app4gives.asgi:application to run our application

jkain88 avatar May 18 '21 06:05 jkain88

Weird. Are you using daphne to handle SSL? Or some proxy in front of daphne?

jkarneges avatar May 18 '21 15:05 jkarneges

@jkarneges got this already solved thank you.

jkain88 avatar May 19 '21 06:05 jkain88

But we're currently facing new issue, we can't receive event messages coming from a celery worker

jkain88 avatar May 19 '21 06:05 jkain88

Ah, that's probably because the celery worker is a separate process. In order to send from multiple processes, you'll need to put Pushpin in front. See https://github.com/fanout/django-eventstream#multiple-instances-and-scaling.

jkarneges avatar May 19 '21 15:05 jkarneges

Got it, thank you!

jkain88 avatar May 21 '21 09:05 jkain88

I'm actually having this issue on my application backend; locally the SSE events work fine, but when I deploy it with a NGINX proxy server (that handles SSL for me), the client won't connect to the /events/ route anymore (it gives a 404 error). @jkain88 how did you solve this issue? Are you handling SSL via Daphne?

dappstop avatar Sep 28 '21 04:09 dappstop