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.

21 lines
379 B

  1. #!/bin/bash
  2. set -e
  3. . lib/common
  4. DOMAIN=$(relation-get domain) || exit 1
  5. PROTO=$(relation-get protocol) || true
  6. PROTO=${PROTO:-https}
  7. ## These are mainly to setup the correct web-hook
  8. if [ "$MASTER_BASE_SERVICE_NAME" == "$DOMAIN" ]; then
  9. ## This is because the IP will be the docker container version
  10. PROTO=http
  11. fi
  12. ini_merge <<EOF
  13. http:
  14. host: $PROTO://$DOMAIN
  15. EOF