Skip to content

Commit

Permalink
Default to proxied env. (#69)
Browse files Browse the repository at this point in the history
* Default to proxied env.

This means only listen to addresses at loopback if, and enable the odoo flag to enable proxied mode (modifies certain http headers)
  • Loading branch information
raneq authored Aug 30, 2019
1 parent d31c548 commit 8aa243f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ odoo_daemon: "odoo.service"
odoo_role_demo_data: false

# HTTP server settings
odoo_role_odoo_http_interface: "0.0.0.0"
odoo_role_odoo_proxy_mode: false
odoo_role_odoo_http_interface: "127.0.0.1"
odoo_role_odoo_proxy_mode: true
4 changes: 2 additions & 2 deletions templates/odoo.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ addons_path = {{ odoo_role_odoo_path }}/addons,{{ odoo_role_odoo_modules_path }}
admin_passwd = {{ odoo_role_odoo_db_admin_password }}

; HTTP server settings
http_interface = {{ odoo_role_odoo_http_interface | default('0.0.0.0') }}
proxy_mode = {{ odoo_role_odoo_proxy_mode | default(false) }}
http_interface = {{ odoo_role_odoo_http_interface }}
proxy_mode = {{ odoo_role_odoo_proxy_mode }}

{% if ( odoo_role_odoo_dbs | count ) > 1 and odoo_role_dbfilter_enabled %}
; Before login, use only the database that matches full domain of Host header
Expand Down

0 comments on commit 8aa243f

Please sign in to comment.