|
@ -4,27 +4,25 @@ 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: | |
|
|
|
|
|
|
|
|
apache-custom-rules: |
|
|
|
|
|
- | |
|
|
## Auto-redirection from http to https |
|
|
## Auto-redirection from http to https |
|
|
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: |
|
|
# ssl: |
|
|
# letsencrypt: |
|
|
# letsencrypt: |
|
|
# challenge-type: http ## if 'dns', be sure to prepare 'env' correctly |
|
|
# challenge-type: http ## if 'dns', be sure to prepare 'env' correctly |
|
|