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

#!/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