Skip to content

Commit

Permalink
Merge pull request #58 from coopdevs/fix/odoo-http-server-binding
Browse files Browse the repository at this point in the history
Allow custom Odoo HTTP server binding interface
  • Loading branch information
raneq authored Jul 12, 2019
2 parents caa2321 + 176f4e7 commit e40405c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

```
Expand Down
4 changes: 4 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions templates/odoo.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit e40405c

Please sign in to comment.