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

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  1. odoo:
  2. charm: odoo-tecnativa
  3. options:
  4. admin-password: rantanplan
  5. # docker-compose:
  6. # ## Important to keep as a list: otherwise it'll overwrite charm's arguments.
  7. # command:
  8. # - "--log-level=debug"
  9. # - "--workers=2" ## needed for long-polling
  10. # environment:
  11. # TOTO: TATA
  12. # image: mynewimage
  13. relations:
  14. postgres-database:
  15. postgres:
  16. user: odoo
  17. dbname: odoo
  18. web-proxy:
  19. frontend:
  20. domain: mydomain.org
  21. #server-aliases:
  22. # - mydomain2.org
  23. apache-custom-rules: |
  24. ## Auto-redirection from http to https
  25. RewriteEngine On
  26. RewriteCond %{HTTPS} off
  27. RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=302,L,QSA]
  28. ## Uncomment for longpolling (don't forget --workers>=1)
  29. #ProxyPass /longpolling/ http://odoo:8072/longpolling/
  30. #ProxyPassReverse /longpolling/ http://odoo:8072/longpolling/
  31. ssl:
  32. letsencrypt:
  33. challenge-type: http ## if 'dns', be sure to prepare 'env' correctly
  34. # env:
  35. # ovh:
  36. # ## see: https://api.ovh.com/g934.first_step_with_api
  37. # entrypoint: ovh-eu
  38. # application:
  39. # key: XXX
  40. # secret: YYY
  41. # consumer_key: ZZZ
  42. # ssl: true ## simple auto-signed SSL certificates
  43. # ssl:
  44. # ca-cert:
  45. # -----BEGIN CERTIFICATE-----
  46. # MIIF6TCCA9GgAwIBAgIQBeTcO5Q4qzuFl8umoZhQ4zANBgkqhkiG9w0BAQwFADCB
  47. # iDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0pl
  48. # ...
  49. # m9T8bJUox04FB6b9HbwZ4ui3uRGKLXASUoWNjDNKD/yZkuBjcNqllEdjB+dYxzFf
  50. # BT02Vf6Dsuimrdfp5gJ0iHRc2jTbkNJtUQoj1iM=
  51. # -----END CERTIFICATE-----
  52. # -----BEGIN CERTIFICATE-----
  53. # MIIFdzCCBF+gAwIBAgIQE+oocFv07O0MNmMJgGFDNjANBgkqhkiG9w0BAQwFADBv
  54. # MQswCQYDVQQGEwJTRTEUMBIGA1UEChMLQWRkVHJ1c3QgQUIxJjAkBgNVBAsTHUFk
  55. # ...
  56. # Le9Gclc1Bb+7RrtubTeZtv8jkpHGbkD4jylW6l/VXxRTrPBPYer3IsynVgviuDQf
  57. # Jtl7GQVoP7o81DgGotPmjw7jtHFtQELFhLRAlSv0ZaBIefYdgWOWnU914Ph85I6p
  58. # 0fKtirOMxyHNwu8=
  59. # -----END CERTIFICATE-----
  60. # cert: |
  61. # -----BEGIN CERTIFICATE-----
  62. # MIIF/TCCBOWgAwIBAgIRALUydpTpCApfYMuJchDJv5AwDQYJKoZIhvcNAQELBQAw
  63. # XzELMAkGA1UEBhMCRlIxDjAMBgNVBAgTBVBhcmlzMQ4wDAYDVQQHEwVQYXJpczEO
  64. # ...
  65. # lIxY9HJanHrWvjiz7+eToxXpZJtAPXTx5hxzcJrtWROlq7IJCMIhzr/EVA37jTCk
  66. # Xs5S6mr0T6Dqx6MQkPATSsEEJlLH5wq3DxXQcrMqnM/WHMRYUCkoTl37sXplflHe
  67. # jw==
  68. # -----END CERTIFICATE-----
  69. # key: |
  70. # -----BEGIN PRIVATE KEY-----
  71. # MIIJRQIBADANBgkqhkiG9w0BAQEFAASCCS8wggkrAgEAAoICAQDONqqTCS4CiSi/
  72. # XeNpp2nUsq1299spGc7mlRs+PDrXNHscB5lUB5/yo2yEetYXrJacQ8n4NV9hkID5
  73. # ...
  74. # 44eHDYsofcnRbidGR+QT8PQgiiDNCkbpi2u4QnLTs0w4oW+53ZTyHYEYF2rcLbIb
  75. # vRt4kR4KG6ULXrmsRA4WQjBDJ9vZw2aK+w==
  76. # -----END PRIVATE KEY-----
  77. frontend:
  78. charm: apache
  79. relations:
  80. cert-provider:
  81. letsencrypt
  82. letsencrypt:
  83. options:
  84. email: admin@0k.io
  85. ## General configuration for this service will be applied to all linked
  86. ## services.
  87. # env:
  88. # ovh:
  89. # ## see: https://api.ovh.com/g934.first_step_with_api
  90. # entrypoint: ovh-eu
  91. # application:
  92. # key: XXX
  93. # secret: YYY
  94. # consumer_key: ZZZ
  95. relations:
  96. schedule-command:
  97. cron: ## will schedule renew of certs every week
  98. schedule: "30 3 * * 7" ## min hour day-of-month month day-of-week
  99. ## Cron is present (even if empty) to add it automatically to any
  100. ## ``compose up`` (without arguments).
  101. cron:
  102. # mattermost:
  103. # charm: mattermost
  104. # relations:
  105. # web-proxy:
  106. # frontend:
  107. # domain: mattermost.local ## <-- modify this
  108. # ssl: letsencrypt
  109. # apache-custom-rules: |
  110. # ProxyPreserveHost On
  111. #
  112. # # Set web sockets
  113. # RewriteEngine On
  114. # RewriteCond %{REQUEST_URI} /api/v[0-9]+/(users/)?websocket [NC,OR]
  115. # RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC,OR]
  116. # RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
  117. # RewriteRule .* ws://mattermost:8000%{REQUEST_URI} [P,QSA,L]
  118. # postgres-database:
  119. # postgres:
  120. # user: mattermost
  121. # dbname: mattermost
  122. # bitwarden:
  123. # relations:
  124. # web-proxy:
  125. # frontend:
  126. # domain: bitwarden.mydomain.com
  127. # ## We need to specify here the port as it can't be infered easily as
  128. # ## there are 2 ports exposed by the image.
  129. # target: bitwarden:80
  130. # ssl: letsencrypt