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.

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