blob: 0f2306496fefb42984a6997d5d9478094d8c2512 [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"
Piotr Dobrowolski8ebfc1d2020-03-03 21:01:18 +010032 password: "{{ POSTGRES_PASSWORD }}"
Piotr Dobrowolskieabbe8a2019-08-11 19:49:08 +020033 database: "synapse"
Serge Bazanskic0c037a2020-08-23 01:24:03 +000034 host: "waw3-postgres"
Piotr Dobrowolskieabbe8a2019-08-11 19:49:08 +020035 port: "5432"
36 cp_min: 5
37 cp_max: 10
38
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
Piotr Dobrowolski8ebfc1d2020-03-03 21:01:18 +010087registration_shared_secret: "{{ SYNAPSE_REGISTRATION_SHARED_SECRET }}"
Piotr Dobrowolskieabbe8a2019-08-11 19:49:08 +020088bcrypt_rounds: 12
89allow_guest_access: True
90enable_group_creation: true
91
92# The list of identity servers trusted to verify third party
93# identifiers by this server.
94#
95# Also defines the ID server which will be called when an account is
96# deactivated (one will be picked arbitrarily).
97trusted_third_party_id_servers:
98 - matrix.org
99 - vector.im
100
101## Metrics ###
102
103enable_metrics: False
104report_stats: False
105
106
107## API Configuration ##
108
109room_invite_state_types:
110 - "m.room.join_rules"
111 - "m.room.canonical_alias"
112 - "m.room.avatar"
113 - "m.room.name"
114
115
Piotr Dobrowolski8ebfc1d2020-03-03 21:01:18 +0100116{% if SYNAPSE_APPSERVICES %}
117app_service_config_files:
118{% for appservice in SYNAPSE_APPSERVICES %} - "{{ appservice }}"
119{% endfor %}
120{% else %}
121app_service_config_files: []
122{% endif %}
123
124macaroon_secret_key: "{{ SYNAPSE_MACAROON_SECRET_KEY }}"
Piotr Dobrowolskieabbe8a2019-08-11 19:49:08 +0200125expire_access_token: False
126
127## Signing Keys ##
128
129signing_key_path: "/data/hackerspace.pl.signing.key"
130old_signing_keys: {}
131key_refresh_interval: "1d" # 1 Day.
132
133# The trusted servers to download signing keys from.
134perspectives:
135 servers:
136 "matrix.org":
137 verify_keys:
138 "ed25519:auto":
139 key: "Noi6WqcDj0QmPxCNQqgezwTlBKrfqehY1u2FyWP9uYw"
140
141password_config:
Sergiusz Bazanski5618a632020-07-17 13:10:23 +0200142 enabled: false
Piotr Dobrowolskieabbe8a2019-08-11 19:49:08 +0200143
144cas_config:
145 enabled: true
146 server_url: "https://matrix.hackerspace.pl/_cas"
147 service_url: "https://matrix.hackerspace.pl"