You can configure Nginx to route to different backends based on path - put your Nginx proxy_pass settings inside a "location" block.
You can find examples on Stack Overflow - for example: https://stackoverflow.com/questions/13399252/nginx-reverse-proxy-to-multiple-backends
Andrew
On Tue, Jul 24, 2018 at 1:09 PM <dario.heinisch@gmail.com> wrote:
Hi there,--ideally I would like to run Daphne alongside Gunicorn and not Daphne alone:- My chat with Daphne- Rest of the website with GunicornA user logs in - request via Gunicorn. Now when he connects with the chat I get an AnonymousUser using self.scope['user']. This is a problem because I would like to assign him to the right ChatRoom.If I run all requests through Daphne everything works fine.Also I am using Nginx, don't know if it matters, just gonna leave it here.How could I fix this? What would be the workaround?Let me know if you need any code/files.Best Regards,Dario
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/cb2a7475-69dd-4a09-ba32-ea89950d5fc7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFwN1uo8w8jSe2bALJKfBwzmmLN9VtJwcARBGRhzc%3D%3DQy%2B2AdA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment