You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
143 lines
4.7 KiB
143 lines
4.7 KiB
odoo:
|
|
charm: odoo-tecnativa
|
|
options:
|
|
admin-password: rantanplan
|
|
|
|
# docker-compose:
|
|
# ## 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
|
|
|
|
relations:
|
|
postgres-database:
|
|
postgres:
|
|
user: odoo
|
|
dbname: odoo
|
|
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/
|
|
|
|
ssl:
|
|
letsencrypt:
|
|
challenge-type: http ## if 'dns', be sure to prepare 'env' correctly
|
|
# env:
|
|
# ovh:
|
|
# ## see: https://api.ovh.com/g934.first_step_with_api
|
|
# entrypoint: ovh-eu
|
|
# application:
|
|
# key: XXX
|
|
# secret: YYY
|
|
# consumer_key: ZZZ
|
|
# ssl: true ## simple auto-signed SSL certificates
|
|
# ssl:
|
|
# ca-cert:
|
|
# -----BEGIN CERTIFICATE-----
|
|
# MIIF6TCCA9GgAwIBAgIQBeTcO5Q4qzuFl8umoZhQ4zANBgkqhkiG9w0BAQwFADCB
|
|
# iDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0pl
|
|
# ...
|
|
# m9T8bJUox04FB6b9HbwZ4ui3uRGKLXASUoWNjDNKD/yZkuBjcNqllEdjB+dYxzFf
|
|
# BT02Vf6Dsuimrdfp5gJ0iHRc2jTbkNJtUQoj1iM=
|
|
# -----END CERTIFICATE-----
|
|
# -----BEGIN CERTIFICATE-----
|
|
# MIIFdzCCBF+gAwIBAgIQE+oocFv07O0MNmMJgGFDNjANBgkqhkiG9w0BAQwFADBv
|
|
# MQswCQYDVQQGEwJTRTEUMBIGA1UEChMLQWRkVHJ1c3QgQUIxJjAkBgNVBAsTHUFk
|
|
# ...
|
|
# Le9Gclc1Bb+7RrtubTeZtv8jkpHGbkD4jylW6l/VXxRTrPBPYer3IsynVgviuDQf
|
|
# Jtl7GQVoP7o81DgGotPmjw7jtHFtQELFhLRAlSv0ZaBIefYdgWOWnU914Ph85I6p
|
|
# 0fKtirOMxyHNwu8=
|
|
# -----END CERTIFICATE-----
|
|
# cert: |
|
|
# -----BEGIN CERTIFICATE-----
|
|
# MIIF/TCCBOWgAwIBAgIRALUydpTpCApfYMuJchDJv5AwDQYJKoZIhvcNAQELBQAw
|
|
# XzELMAkGA1UEBhMCRlIxDjAMBgNVBAgTBVBhcmlzMQ4wDAYDVQQHEwVQYXJpczEO
|
|
# ...
|
|
# lIxY9HJanHrWvjiz7+eToxXpZJtAPXTx5hxzcJrtWROlq7IJCMIhzr/EVA37jTCk
|
|
# Xs5S6mr0T6Dqx6MQkPATSsEEJlLH5wq3DxXQcrMqnM/WHMRYUCkoTl37sXplflHe
|
|
# jw==
|
|
# -----END CERTIFICATE-----
|
|
# key: |
|
|
# -----BEGIN PRIVATE KEY-----
|
|
# MIIJRQIBADANBgkqhkiG9w0BAQEFAASCCS8wggkrAgEAAoICAQDONqqTCS4CiSi/
|
|
# XeNpp2nUsq1299spGc7mlRs+PDrXNHscB5lUB5/yo2yEetYXrJacQ8n4NV9hkID5
|
|
# ...
|
|
# 44eHDYsofcnRbidGR+QT8PQgiiDNCkbpi2u4QnLTs0w4oW+53ZTyHYEYF2rcLbIb
|
|
# vRt4kR4KG6ULXrmsRA4WQjBDJ9vZw2aK+w==
|
|
# -----END PRIVATE KEY-----
|
|
|
|
|
|
frontend:
|
|
charm: apache
|
|
relations:
|
|
cert-provider:
|
|
letsencrypt
|
|
|
|
|
|
letsencrypt:
|
|
options:
|
|
email: admin@0k.io
|
|
## General configuration for this service will be applied to all linked
|
|
## services.
|
|
# env:
|
|
# ovh:
|
|
# ## see: https://api.ovh.com/g934.first_step_with_api
|
|
# entrypoint: ovh-eu
|
|
# application:
|
|
# key: XXX
|
|
# secret: YYY
|
|
# consumer_key: ZZZ
|
|
relations:
|
|
schedule-command:
|
|
cron: ## will schedule renew of certs every week
|
|
schedule: "30 3 * * 7" ## min hour day-of-month month day-of-week
|
|
|
|
|
|
## Cron is present (even if empty) to add it automatically to any
|
|
## ``compose up`` (without arguments).
|
|
cron:
|
|
|
|
|
|
# mattermost:
|
|
# charm: mattermost
|
|
# relations:
|
|
# web-proxy:
|
|
# frontend:
|
|
# domain: mattermost.local ## <-- modify this
|
|
# ssl: letsencrypt
|
|
# apache-custom-rules: |
|
|
# ProxyPreserveHost On
|
|
#
|
|
# # Set web sockets
|
|
# RewriteEngine On
|
|
# RewriteCond %{REQUEST_URI} /api/v[0-9]+/(users/)?websocket [NC,OR]
|
|
# RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC,OR]
|
|
# RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
|
|
# RewriteRule .* ws://mattermost:8000%{REQUEST_URI} [P,QSA,L]
|
|
# postgres-database:
|
|
# postgres:
|
|
# user: mattermost
|
|
# dbname: mattermost
|
|
|
|
# bitwarden:
|
|
# relations:
|
|
# web-proxy:
|
|
# frontend:
|
|
# domain: bitwarden.mydomain.com
|
|
# ## We need to specify here the port as it can't be infered easily as
|
|
# ## there are 2 ports exposed by the image.
|
|
# target: bitwarden:80
|
|
# ssl: letsencrypt
|