-
Notifications
You must be signed in to change notification settings - Fork 1
/
homeserver.yaml
143 lines (132 loc) · 3.06 KB
/
homeserver.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
server_name: yourdomain.co
serve_server_wellknown: true
enable_metrics: true
suppress_key_server_warning: true
report_stats: false
pid_file: /var/run/matrix-synapse.pid
listeners:
- port: 8080
tls: false
type: http
x_forwarded: true
bind_addresses: ['127.0.0.1']
resources:
- names: [replication, health]
- type: http
port: 8448
x_forwarded: true
bind_addresses: ['0.0.0.0']
resources:
- names: [client, federation]
compress: true
- port: 9000
tls: false
type: http
resources:
- names: [metrics]
bind_addresses: ['0.0.0.0']
worker_replication_secret: "itsasecret"
instance_map:
main:
host: '127.0.0.1'
port: 8080
event_persister1:
host: '127.0.0.1'
port: 8034
federation_sender1:
host: '127.0.0.1'
port: 8035
background_worker:
host: '127.0.0.1'
port: 8037
media_worker:
host: '127.0.0.1'
port: 8038
pusher_worker1:
host: '127.0.0.1'
port: 8039
typing_worker:
host: '127.0.0.1'
port: 8041
to_device_worker:
host: '127.0.0.1'
port: 8042
account_data_worker:
host: '127.0.0.1'
port: 8043
receipts_worker:
host: '127.0.0.1'
port: 8044
presence_worker:
host: '127.0.0.1'
port: 8045
federation_worker:
host: '127.0.0.1'
port: 8046
client_sync_worker:
host: '127.0.0.1'
port: 8047
client_api_worker:
host: '127.0.0.1'
port: 8048
client_encryption_worker:
host: '127.0.0.1'
port: 8049
client_login_worker:
host: '127.0.0.1'
port: 8050
client_sender_worker:
host: '127.0.0.1'
port: 8051
client_pushrules_worker:
host: '127.0.0.1'
port: 8052
stream_writers:
events: event_persister1
typing: typing_worker
to_device: to_device_worker
account_data: account_data_worker
receipts: receipts_worker
presence: presence_worker
run_background_tasks_on: background_worker
notify_appservices_from_worker: federation_sender1
media_instance_running_background_jobs: "media_worker"
start_pushers: false
pusher_instances:
- pusher_worker1
send_federation: false
outbound_federation_restricted_to:
- federation_sender1
federation_sender_instances:
- federation_sender1
enable_media_repo: false
redis:
enabled: true
database:
name: psycopg2
args:
user: synapse_user
password:
database: synapse
host: 10.0.7.2
port: 5435
cp_min: 5
cp_max: 10
log_config: "/etc/matrix-synapse/log.yaml"
media_store_path: /var/lib/matrix-synapse/media
signing_key_path: "/etc/matrix-synapse/homeserver.signing.key"
registration_shared_secret:
trusted_key_servers:
- server_name: "matrix.org"
rc_federation:
sleep_limit: 100
sleep_delay: 100
reject_limit: 400
concurrent: 20
turn_uris: [ "turn:yourdomain.co?transport=udp"]
turn_shared_secret: "!"
turn_user_lifetime: 86400000
turn_allow_guests: true
push:
enabled: true
include_content: false