Skip to content

Instantly share code, notes, and snippets.

@calerogers
Last active July 8, 2016 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calerogers/e7452fd183a37ed40dbff0106ca46b85 to your computer and use it in GitHub Desktop.
Save calerogers/e7452fd183a37ed40dbff0106ca46b85 to your computer and use it in GitHub Desktop.
# the upstream component nginx needs to connect to
upstream django {
server unix:///opt/adagios/adagios/adagios.sock; # for a file socket
}
# configuration of the server
server {
# the port your site will be served on
listen 8080;
# the domain name it will serve for
server_name naemon.example.com # substitute your machine's IP address or FQDN
charset utf-8;
# Point to adagios django media
location /media {
alias /opt/adagios/adagios/media; # your Django project's media files - amend as required
}
# Finally, send all non-media requests to the uwsgi server.
location / {
uwsgi_pass django;
include /opt/adagios/adagios/uwsgi_params; # the uwsgi_params file you installed
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment