Skip to content

Commit

Permalink
modify rengine.conf nginx to not serve media files unauthenticated
Browse files Browse the repository at this point in the history
  • Loading branch information
yogeshojha committed Jul 4, 2024
1 parent 3805a41 commit bd95609
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/nginx/rengine.conf
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ server {
alias /usr/src/app/staticfiles/;
}

location /media/ {
location /protected_media/ {
internal;
alias /usr/src/scan_results/;
autoindex off;
}

ssl_protocols TLSv1.2;
Expand Down

0 comments on commit bd95609

Please sign in to comment.