[IMP] install/deploy: serve static file/attachment
Odoo is compatible with X-Sendfile (apache) and X-Accel (nginx). They are web server extension that can be used by the web application (Odoo) to delegate serving local files to the web server (apache/nginx). We use those extension to stream attachments. The documentation now explains what is X-Sendfile/X-Accel and how to configure each web server. Along those changes, the few sentences about serving static files have been reworded and now include various configuration examples. closes odoo/documentation#2083 Task: 2801675 Related: odoo/odoo#88134 Related: odoo/enterprise#26191 Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
@@ -430,6 +430,12 @@ HTTP
|
||||
.. warning:: proxy mode *must not* be enabled outside of a reverse proxy
|
||||
scenario
|
||||
|
||||
.. option:: --x-sendfile
|
||||
|
||||
delegates serving attachments files to the static web server and sets both
|
||||
``X-Sendfile`` (apache) and ``X-Accel-*`` (nginx) http headers on stream
|
||||
responses. See :ref:`deploy/streaming` for web server configuration.
|
||||
|
||||
.. _reference/cmdline/server/logging:
|
||||
|
||||
Logging
|
||||
|
||||
Reference in New Issue
Block a user