From 78b127b8df70a2060d8d08e69ac9d9fddfb4fcd1 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 21 Jul 2019 12:44:15 +0200 Subject: o odoo. --- ansible/numquam.yml | 19 ++++++++++++++++--- ansible/odoo/odoo.yml | 10 +++++++++- 2 files changed, 25 insertions(+), 4 deletions(-) (limited to 'ansible') diff --git a/ansible/numquam.yml b/ansible/numquam.yml index 35fff62..e423886 100644 --- a/ansible/numquam.yml +++ b/ansible/numquam.yml @@ -57,10 +57,11 @@ ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot location / { - try_files $uri @proxy; - } + # try_files $uri @proxy; + # } + # - location @proxy { + # location @proxy { proxy_set_header Host $host; # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # proxy_set_header X-Forwarded-Proto $scheme; @@ -69,6 +70,18 @@ proxy_read_timeout 300s; proxy_send_timeout 300s; } + + location /longpolling { + proxy_pass http://127.0.0.1:8070; + } + + # # cache some static data in memory for 60mins + # location ~* /web/static/ { + # proxy_cache_valid 200 60m; + # proxy_buffering on; + # expires 864000; + # proxy_pass http://127.0.0.1:8069; + # } } server { diff --git a/ansible/odoo/odoo.yml b/ansible/odoo/odoo.yml index e5425c6..6897034 100644 --- a/ansible/odoo/odoo.yml +++ b/ansible/odoo/odoo.yml @@ -1,6 +1,11 @@ - hosts: - numquam tasks: + - become: yes + file: + path: /etc/odoo + state: absent + - become: yes copy: dest: /etc/systemd/system/docker.odoo.service @@ -26,8 +31,11 @@ --name odoo -t \ odoo \ --workers=5 \ + --http-port=8069 \ + --longpolling-port=8070 \ --email-from=odoo@trygvis.io \ - --smtp=172.17.0.1 + --smtp=172.17.0.1 \ + --proxy-mode [Install] WantedBy=multi-user.target -- cgit v1.2.3