[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:
Julien Castiaux
2022-05-24 14:50:14 +00:00
parent 121be6a81e
commit 0f2b82cb37
2 changed files with 109 additions and 11 deletions
+6
View File
@@ -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