#!/bin/bash set -e . lib/common DOMAIN=$(relation-get domain) || exit 1 url=$(relation-get url) if [ "${url%://*}" == "https" ]; then no_tls=" SYNAPSE_NO_TLS: 'yes'" else no_tls= fi init-config-add " $SERVICE_NAME: environment: SYNAPSE_SERVER_NAME: $DOMAIN $no_tls " || exit 1