Skip to content

Commit

Permalink
Merge pull request nanobox-quickstarts#5 from goodes/master
Browse files Browse the repository at this point in the history
nginx.conf changes to fix static files not working
  • Loading branch information
Steve Domino authored Nov 27, 2017
2 parents 2d0d60b + 4fe59ac commit 6e4f5c0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions etc/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
worker_processes 1;
daemon off;

# error_log /data/var/log/nginx/error.log;

events {
worker_connections 1024;
}
Expand All @@ -19,6 +21,8 @@ http {
application/x-javascript
application/atom+xml;

# access_log /data/var/log/nginx/access.log;

# Proxy upstream to the gunicorn process
upstream django {
server 127.0.0.1:8000;
Expand All @@ -31,8 +35,9 @@ http {
listen 8080;

# Settings to serve static files
location ^~ /static/ {
root /app/static/;
location /static/ {
root /app/;
include /data/etc/nginx/mime.types;
}

# Serve a static file (ex. favico)
Expand Down

0 comments on commit 6e4f5c0

Please sign in to comment.