Server media with nginx

This commit is contained in:
Jannis Portmann 2023-04-16 00:43:19 +02:00
parent 184233c574
commit 094a5ac345

View file

@ -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;