Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # the upstream component nginx needs to connect to
- upstream panda_tracker {
- server unix:/tmp/uwsgi.sock; # for a web port socket (we'll use this first)
- }
- # configuration of the server
- server {
- # the port your site will be served on
- listen 8765;
- # the domain name it will serve for
- server_name 136.243.69.42; # substitute your machine's IP address or FQDN
- charset utf-8;
- # max upload size
- client_max_body_size 75M; # adjust to taste
- # Django media
- location /media {
- alias /root/Envs/panda_tracker/trackerpm/media; # your Django project's media files - amend as required
- }
- location /static {
- alias /root/Envs/panda_tracker/trackerpm/static; # your Django project's static files - amend as required
- }
- # Finally, send all non-media requests to the Django server.
- location / {
- uwsgi_pass panda_tracker;
- include /etc/nginx/uwsgi_params; # the uwsgi_params file you installed
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement