Browse Source

Añado location para static y mediafiles

main
creylopez 10 months ago
parent
commit
fcced25492
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      nginx/default.conf

+ 8
- 0
nginx/default.conf View File

@ -17,6 +17,14 @@ server {
proxy_redirect off; proxy_redirect off;
} }
location /static/ {
alias /app/wsgi/static/;
}
location /media/ {
alias /app/wsgi/mediafiles/;
}
error_page 500 502 503 504 /50x.html; error_page 500 502 503 504 /50x.html;
location = /50x.html { location = /50x.html {
root /usr/share/nginx/html; root /usr/share/nginx/html;


Loading…
Cancel
Save