Support Nginx X-Accel-Redirect header #295

Open
opened 2022-11-06 12:15:31 +01:00 by Jef Roosens · 1 comment

Nginx can serve auth-protected files for you when providing this header (docs.

My idea right now is to add a configuration option that would replace Vieter's file serving code with a dummy response that simply sends this header. Nginx would then be responsible for properly serving the files (much faster than Vieter I reckon).

I might be able to add this as a storage_type, with the default value being local & the option being local_nginx_x_accel or something like that.

Nginx can serve auth-protected files for you when providing this header ([docs](https://www.nginx.com/resources/wiki/start/topics/examples/x-accel/). My idea right now is to add a configuration option that would replace Vieter's file serving code with a dummy response that simply sends this header. Nginx would then be responsible for properly serving the files (much faster than Vieter I reckon). I might be able to add this as a `storage_type`, with the default value being `local` & the option being `local_nginx_x_accel` or something like that.
Jef Roosens added this to the 0.5.0 milestone 2022-11-06 12:15:31 +01:00
Jef Roosens added the
enhancement
label 2022-11-06 12:15:31 +01:00
Jef Roosens added this to the (deleted) project 2022-11-06 12:15:31 +01:00

The abstraction required for this could perhaps later be used to support other storage backends (I'd like to use S3 storage myself at some point if possible).

The abstraction required for this could perhaps later be used to support other storage backends (I'd like to use S3 storage myself at some point if possible).
Jef Roosens removed this from the 0.5.0 milestone 2022-11-07 22:01:22 +01:00
Jef Roosens removed this from the (deleted) project 2022-11-07 22:01:24 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vieter-v/vieter#295
There is no content yet.