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.

23 lines
301 B

  1. #!/bin/bash
  2. set -e
  3. . lib/common
  4. DOMAIN=$(relation-get domain) || exit 1
  5. url=$(relation-get url)
  6. if [ "${url%://*}" == "https" ]; then
  7. no_tls=" SYNAPSE_NO_TLS: 'yes'"
  8. else
  9. no_tls=
  10. fi
  11. init-config-add "
  12. $SERVICE_NAME:
  13. environment:
  14. SYNAPSE_SERVER_NAME: $DOMAIN
  15. $no_tls
  16. " || exit 1