blob: 138d81f5c0d1a6a91f079d2f727fe411ac028bb2 [file] [log] [blame]
Piotr Dobrowolskieabbe8a2019-08-11 19:49:08 +02001# vim:ft=yaml
2
3## Server ##
4
5server_name: "hackerspace.pl"
Serge Bazanski1db03c32020-08-26 18:10:36 +00006public_baseurl: "https://matrix.hackerspace.pl"
Piotr Dobrowolskieabbe8a2019-08-11 19:49:08 +02007pid_file: /homeserver.pid
8web_client: False
9soft_file_limit: 0
10log_config: "/config/log.config"
11
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
27## Database ##
28
29database:
30 name: "psycopg2"
31 args:
32 user: "synapse"
Piotr Dobrowolski8ebfc1d2020-03-03 21:01:18 +010033 password: "{{ POSTGRES_PASSWORD }}"
Piotr Dobrowolskieabbe8a2019-08-11 19:49:08 +020034 database: "synapse"
Serge Bazanskic0c037a2020-08-23 01:24:03 +000035 host: "waw3-postgres"
Piotr Dobrowolskieabbe8a2019-08-11 19:49:08 +020036 port: "5432"
37 cp_min: 5
38 cp_max: 10
39
40
41## Performance ##
42
43event_cache_size: "10K"
44
45## Ratelimiting ##
46
47rc_messages_per_second: 0.2
48rc_message_burst_count: 10.0
49federation_rc_window_size: 1000
50federation_rc_sleep_limit: 10
51federation_rc_sleep_delay: 500
52federation_rc_reject_limit: 50
53federation_rc_concurrent: 3
54
55## Files ##
56
57media_store_path: "/data/media"
58uploads_path: "/data/uploads"
59max_upload_size: "10M"
60max_image_pixels: "32M"
61dynamic_thumbnails: false
62
63# List of thumbnail to precalculate when an image is uploaded.
64thumbnail_sizes:
65- width: 32
66 height: 32
67 method: crop
68- width: 96
69 height: 96
70 method: crop
71- width: 320
72 height: 240
73 method: scale
74- width: 640
75 height: 480
76 method: scale
77- width: 800
78 height: 600
79 method: scale
80
81url_preview_enabled: False
82max_spider_size: "10M"
83
84
85## Registration ##
86
87enable_registration: False
Piotr Dobrowolski8ebfc1d2020-03-03 21:01:18 +010088registration_shared_secret: "{{ SYNAPSE_REGISTRATION_SHARED_SECRET }}"
Piotr Dobrowolskieabbe8a2019-08-11 19:49:08 +020089bcrypt_rounds: 12
90allow_guest_access: True
91enable_group_creation: true
92
93# The list of identity servers trusted to verify third party
94# identifiers by this server.
95#
96# Also defines the ID server which will be called when an account is
97# deactivated (one will be picked arbitrarily).
98trusted_third_party_id_servers:
99 - matrix.org
100 - vector.im
101
102## Metrics ###
103
104enable_metrics: False
105report_stats: False
106
107
108## API Configuration ##
109
110room_invite_state_types:
111 - "m.room.join_rules"
112 - "m.room.canonical_alias"
113 - "m.room.avatar"
114 - "m.room.name"
115
116
Piotr Dobrowolski8ebfc1d2020-03-03 21:01:18 +0100117{% if SYNAPSE_APPSERVICES %}
118app_service_config_files:
119{% for appservice in SYNAPSE_APPSERVICES %} - "{{ appservice }}"
120{% endfor %}
121{% else %}
122app_service_config_files: []
123{% endif %}
124
125macaroon_secret_key: "{{ SYNAPSE_MACAROON_SECRET_KEY }}"
Piotr Dobrowolskieabbe8a2019-08-11 19:49:08 +0200126expire_access_token: False
127
128## Signing Keys ##
129
130signing_key_path: "/data/hackerspace.pl.signing.key"
131old_signing_keys: {}
132key_refresh_interval: "1d" # 1 Day.
133
134# The trusted servers to download signing keys from.
135perspectives:
136 servers:
137 "matrix.org":
138 verify_keys:
139 "ed25519:auto":
140 key: "Noi6WqcDj0QmPxCNQqgezwTlBKrfqehY1u2FyWP9uYw"
141
142password_config:
Sergiusz Bazanski5618a632020-07-17 13:10:23 +0200143 enabled: false
Piotr Dobrowolskieabbe8a2019-08-11 19:49:08 +0200144
145cas_config:
146 enabled: true
147 server_url: "https://matrix.hackerspace.pl/_cas"
148 service_url: "https://matrix.hackerspace.pl"