blob: d83dc3d4a40ebd2a25382e4704d2b8e339046b8a [file] [log] [blame]
Piotr Dobrowolskieabbe8a2019-08-11 19:49:08 +02001# vim:ft=yaml
2
3## Server ##
4
5server_name: "hackerspace.pl"
6pid_file: /homeserver.pid
7web_client: False
8soft_file_limit: 0
9log_config: "/config/log.config"
10
11## Ports ##
12
13listeners:
14 - port: 8008
15 tls: false
16 bind_addresses: ['::']
17 type: http
18 x_forwarded: true
19
20 resources:
21 - names: [client]
22 compress: true
23 - names: [federation]
24 compress: false
25
26## Database ##
27
28database:
29 name: "psycopg2"
30 args:
31 user: "synapse"
32 database: "synapse"
33 host: "postgres"
34 port: "5432"
35 cp_min: 5
36 cp_max: 10
37
38
39## Performance ##
40
41event_cache_size: "10K"
42
43## Ratelimiting ##
44
45rc_messages_per_second: 0.2
46rc_message_burst_count: 10.0
47federation_rc_window_size: 1000
48federation_rc_sleep_limit: 10
49federation_rc_sleep_delay: 500
50federation_rc_reject_limit: 50
51federation_rc_concurrent: 3
52
53## Files ##
54
55media_store_path: "/data/media"
56uploads_path: "/data/uploads"
57max_upload_size: "10M"
58max_image_pixels: "32M"
59dynamic_thumbnails: false
60
61# List of thumbnail to precalculate when an image is uploaded.
62thumbnail_sizes:
63- width: 32
64 height: 32
65 method: crop
66- width: 96
67 height: 96
68 method: crop
69- width: 320
70 height: 240
71 method: scale
72- width: 640
73 height: 480
74 method: scale
75- width: 800
76 height: 600
77 method: scale
78
79url_preview_enabled: False
80max_spider_size: "10M"
81
82
83## Registration ##
84
85enable_registration: False
86bcrypt_rounds: 12
87allow_guest_access: True
88enable_group_creation: true
89
90# The list of identity servers trusted to verify third party
91# identifiers by this server.
92#
93# Also defines the ID server which will be called when an account is
94# deactivated (one will be picked arbitrarily).
95trusted_third_party_id_servers:
96 - matrix.org
97 - vector.im
98
99## Metrics ###
100
101enable_metrics: False
102report_stats: False
103
104
105## API Configuration ##
106
107room_invite_state_types:
108 - "m.room.join_rules"
109 - "m.room.canonical_alias"
110 - "m.room.avatar"
111 - "m.room.name"
112
113
114app_service_config_files: ["/appservices/irc-freenode/registration.yaml"]
115expire_access_token: False
116
117## Signing Keys ##
118
119signing_key_path: "/data/hackerspace.pl.signing.key"
120old_signing_keys: {}
121key_refresh_interval: "1d" # 1 Day.
122
123# The trusted servers to download signing keys from.
124perspectives:
125 servers:
126 "matrix.org":
127 verify_keys:
128 "ed25519:auto":
129 key: "Noi6WqcDj0QmPxCNQqgezwTlBKrfqehY1u2FyWP9uYw"
130
131password_config:
132 enabled: true
133
134cas_config:
135 enabled: true
136 server_url: "https://matrix.hackerspace.pl/_cas"
137 service_url: "https://matrix.hackerspace.pl"