I am building a music player application with Django + nginx for which I need a backend which supports byte range requests.
Django is authenticating the media file correctly but django dev server does not support range requests (206 partial response). Nginx directly serves byte range requests after using this configuration, I verified that the response header has content range. However I am unable to forward the request from django to nginx, to serve the content.
I tried using X-Accel-Redirect in a django view but still the response header doesn't have content range the way it would have been if the file had been directly served by nginx.
- Django dev server - Authentication done but no byte range support (response 200)
- Nginx - No authentication, byte range request support (response 206)
- Django view + X-Accel-Redirect + nginx - Authentication done but no byte range support (response 200)
So I am trying to find a way to authenticate using Django and provide support for byte range requests with nginx or another static file server.