speed-rack.nginx 546 B

123456789101112131415161718192021222324252627
  1. # the upstream component nginx needs to connect to
  2. upstream django {
  3. server unix:/var/www/speed-rack/uwsgi.sock;
  4. #server 127.0.0.1:42001; # for a web port socket (we'll use this first)
  5. }
  6. # configuration of the server
  7. server {
  8. listen 80 default_server;
  9. server_name exga.maxproject.fr;
  10. charset utf-8;
  11. client_max_body_size 75M;
  12. location /static {
  13. alias /var/www/speed-rack/speed_rack/static;
  14. }
  15. location / {
  16. uwsgi_pass django;
  17. include /etc/nginx/uwsgi_params;
  18. }
  19. }