How do I use Daphne without websocket "secure"?

68 views
Skip to first unread message

Jeremy Wai

unread,
Jan 30, 2020, 3:04:05 AM1/30/20
to Django users
I have a embedded system that doesn't support the 'secure' part of websocket secure, how do i disable the websocket "secure" part of my daphne application? I don't see it anywhere in my code that i've actually set it up.

Jeremy Wai

unread,
Jan 30, 2020, 3:05:48 AM1/30/20
to Django users
My procfile has this line:
web: daphne APbackend.asgi:application --port $PORT --bind 0.0.0.0

Aldian Fazrihady

unread,
Jan 30, 2020, 5:15:25 AM1/30/20
to django...@googlegroups.com
I don't think you should do anything.
My daphne becomes secure/wss because it is behind nginx HTTP termination. 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8e6f77e6-575e-4981-ad41-11bbc3d61908%40googlegroups.com.


--
Regards,

Jeremy Wai

unread,
Jan 30, 2020, 3:04:46 PM1/30/20
to Django users
I am not using Nginx, I am using daphne, django/channel.


On Thursday, January 30, 2020 at 2:15:25 AM UTC-8, Aldian Fazrihady wrote:
I don't think you should do anything.
My daphne becomes secure/wss because it is behind nginx HTTP termination. 

On Thu, Jan 30, 2020 at 3:06 PM Jeremy Wai <hype...@gmail.com> wrote:
My procfile has this line:
web: daphne APbackend.asgi:application --port $PORT --bind 0.0.0.0

On Thursday, January 30, 2020 at 12:04:05 AM UTC-8, Jeremy Wai wrote:
I have a embedded system that doesn't support the 'secure' part of websocket secure, how do i disable the websocket "secure" part of my daphne application? I don't see it anywhere in my code that i've actually set it up.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django...@googlegroups.com.

Jeremy Wai

unread,
Jan 30, 2020, 7:45:53 PM1/30/20
to Django users
Nevermind. heroku has SSL on by default. There's no option to turn it off.


On Thursday, January 30, 2020 at 12:04:05 AM UTC-8, Jeremy Wai wrote:
Reply all
Reply to author
Forward
0 new messages