Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Default to proxied env. #69

Merged
merged 2 commits into from
Aug 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,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 %}
; Before login, use only the database that matches subdomain of Host header
Expand Down