67 lines
1.5 KiB
YAML
67 lines
1.5 KiB
YAML
# Configuration file for Synapse.
|
|
#
|
|
# For more information on how to configure Synapse, including a complete accounting of
|
|
# each option, go to docs/usage/configuration/config_documentation.md or
|
|
# https://element-hq.github.io/synapse/latest/usage/configuration/config_documentation.html
|
|
|
|
server_name: "4rs.nl"
|
|
pid_file: /data/homeserver.pid
|
|
listeners:
|
|
- port: 8008
|
|
tls: false
|
|
type: http
|
|
x_forwarded: true
|
|
resources:
|
|
- names: [client, federation]
|
|
compress: false
|
|
|
|
database:
|
|
name: psycopg2
|
|
args:
|
|
user: synapse
|
|
password: somepassword
|
|
host: postgresql
|
|
database: synapse
|
|
cp_min: 5
|
|
cp_max: 10
|
|
|
|
log_config: "/data/4rs.nl.log.config"
|
|
media_store_path: /data/media_store
|
|
signing_key_path: "/data/4rs.nl.signing.key"
|
|
|
|
# Run `openssl rand -base64 32` for each one
|
|
registration_shared_secret: "<YOUR_SECRET_HERE>"
|
|
macaroon_secret_key: "<YOUR_SECRET_HERE>"
|
|
form_secret: "<YOUR_SECRET_HERE>"
|
|
|
|
enable_registration: false
|
|
url_preview_enabled: true
|
|
url_preview_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'
|
|
- '192.0.0.0/24'
|
|
- '169.254.0.0/16'
|
|
- '192.88.99.0/24'
|
|
- '198.18.0.0/15'
|
|
- '192.0.2.0/24'
|
|
- '198.51.100.0/24'
|
|
- '203.0.113.0/24'
|
|
- '224.0.0.0/4'
|
|
- '::1/128'
|
|
- 'fe80::/10'
|
|
- 'fc00::/7'
|
|
- '2001:db8::/32'
|
|
- 'ff00::/8'
|
|
- 'fec0::/10'
|
|
|
|
presence:
|
|
enabled: false
|
|
report_stats: false
|
|
trusted_key_servers:
|
|
- server_name: "matrix.org"
|
|
|
|
delete_stale_devices_after: 1y
|
|
admin_contact: 'mailto:a@4rs.nl'
|