Server media with nginx
This commit is contained in:
parent
184233c574
commit
094a5ac345
1 changed files with 5 additions and 0 deletions
5
default
5
default
|
@ -8,6 +8,11 @@ server {
|
|||
alias /app/pflaenzli/static_collected;
|
||||
}
|
||||
|
||||
location /media {
|
||||
access_log off;
|
||||
alias /app/media;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8000;
|
||||
proxy_set_header Host $host;
|
||||
|
|
Loading…
Reference in a new issue