blob: 3f05dc85d5a8eb609b2e462686655a75db72335b [file] [log] [blame]
Piotr Dobrowolskieabbe8a2019-08-11 19:49:08 +02001# vim:ft=yaml
2
3## Server ##
4
Serge Bazanskiace32c02020-11-03 22:04:06 +01005server_name: "example.com"
6public_baseurl: "https://example.com"
Piotr Dobrowolskieabbe8a2019-08-11 19:49:08 +02007pid_file: /homeserver.pid
8web_client: False
9soft_file_limit: 0
Serge Bazanski21a96162020-11-03 23:34:36 +010010log_config: "/conf/log.config"
Piotr Dobrowolskieabbe8a2019-08-11 19:49:08 +020011
12## Ports ##
13
14listeners:
15 - port: 8008
16 tls: false
17 bind_addresses: ['::']
18 type: http
19 x_forwarded: true
20
21 resources:
22 - names: [client]
23 compress: true
24 - names: [federation]
25 compress: false
26
Serge Bazanski1230ac32020-09-12 22:09:46 +000027 - port: 9092
28 type: metrics
29 bind_addresses: ['::']
30
Piotr Dobrowolskieabbe8a2019-08-11 19:49:08 +020031## Database ##
32
33database:
34 name: "psycopg2"
35 args:
36 user: "synapse"
Piotr Dobrowolski8ebfc1d2020-03-03 21:01:18 +010037 password: "{{ POSTGRES_PASSWORD }}"
Piotr Dobrowolskieabbe8a2019-08-11 19:49:08 +020038 database: "synapse"
Serge Bazanskic0c037a2020-08-23 01:24:03 +000039 host: "waw3-postgres"
Piotr Dobrowolskieabbe8a2019-08-11 19:49:08 +020040 port: "5432"
41 cp_min: 5
42 cp_max: 10
43
44
45## Performance ##
46
47event_cache_size: "10K"
48
49## Ratelimiting ##
50
51rc_messages_per_second: 0.2
52rc_message_burst_count: 10.0
53federation_rc_window_size: 1000
54federation_rc_sleep_limit: 10
55federation_rc_sleep_delay: 500
56federation_rc_reject_limit: 50
57federation_rc_concurrent: 3
58
59## Files ##
60
61media_store_path: "/data/media"
62uploads_path: "/data/uploads"
63max_upload_size: "10M"
64max_image_pixels: "32M"
65dynamic_thumbnails: false
66
67# List of thumbnail to precalculate when an image is uploaded.
68thumbnail_sizes:
69- width: 32
70 height: 32
71 method: crop
72- width: 96
73 height: 96
74 method: crop
75- width: 320
76 height: 240
77 method: scale
78- width: 640
79 height: 480
80 method: scale
81- width: 800
82 height: 600
83 method: scale
84
85url_preview_enabled: False
86max_spider_size: "10M"
87
88
89## Registration ##
90
91enable_registration: False
Piotr Dobrowolski8ebfc1d2020-03-03 21:01:18 +010092registration_shared_secret: "{{ SYNAPSE_REGISTRATION_SHARED_SECRET }}"
Piotr Dobrowolskieabbe8a2019-08-11 19:49:08 +020093bcrypt_rounds: 12
94allow_guest_access: True
95enable_group_creation: true
96
97# The list of identity servers trusted to verify third party
98# identifiers by this server.
99#
100# Also defines the ID server which will be called when an account is
101# deactivated (one will be picked arbitrarily).
102trusted_third_party_id_servers:
103 - matrix.org
104 - vector.im
105
106## Metrics ###
107
108enable_metrics: False
109report_stats: False
110
111
112## API Configuration ##
113
114room_invite_state_types:
115 - "m.room.join_rules"
116 - "m.room.canonical_alias"
117 - "m.room.avatar"
118 - "m.room.name"
119
Piotr Dobrowolski8ebfc1d2020-03-03 21:01:18 +0100120macaroon_secret_key: "{{ SYNAPSE_MACAROON_SECRET_KEY }}"
Piotr Dobrowolskieabbe8a2019-08-11 19:49:08 +0200121expire_access_token: False
122
123## Signing Keys ##
124
125signing_key_path: "/data/hackerspace.pl.signing.key"
126old_signing_keys: {}
127key_refresh_interval: "1d" # 1 Day.
128
129# The trusted servers to download signing keys from.
130perspectives:
131 servers:
132 "matrix.org":
133 verify_keys:
134 "ed25519:auto":
135 key: "Noi6WqcDj0QmPxCNQqgezwTlBKrfqehY1u2FyWP9uYw"
136
137password_config:
Sergiusz Bazanski5618a632020-07-17 13:10:23 +0200138 enabled: false
Piotr Dobrowolskieabbe8a2019-08-11 19:49:08 +0200139
Mateusz Lenik8bd24f42022-04-17 19:56:06 +0200140## Experimental Features ##
141experimental_features:
142 # Message threading support
143 msc3440_enabled: true