|
@ -4,26 +4,24 @@ mydomain.org: |
|
|
# ## 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 |
|
|
|
|
|
|
|
|
|
|
|
# options: |
|
|
|
|
|
# workers: 4 |
|
|
relations: |
|
|
relations: |
|
|
web-proxy: |
|
|
web-proxy: |
|
|
frontend: |
|
|
frontend: |
|
|
#domain: mydomain.org |
|
|
#domain: mydomain.org |
|
|
#server-aliases: |
|
|
#server-aliases: |
|
|
# - mydomain2.org |
|
|
# - 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: |
|
|
# ssl: |
|
|
# letsencrypt: |
|
|
# letsencrypt: |
|
|