Project

Profile

Help

Task #2914

closed

Task #2868: Platform support for publishing.

Add support for Pulp to handle X-SEND and X-Accel-Redirect response headers

Added by jortel@redhat.com over 7 years ago. Updated almost 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Sprint:
Sprint 28
Quarter:

Description

The ContentView needs to be updated to detect if XSEND can/should be used to stream bits. The pulp2 code[0] to add the X-SENDFILE header should also be ported.

It should be noted that nginx does not use the X-SENDFILE header, but rather the X-Accel-Redirect header.

It would be good to support either of these servers. Prehaps a default property named webserver in settings.py and a user config in server.yaml that defaults to None, and can be set to None, apache, or nginx

[0] https://github.com/pulp/pulp/blob/96db0a2eefe12683cd439d9a00e57a4da0876dbc/server/pulp/server/content/web/views.py#L74

Also available in: Atom PDF