Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[change] Change nginx conf to use sockets to redirect traffic to uwsgi and daphne #281

Closed
nemesifier opened this issue Jul 27, 2021 · 0 comments · Fixed by #282
Closed
Assignees

Comments

@nemesifier
Copy link
Member

Since the traffic is on the same host, we can use unix sockets to reduce overhead.

For daphne:

upstream channels-backend {
  server unix:{openwisp2_path}/daphne0.sock fail_timeout=0;
}

For uwsgi: https://uwsgi-docs.readthedocs.io/en/latest/Nginx.html#configuring-nginx and I think we'll have to configure the uwsgi.ini to use the unix socket instead of the TCP socket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

2 participants