fix nginx media serve

This commit is contained in:
godd0t
2023-05-10 15:53:47 +02:00
parent 459fe09307
commit 32276412fc
2 changed files with 11 additions and 3 deletions

View File

@@ -8,9 +8,14 @@ http {
server {
listen 80;
location ~ ^/(images|javascript|js|css|flash|media|static)/ {
location /static {
autoindex on;
alias /usr/src/app/;
alias /usr/src/app/static/;
}
location /media {
autoindex on;
alias /usr/src/app/media/;
}
}
}