blob: 3e11a1e80315579849c13f829b4ac529b426ada0 [file] [log] [blame]
Piotr Dobrowolski8ec86572021-01-30 13:06:07 +01001# vim:ft=yaml
2
3## Server ##
4
5server_name: "example.com"
6public_baseurl: "https://example.com"
7pid_file: /homeserver.pid
8web_client: False
9soft_file_limit: 0
10log_config: "/conf/log.config"
11worker_log_config: "/conf/log.config"
12
13## Ports ##
14
15listeners:
16 - port: 8008
17 tls: false
18 bind_addresses: ['::']
19 type: http
20 x_forwarded: true
21
22 resources:
23 - names: [client]
24 compress: true
25 - names: [federation]
26 compress: false
27
28 # Metrics
29 - port: 9092
30 type: metrics
31 bind_address: '0.0.0.0'
32
33 # The HTTP replication port
34 - port: 9093
35 bind_addresses: ['::']
36 type: http
37 resources:
38 - names: [replication]
39
40## Performance ##
41
42event_cache_size: "10K"
43
44## Ratelimiting ##
45
46rc_messages_per_second: 0.2
47rc_message_burst_count: 10.0
48federation_rc_window_size: 1000
49federation_rc_sleep_limit: 10
50federation_rc_sleep_delay: 500
51federation_rc_reject_limit: 50
52federation_rc_concurrent: 3
53
54## Files ##
55
56media_store_path: "/data/media"
57uploads_path: "/data/uploads"
58max_upload_size: "10M"
59max_image_pixels: "32M"
60dynamic_thumbnails: false
61
62# List of thumbnail to precalculate when an image is uploaded.
63thumbnail_sizes:
64- width: 32
65 height: 32
66 method: crop
67- width: 96
68 height: 96
69 method: crop
70- width: 320
71 height: 240
72 method: scale
73- width: 640
74 height: 480
75 method: scale
76- width: 800
77 height: 600
78 method: scale
79
80url_preview_enabled: False
81max_spider_size: "10M"
82
83
84## Registration ##
85
86enable_registration: False
87bcrypt_rounds: 12
88allow_guest_access: True
89enable_group_creation: true
90
91# The list of identity servers trusted to verify third party
92# identifiers by this server.
93#
94# Also defines the ID server which will be called when an account is
95# deactivated (one will be picked arbitrarily).
96trusted_third_party_id_servers:
97 - matrix.org
98 - vector.im
99
100## Metrics ###
101
102enable_metrics: True
103report_stats: False
104
105
106## API Configuration ##
107
Piotr Dobrowolski8ec86572021-01-30 13:06:07 +0100108expire_access_token: False
109
110## Signing Keys ##
111
112signing_key_path: "/data/hackerspace.pl.signing.key"
113old_signing_keys: {}
114key_refresh_interval: "1d" # 1 Day.
115
116# The trusted servers to download signing keys from.
117perspectives:
118 servers:
119 "matrix.org":
120 verify_keys:
121 "ed25519:auto":
122 key: "Noi6WqcDj0QmPxCNQqgezwTlBKrfqehY1u2FyWP9uYw"
123suppress_key_server_warning: true
124
125password_config:
126 enabled: false
127
128enable_media_repo: False
Piotr Dobrowolskif56db192021-09-16 21:51:10 +0200129
130# Allow federated public rooms browsing
131allow_public_rooms_without_auth: true
132allow_public_rooms_over_federation: true
Mateusz Lenik8bd24f42022-04-17 19:56:06 +0200133
134## Experimental Features ##
135experimental_features:
136 # Message threading support
137 msc3440_enabled: true