Skip to content
Snippets Groups Projects
Commit cab47adb authored by Bob Mottram's avatar Bob Mottram
Browse files

matrix domain name

parent 24381624
No related branches found
No related tags found
No related merge requests found
......@@ -284,13 +284,18 @@ function matrix_nginx {
function matrix_generate_homeserver_file {
local filepath="${1}"
domain=${MATRIX_DOMAIN_NAME}
if [[ "$ONION_ONLY" != 'no' ]]; then
domain=$(cat /var/lib/tor/hidden_service_matrix/hostname)
fi
cd /etc/matrix || exit 46
$MATRIX_PYTHON -m synapse.app.homeserver \
--config-path "${filepath}" \
--generate-config \
--report-stats ${REPORT_STATS} \
--server-name ${MATRIX_DOMAIN_NAME}
--server-name "${domain}"
}
function matrix_configure_homeserver_yaml {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment