Last active
July 8, 2016 20:13
-
-
Save calerogers/e7452fd183a37ed40dbff0106ca46b85 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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