2020-08-18 13:34:20 +00:00
|
|
|
server_name: ${server_name}
|
2020-04-05 09:38:31 +00:00
|
|
|
pid_file: "/var/run/matrix-synapse.pid"
|
|
|
|
public_baseurl: https://${baseurl}/
|
|
|
|
use_presence: true
|
|
|
|
allow_public_rooms_without_auth: false
|
|
|
|
allow_public_rooms_over_federation: false
|
|
|
|
|
|
|
|
federation_ip_range_blacklist:
|
|
|
|
- '127.0.0.0/8'
|
|
|
|
- '10.0.0.0/8'
|
|
|
|
- '172.16.0.0/12'
|
|
|
|
- '192.168.0.0/16'
|
|
|
|
- '100.64.0.0/10'
|
|
|
|
- '169.254.0.0/16'
|
|
|
|
- '::1/128'
|
|
|
|
- 'fe80::/64'
|
|
|
|
- 'fc00::/7'
|
|
|
|
|
|
|
|
listeners:
|
2020-09-20 08:29:19 +00:00
|
|
|
- port: 20081
|
2020-04-05 09:38:31 +00:00
|
|
|
tls: false
|
|
|
|
bind_addresses: ['::1']
|
|
|
|
type: http
|
|
|
|
x_forwarded: true
|
|
|
|
|
|
|
|
resources:
|
|
|
|
- names: [metrics]
|
|
|
|
compress: false
|
|
|
|
|
2020-09-20 08:29:19 +00:00
|
|
|
- port: 20080
|
2020-04-05 09:38:31 +00:00
|
|
|
tls: false
|
|
|
|
bind_addresses: ['::1']
|
|
|
|
type: http
|
|
|
|
x_forwarded: true
|
|
|
|
|
|
|
|
resources:
|
|
|
|
- names: [client, federation]
|
|
|
|
compress: false
|
|
|
|
|
|
|
|
admin_contact: '${admin_contact}'
|
|
|
|
database:
|
|
|
|
name: "psycopg2"
|
|
|
|
args:
|
|
|
|
user: "${database['user']}"
|
|
|
|
database: "${database['database']}"
|
|
|
|
password: "${database['password']}"
|
|
|
|
host: "${database.get('host', 'localhost')}"
|
|
|
|
cp_min: 5
|
|
|
|
cp_max: 10
|
|
|
|
|
|
|
|
event_cache_size: 1M
|
|
|
|
log_config: "/etc/matrix-synapse/log.yaml"
|
|
|
|
|
|
|
|
enable_media_repo: false
|
|
|
|
enable_registration: false
|
|
|
|
registration_shared_secret: "${registration_shared_secret}"
|
|
|
|
allow_guest_access: false
|
|
|
|
#default_identity_server: https://matrix.org
|
|
|
|
#trusted_third_party_id_servers:
|
|
|
|
# - matrix.org
|
|
|
|
# - vector.im
|
|
|
|
|
|
|
|
enable_metrics: True
|
|
|
|
|
2023-05-20 13:10:57 +00:00
|
|
|
% if appservice_configs:
|
2020-04-05 09:38:31 +00:00
|
|
|
app_service_config_files:
|
2023-05-20 13:10:57 +00:00
|
|
|
% for config in sorted(appservice_configs):
|
2020-04-05 09:38:31 +00:00
|
|
|
- "${config}"
|
2023-05-20 13:10:57 +00:00
|
|
|
% endfor
|
|
|
|
% else:
|
|
|
|
app_service_config_files: []
|
|
|
|
% endif
|
2020-04-05 09:38:31 +00:00
|
|
|
|
|
|
|
signing_key_path: "/etc/matrix-synapse/homeserver.signing.key"
|
|
|
|
trusted_key_servers:
|
|
|
|
% for server in sorted(trusted_key_servers):
|
|
|
|
- server_name: "${server}"
|
|
|
|
% endfor
|
2020-09-12 11:22:16 +00:00
|
|
|
% if 'matrix.org' in trusted_key_servers:
|
|
|
|
suppress_key_server_warning: true
|
|
|
|
%endif
|
2020-04-05 09:38:31 +00:00
|
|
|
|
|
|
|
password_config:
|
2021-02-17 09:56:18 +00:00
|
|
|
enabled: true
|
2020-04-05 09:38:31 +00:00
|
|
|
|
|
|
|
email:
|
2021-02-17 09:56:18 +00:00
|
|
|
enable_notifs: false
|
2023-05-20 13:10:57 +00:00
|
|
|
notif_from: "Matrix <noreply@${server_name}>"
|
2020-04-05 09:38:31 +00:00
|
|
|
|
|
|
|
enable_group_creation: true
|
|
|
|
|
2021-06-05 09:13:19 +00:00
|
|
|
report_stats: false
|