fork 0k-charms
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.

22 lines
410 B

  1. #!/bin/bash
  2. set -e
  3. DOMAIN=$(relation-get domain) || exit 1
  4. ## These are mainly to setup the correct web-hook
  5. if [ "$MASTER_BASE_SERVICE_NAME" == "$DOMAIN" ]; then
  6. ## This is because the IP will be the docker container version
  7. USESSL=""
  8. else
  9. USESSL="CMD_PROTOCOL_USESSL: 'true'"
  10. fi
  11. config-add "\
  12. services:
  13. $MASTER_BASE_SERVICE_NAME:
  14. environment:
  15. CMD_DOMAIN: $DOMAIN
  16. $USESSL
  17. "