Plug & play proxy for using with Odoo in workers mode
1.8K
This is a plug & play proxy for using with Odoo in worker mode.
Because Odoo needs you to redirect requests to URLs starting with
/longpolling to its longpolling port (8072 by default) when you configure
it in workers mode.
We use the official Alpine-based HAProxy image with a small configuration file.
$FORCEHOSTDefines a host that must be forced. For instance, if your instance resides on
www.example.com, example.com, www.example.org and example.org but you
want users to get redirected to www.example.com no matter where they came
from, you should set www.example.com in this variable (default: empty).
$FORWARDFORDefines if the proxy should add the X-Forwarded-* headers to the request
(default: 1 (yes)). If you disable it, it must be because those are already
added by another proxy before this one.
$LONGPOLLINGDefines where Odoo's longpolling port is listening (default: odoo:8072).
$ODOODefines where the Odoo backend is listening (default: odoo:8069).
If you use this container, it means you should enable Odoo's proxy mode.
If you need SSL, then this is not for you. Better go for
haproxy-letsencrypt, which includes an Odoo mode.
Please send any feedback (issues, questions) to the issue tracker.
Content type
Image
Digest
Size
6.4 MB
Last updated
over 8 years ago
docker pull tecnativa/odoo-proxy