fixed federation

This commit is contained in:
Matthias
2019-07-03 17:26:59 +02:00
parent ad1d4b3c4a
commit 84eb87eb0b
6 changed files with 24 additions and 15 deletions

View File

@@ -65,15 +65,16 @@ if [[ ! -f /app/data/synapse/homeserver.yaml ]]; then
sed -i "s/#url_preview_enabled:.*/url_preview_enabled: true/" homeserver.yaml
sed -i "s/#url_preview_ip_range_blacklist.*/url_preview_ip_range_blacklist:\n - '127.0.0.0\/8'\n - '10.0.0.0\/8'/" homeserver.yaml
sed -i "s/## Server ##/## Server ##\n\nno_tls: True/" homeserver.yaml
# also enable the tls port, not quite sure why this is needed, but without it, no integratiosn are possible
sed -i "s/#- port: 8448/- port: 8448/" homeserver.yaml
sed -i "s/# type: http/ type: http/" homeserver.yaml
sed -i "s/# tls: true/ tls: true/" homeserver.yaml
sed -i "s/# resources:/ resources:/" homeserver.yaml
sed -i "s/# - names: \[client, federation\]/ - names: \[client, federation\]/" homeserver.yaml
sed -i "s/#tls_certificate_path:/tls_certificate_path:/" homeserver.yaml
sed -i "s/#tls_private_key_path:/tls_private_key_path:/" homeserver.yaml
#sed -i "s/#- port: 8448/- port: 8448/" homeserver.yaml
#sed -i "s/# type: http/ type: http/" homeserver.yaml
#sed -i "s/# tls: true/ tls: true/" homeserver.yaml
#sed -i "s/# resources:/ resources:/" homeserver.yaml
#sed -i "s/# - names: \[client, federation\]/ - names: \[client, federation\]/" homeserver.yaml
#sed -i "s/#tls_certificate_path:/tls_certificate_path:/" homeserver.yaml
#sed -i "s/#tls_private_key_path:/tls_private_key_path:/" homeserver.yaml
# get synapse log name and set path
@@ -118,6 +119,9 @@ if [[ ! -f /app/data/synapse/homeserver.yaml ]]; then
sed -i 's/# notif_template_text: .*/ notif_template_text: notif_mail.txt/' homeserver.yaml
sed -i 's/# notif_for_new_users: True/ notif_for_new_users: True/' homeserver.yaml
sed -i "s,#tls_fingerprints:.*,tls_fingerprints: [{sha256: \"${TLS_FINGERPRINT}\"}]," homeserver.yaml
fi
# logs