run synapse on custom port so it doesn't interfere with other synapses on dev machines
This commit is contained in:
@@ -86,7 +86,7 @@ web_client: True
|
||||
# web_client_location: "/path/to/web/root"
|
||||
|
||||
# The public-facing base URL for the client API (not including _matrix/...)
|
||||
public_baseurl: http://localhost:8008/
|
||||
public_baseurl: http://localhost:{{SYNAPSE_PORT}}/
|
||||
|
||||
# Set the soft limit on the number of file descriptors synapse can use
|
||||
# Zero is used to indicate synapse should set the soft limit to the
|
||||
@@ -166,7 +166,7 @@ listeners:
|
||||
|
||||
# Unsecure HTTP listener,
|
||||
# For when matrix traffic passes through loadbalancer that unwraps TLS.
|
||||
- port: 8008
|
||||
- port: {{SYNAPSE_PORT}}
|
||||
tls: false
|
||||
bind_addresses: ['::', '0.0.0.0']
|
||||
type: http
|
||||
@@ -693,5 +693,5 @@ user_consent:
|
||||
server_notices:
|
||||
system_mxid_localpart: notices
|
||||
system_mxid_display_name: "Server Notices"
|
||||
system_mxid_avatar_url: "mxc://localhost:8008/oumMVlgDnLYFaPVkExemNVVZ"
|
||||
system_mxid_avatar_url: "mxc://localhost:{{SYNAPSE_PORT}}/oumMVlgDnLYFaPVkExemNVVZ"
|
||||
room_name: "Server Notices"
|
||||
|
||||
+2
-2
@@ -4,7 +4,7 @@ SYNAPSE_BRANCH=master
|
||||
INSTALLATION_NAME=consent
|
||||
SERVER_DIR=installations/$INSTALLATION_NAME
|
||||
CONFIG_TEMPLATE=consent
|
||||
PORT=8008
|
||||
PORT=5005
|
||||
# set current directory to script directory
|
||||
BASE_DIR=$(readlink -f $(dirname $0))
|
||||
|
||||
@@ -33,7 +33,7 @@ python -m synapse.app.homeserver \
|
||||
# apply configuration
|
||||
cp -r $BASE_DIR/config-templates/$CONFIG_TEMPLATE/. ./
|
||||
sed -i "s#{{SYNAPSE_ROOT}}#$(pwd)/#g" homeserver.yaml
|
||||
sed -i "s#{{SYNAPSE_PORT}}#${PORT}/#g" homeserver.yaml
|
||||
sed -i "s#{{SYNAPSE_PORT}}#${PORT}#g" homeserver.yaml
|
||||
sed -i "s#{{FORM_SECRET}}#$(uuidgen)#g" homeserver.yaml
|
||||
sed -i "s#{{REGISTRATION_SHARED_SECRET}}#$(uuidgen)#g" homeserver.yaml
|
||||
sed -i "s#{{MACAROON_SECRET_KEY}}#$(uuidgen)#g" homeserver.yaml
|
||||
|
||||
Reference in New Issue
Block a user