diff --git a/compose.yml b/compose.yml index b4cf3ae..30f4305 100644 --- a/compose.yml +++ b/compose.yml @@ -4,26 +4,24 @@ mydomain.org: # ## Important to keep as a list: otherwise it'll overwrite charm's arguments. # command: # - "--log-level=debug" - # - "--workers=2" ## needed for long-polling # environment: # TOTO: TATA # image: mynewimage + # options: + # workers: 4 relations: web-proxy: frontend: #domain: mydomain.org #server-aliases: # - mydomain2.org - apache-custom-rules: | - ## Auto-redirection from http to https - RewriteEngine On - RewriteCond %{HTTPS} off - 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/ + apache-custom-rules: + - | + ## Auto-redirection from http to https + RewriteEngine On + RewriteCond %{HTTPS} off + RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=302,L,QSA] # ssl: # letsencrypt: