#2: serve static and media files via nginx

This commit is contained in:
Lexi / Zoe 2019-10-21 01:49:37 +02:00
parent 3c1fec3f63
commit 0fdf7029e4
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
3 changed files with 24 additions and 1 deletions

View file

@ -11,4 +11,12 @@ server {
proxy_set_header Host $host;
proxy_redirect off;
}
location /staticfiles {
alias /srv/http/staticfiles;
}
location /mediafiles {
alias /srv/http/mediafiles;
}
}