Skip to content
Snippets Groups Projects
Commit 5c0a8948 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

Redirect request to media volume forward django to filter access to user uploaded files

parent e2dc465e
No related branches found
No related tags found
No related merge requests found
......@@ -51,12 +51,20 @@ server {
proxy_pass http://geocontrib_site;
}
location /geocontrib/static/ {
alias /opt/geocontrib/static/;
location /geocontrib/media/ {
proxy_pass_header Set-Cookie;
proxy_set_header X-NginX-Proxy true;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_read_timeout 300s;
proxy_redirect off;
proxy_pass http://geocontrib_site
}
location /geocontrib/media/ {
alias /opt/geocontrib/media/;
location /geocontrib/static/ {
alias /opt/geocontrib/static/;
}
location /geocontrib/ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment