Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6240465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:34:33+00:00 2026-05-24T11:34:33+00:00

We want to serve protected media from django, using something similar to the django

  • 0

We want to serve protected media from django, using something similar to the django nginx x-accel-redirect setup.

The only problem is that the static files are not located on the public facing django/nginx machine, but in a internal machine that streams the file via http/rest api.

Currently we download the file on the nginx machine and serve it via nginx x-accel-redirect, but we want to optimize this part and looking for options. x-accel-redirect has known problems with files that are streamed from another source.

We are contemplating using django itself as a quasi buffer, but are open to other options as integrating something like whizzer/twisted, or maybe even having another service altogether.

What would be the best option for serving those static files and preserving security?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T11:34:34+00:00Added an answer on May 24, 2026 at 11:34 am

    Use: http://www.allbuttonspressed.com/projects/django-filetransfers

    Make your own Django storage backend for the internal machine’s http/rest api, that returns
    a File object, and pass that object to filetransfer’s server_file function.

    That’s how I do it in Mayan EDMS https://github.com/rosarior/mayan/blob/master/apps/documents/views.py#L300

    django-storages’ backends could help you get started.

    https://bitbucket.org/david/django-storages/wiki/Home

    Update:

    Django_resto appears to have an http based storage class

    https://github.com/aaugustin/django-resto/blob/master/django_resto/storage.py#L62

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to serve my css and images from a static cookieless domain. Now
Say I have a web service where I want to serve the content only
I want to fetch some data from a server protected with an username and
I want to download a file from a Sharepoint server that protected with NTLM
I want to access a FTP Server, that is firewall protected meaning only IP
I want to download pdf from server and store on sdcard. I try something
Similar to another question (cf. Filtering static content Jersey ) I want to serve
I am using AsyncTask to get data from a server and want to show
I have a server application which I want to protect from being stopped by
I want to serve a mp4 video in a HTML document but it doesn't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.