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.

127 lines
4.3 KiB

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