Add private media server using nginx

Use internal nginx root with X-Accel-Redirect header
This commit is contained in:
Edgar P. Burkhart 2022-12-21 14:23:02 +01:00
parent 65af7105b2
commit 043f5e7112
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
4 changed files with 20 additions and 2 deletions

View file

@ -12,4 +12,9 @@ server {
location /static {
alias /srv/nummi;
}
location /media {
internal;
alias /var/lib/nummi;
}
}