diff options
| author | SEINLET Nicolas <nicolas@seinlet.com> | 2018-02-19 16:07:23 +0100 |
|---|---|---|
| committer | Martin Trigaux <564822+mart-e@users.noreply.github.com> | 2018-02-19 16:07:23 +0100 |
| commit | c3eb0c96217e0811dcec0f1e5296f84081f5c4cb (patch) | |
| tree | e9c9a521682661fd6ab51a8dd005fa110a6b6e95 /doc/setup | |
| parent | 442673e40e60bd3909612e3f56048dec726e329c (diff) | |
[IMP] doc: update deploy guidelines
Set the longpolling request handling before the other ones, for a cleaner config
Closes #23158
Diffstat (limited to 'doc/setup')
| -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; |
