diff --git a/frontend/nginx.conf b/frontend/nginx.conf index 8f53422..27fd6cc 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -8,10 +8,17 @@ server { try_files $uri $uri/ /index.html; } - # Proxy API to backend + # Proxy API and static files to backend location /api/ { proxy_pass http://backend:8000/api/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; } + + location /files/ { + proxy_pass http://backend:8000/files/; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_buffering off; + } }