run synapse on custom port so it doesn't interfere with other synapses on dev machines
This commit is contained in:
parent
2a7438e9fb
commit
643af2d344
3 changed files with 8 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"default_hs_url": "http://localhost:8008",
|
"default_hs_url": "http://localhost:5005",
|
||||||
"default_is_url": "https://vector.im",
|
"default_is_url": "https://vector.im",
|
||||||
"disable_custom_urls": false,
|
"disable_custom_urls": false,
|
||||||
"disable_guests": false,
|
"disable_guests": false,
|
||||||
|
@ -18,12 +18,12 @@
|
||||||
"default_theme": "light",
|
"default_theme": "light",
|
||||||
"roomDirectory": {
|
"roomDirectory": {
|
||||||
"servers": [
|
"servers": [
|
||||||
"localhost:8008"
|
"localhost:5005"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"piwik": {
|
"piwik": {
|
||||||
"url": "https://piwik.riot.im/",
|
"url": "https://piwik.riot.im/",
|
||||||
"whitelistedHSUrls": ["http://localhost:8008"],
|
"whitelistedHSUrls": ["http://localhost:5005"],
|
||||||
"whitelistedISUrls": ["https://vector.im", "https://matrix.org"],
|
"whitelistedISUrls": ["https://vector.im", "https://matrix.org"],
|
||||||
"siteId": 1
|
"siteId": 1
|
||||||
},
|
},
|
||||||
|
|
|
@ -86,7 +86,7 @@ web_client: True
|
||||||
# web_client_location: "/path/to/web/root"
|
# web_client_location: "/path/to/web/root"
|
||||||
|
|
||||||
# The public-facing base URL for the client API (not including _matrix/...)
|
# 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
|
# 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
|
# Zero is used to indicate synapse should set the soft limit to the
|
||||||
|
@ -166,7 +166,7 @@ listeners:
|
||||||
|
|
||||||
# Unsecure HTTP listener,
|
# Unsecure HTTP listener,
|
||||||
# For when matrix traffic passes through loadbalancer that unwraps TLS.
|
# For when matrix traffic passes through loadbalancer that unwraps TLS.
|
||||||
- port: 8008
|
- port: {{SYNAPSE_PORT}}
|
||||||
tls: false
|
tls: false
|
||||||
bind_addresses: ['::', '0.0.0.0']
|
bind_addresses: ['::', '0.0.0.0']
|
||||||
type: http
|
type: http
|
||||||
|
@ -693,5 +693,5 @@ user_consent:
|
||||||
server_notices:
|
server_notices:
|
||||||
system_mxid_localpart: notices
|
system_mxid_localpart: notices
|
||||||
system_mxid_display_name: "Server 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"
|
room_name: "Server Notices"
|
||||||
|
|
|
@ -4,7 +4,7 @@ SYNAPSE_BRANCH=master
|
||||||
INSTALLATION_NAME=consent
|
INSTALLATION_NAME=consent
|
||||||
SERVER_DIR=installations/$INSTALLATION_NAME
|
SERVER_DIR=installations/$INSTALLATION_NAME
|
||||||
CONFIG_TEMPLATE=consent
|
CONFIG_TEMPLATE=consent
|
||||||
PORT=8008
|
PORT=5005
|
||||||
# set current directory to script directory
|
# set current directory to script directory
|
||||||
BASE_DIR=$(readlink -f $(dirname $0))
|
BASE_DIR=$(readlink -f $(dirname $0))
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ python -m synapse.app.homeserver \
|
||||||
# apply configuration
|
# apply configuration
|
||||||
cp -r $BASE_DIR/config-templates/$CONFIG_TEMPLATE/. ./
|
cp -r $BASE_DIR/config-templates/$CONFIG_TEMPLATE/. ./
|
||||||
sed -i "s#{{SYNAPSE_ROOT}}#$(pwd)/#g" homeserver.yaml
|
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#{{FORM_SECRET}}#$(uuidgen)#g" homeserver.yaml
|
||||||
sed -i "s#{{REGISTRATION_SHARED_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
|
sed -i "s#{{MACAROON_SECRET_KEY}}#$(uuidgen)#g" homeserver.yaml
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue