diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-02-22 10:39:15 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-02-22 10:39:15 +0100 |
| commit | 9a84ba55330204c49e9c72d9e53660dfd11556ae (patch) | |
| tree | 10c207733941a30d5ab86285ecb1c8b130c14200 /doc/setup/deploy.rst | |
| parent | 898cd0a5c1a9696f051477c1318a76c31eb40a16 (diff) | |
| parent | e750bb6e1149cb05e13424d66d4ff12198b4cffe (diff) | |
[MERGE] forward port branch saas-11.1 up to e750bb6e114
Diffstat (limited to 'doc/setup/deploy.rst')
| -rw-r--r-- | doc/setup/deploy.rst | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/doc/setup/deploy.rst b/doc/setup/deploy.rst index b0a5cf3224e..6a1e22f886c 100644 --- a/doc/setup/deploy.rst +++ b/doc/setup/deploy.rst @@ -214,6 +214,13 @@ Instead you must have a proxy redirecting requests whose URL starts with ``/longpolling/`` to the longpolling port. Other request should be proxied to the :option:`normal HTTP port <odoo-bin --http-port>` +To achieve such a thing, you'll need to deploy a reverse proxy in front of Odoo, +like nginx or apache. When doing so, you'll need to forward some more http Headers +to Odoo, and activate the proxy_mode in Odoo configuration to have Odoo read those +headers. + + + Configuration sample -------------------- @@ -316,16 +323,18 @@ in ``/etc/nginx/sites-enabled/odoo.conf`` set: # log access_log /var/log/nginx/odoo.access.log; error_log /var/log/nginx/odoo.error.log; - + + # Redirect longpoll requests to odoo longpolling port + location /longpolling { + proxy_pass http://odoochat; + } + # Redirect requests to odoo backend server location / { proxy_redirect off; proxy_pass http://odoo; } - location /longpolling { - proxy_pass http://odoochat; - } - + # common gzip gzip_types text/css text/less text/plain text/xml application/xml application/json application/javascript; gzip on; |
