Advertisement
Guest User

Untitled

a guest
Sep 20th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.00 KB | None | 0 0
  1. # the upstream component nginx needs to connect to
  2. upstream panda_tracker {
  3.     server unix:/tmp/uwsgi.sock; # for a web port socket (we'll use this first)
  4. }
  5.  
  6. # configuration of the server
  7. server {
  8.     # the port your site will be served on
  9.     listen      8765;
  10.     # the domain name it will serve for
  11.     server_name 136.243.69.42; # substitute your machine's IP address or FQDN
  12.     charset     utf-8;
  13.  
  14.     # max upload size
  15.     client_max_body_size 75M;   # adjust to taste
  16.  
  17.     # Django media
  18.     location /media  {
  19.         alias /root/Envs/panda_tracker/trackerpm/media;  # your Django project's media files - amend as required
  20.     }
  21.  
  22.     location /static {
  23.         alias /root/Envs/panda_tracker/trackerpm/static; # your Django project's static files - amend as required
  24.     }
  25.  
  26.     # Finally, send all non-media requests to the Django server.
  27.     location / {
  28.         uwsgi_pass  panda_tracker;
  29.         include     /etc/nginx/uwsgi_params; # the uwsgi_params file you installed
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement