pyrot_nginx.conf 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. # the upstream component nginx needs to connect to
  2. upstream django {
  3. server unix:///opt/rotbot-env/pyRot/webgui.sock; # For production file socket
  4. # server 127.0.0.1:8001; # Web port socket for use with uwsgi-hello-world-test.py
  5. }
  6. # configuration of the server
  7. server {
  8. # the port your site will be served on
  9. listen 8000;
  10. # the domain name it will serve for
  11. server_name _; # substitute your machine's IP address or FQDN
  12. charset utf-8;
  13. # max upload size
  14. client_max_body_size 75M; # adjust to taste
  15. # Django media
  16. #location /media {
  17. # alias /path/to/your/mysite/media; # your Django project's media files - amend as required
  18. #}
  19. location /static {
  20. alias /srv/www/static; # your Django project's static files - amend as required
  21. }
  22. # Finally, send all non-media requests to the Django server.
  23. location / {
  24. uwsgi_pass django;
  25. include /opt/rotbot-env/pyRot/uwsgi_params; # the uwsgi_params file you installed
  26. }
  27. }