Sign inSign up

tecnativa/odoo-proxy

By tecnativa

Updated over 8 years ago

Plug & play proxy for using with Odoo in workers mode

Image
1

1.8K

tecnativa/odoo-proxy repository overview

Odoo Proxy

What?

This is a plug & play proxy for using with Odoo in worker mode.

Why?

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.

How?

We use the official Alpine-based HAProxy image with a small configuration file.

Usage

Available environment variables
$FORCEHOST

Defines 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).

$FORWARDFOR

Defines 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.

$LONGPOLLING

Defines where Odoo's longpolling port is listening (default: odoo:8072).

$ODOO

Defines where the Odoo backend is listening (default: odoo:8069).

Useful notes

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.

Feedback

Please send any feedback (issues, questions) to the issue tracker.

Tag summary

Content type

Image

Digest

Size

6.4 MB

Last updated

over 8 years ago

docker pull tecnativa/odoo-proxy