diff --git a/README.md b/README.md index 6f68791..3299e8c 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,15 @@ odoo_role_odoo_db_admin_password: 1234 odoo_role_demo_data: false ``` +* Odoo HTTP server settings + +``` +# Set this to 127.0.0.1 when Odoo runs behind a reverse proxy +odoo_role_odoo_http_interface: 0.0.0.0 +# Set this to true when Odoo runs behind a reverse proxy +odoo_role_odoo_proxy_mode: false +``` + * Core modules list to install/update ``` diff --git a/defaults/main.yml b/defaults/main.yml index 297b09e..343d035 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -42,3 +42,7 @@ odoo_daemon: "odoo.service" # Whether to populate db with example data or not. odoo_role_demo_data: false + +# HTTP server settings +odoo_role_odoo_http_interface: "0.0.0.0" +odoo_role_odoo_proxy_mode: false diff --git a/templates/odoo.conf.j2 b/templates/odoo.conf.j2 index 4e077ae..2d687b2 100644 --- a/templates/odoo.conf.j2 +++ b/templates/odoo.conf.j2 @@ -8,3 +8,7 @@ addons_path = {{ odoo_role_odoo_path }}/addons,{{ odoo_role_odoo_modules_path }} ; Master password to manage dbs admin_passwd = {{ odoo_role_odoo_db_admin_password }} + +; HTTP server settings +http_interface = {{ odoo_role_odoo_http_interface }} +proxy_mode = {{ odoo_role_odoo_proxy_mode }}