Task #2914
closed
Task #2868: Platform support for publishing.
Add support for Pulp to handle X-SEND and X-Accel-Redirect response headers
Status:
CLOSED - CURRENTRELEASE
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
- Description updated (diff)
- Subject changed from Add support for Apache integration and X-SEND files in Content WSGI application. to Add support for Apache integration and X-SEND files
I think for the foreseable future we will only have 1 WSGI application serving all content requests include API and content requests. I think the adding of XSend support and Apache can continue with that 1 WSGI application and if we want to break it out we could do that as separate work.
- Subject changed from Add support for Apache integration and X-SEND files to Add support for Pulp to handle X-SEND files
- Description updated (diff)
After discussion with @jortel I'm rewriting this to be a xsend task and am creating a new task to create an ansible apache role
- Subject changed from Add support for Pulp to handle X-SEND files to Add support for Pulp to handle X-SEND and X-Accel-Redirect response headers
- Description updated (diff)
Retitling, added checklist items, and groomed. I also updated the description to specify the name webserver
.
- Groomed changed from No to Yes
- Sprint Candidate changed from No to Yes
- Sprint/Milestone set to 47
- Status changed from NEW to ASSIGNED
- Assignee set to jortel@redhat.com
- Status changed from ASSIGNED to POST
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
- Sprint/Milestone deleted (
47)
- Sprint/Milestone set to 3.0.0
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Also available in: Atom
PDF
Support x-send and nginx headers. closes #2914