Browse Source

new: longpolling temporary compose solution

master
Valentin Lab 6 years ago
parent
commit
32b28c2e09
  1. 6
      compose.yml

6
compose.yml

@ -7,6 +7,7 @@ odoo:
# ## Important to keep as a list: otherwise it'll overwrite charm's arguments. # ## Important to keep as a list: otherwise it'll overwrite charm's arguments.
# command: # command:
# - "--log-level=debug" # - "--log-level=debug"
# - "--workers=2" ## needed for long-polling
# environment: # environment:
# TOTO: TATA # TOTO: TATA
# image: mynewimage # image: mynewimage
@ -23,6 +24,11 @@ odoo:
RewriteEngine On RewriteEngine On
RewriteCond %{HTTPS} off RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=302,L,QSA] RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=302,L,QSA]
## Uncomment for longpolling (don't forget --workers>=1)
#ProxyPass /longpolling/ http://odoo:8072/longpolling/
#ProxyPassReverse /longpolling/ http://odoo:8072/longpolling/
ssl: letsencrypt ssl: letsencrypt
#server-aliases: #server-aliases:
# - mydomain2.org # - mydomain2.org

Loading…
Cancel
Save