Piotr Dobrowolski | eabbe8a | 2019-08-11 19:49:08 +0200 | [diff] [blame] | 1 | # vim:ft=yaml
|
| 2 |
|
| 3 | ## Server ##
|
| 4 |
|
Serge Bazanski | ace32c0 | 2020-11-03 22:04:06 +0100 | [diff] [blame] | 5 | server_name: "example.com"
|
| 6 | public_baseurl: "https://example.com"
|
Piotr Dobrowolski | eabbe8a | 2019-08-11 19:49:08 +0200 | [diff] [blame] | 7 | pid_file: /homeserver.pid
|
| 8 | web_client: False
|
| 9 | soft_file_limit: 0
|
Serge Bazanski | 21a9616 | 2020-11-03 23:34:36 +0100 | [diff] [blame] | 10 | log_config: "/conf/log.config"
|
Piotr Dobrowolski | eabbe8a | 2019-08-11 19:49:08 +0200 | [diff] [blame] | 11 |
|
| 12 | ## Ports ##
|
| 13 |
|
| 14 | listeners:
|
| 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 Bazanski | 1230ac3 | 2020-09-12 22:09:46 +0000 | [diff] [blame] | 27 | - port: 9092
|
| 28 | type: metrics
|
| 29 | bind_addresses: ['::']
|
| 30 |
|
Piotr Dobrowolski | eabbe8a | 2019-08-11 19:49:08 +0200 | [diff] [blame] | 31 | ## Database ##
|
| 32 |
|
| 33 | database:
|
| 34 | name: "psycopg2"
|
| 35 | args:
|
| 36 | user: "synapse"
|
Piotr Dobrowolski | 8ebfc1d | 2020-03-03 21:01:18 +0100 | [diff] [blame] | 37 | password: "{{ POSTGRES_PASSWORD }}"
|
Piotr Dobrowolski | eabbe8a | 2019-08-11 19:49:08 +0200 | [diff] [blame] | 38 | database: "synapse"
|
Serge Bazanski | c0c037a | 2020-08-23 01:24:03 +0000 | [diff] [blame] | 39 | host: "waw3-postgres"
|
Piotr Dobrowolski | eabbe8a | 2019-08-11 19:49:08 +0200 | [diff] [blame] | 40 | port: "5432"
|
| 41 | cp_min: 5
|
| 42 | cp_max: 10
|
| 43 |
|
| 44 |
|
| 45 | ## Performance ##
|
| 46 |
|
| 47 | event_cache_size: "10K"
|
| 48 |
|
| 49 | ## Ratelimiting ##
|
| 50 |
|
| 51 | rc_messages_per_second: 0.2
|
| 52 | rc_message_burst_count: 10.0
|
| 53 | federation_rc_window_size: 1000
|
| 54 | federation_rc_sleep_limit: 10
|
| 55 | federation_rc_sleep_delay: 500
|
| 56 | federation_rc_reject_limit: 50
|
| 57 | federation_rc_concurrent: 3
|
| 58 |
|
| 59 | ## Files ##
|
| 60 |
|
| 61 | media_store_path: "/data/media"
|
| 62 | uploads_path: "/data/uploads"
|
| 63 | max_upload_size: "10M"
|
| 64 | max_image_pixels: "32M"
|
| 65 | dynamic_thumbnails: false
|
| 66 |
|
| 67 | # List of thumbnail to precalculate when an image is uploaded.
|
| 68 | thumbnail_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 |
|
| 85 | url_preview_enabled: False
|
| 86 | max_spider_size: "10M"
|
| 87 |
|
| 88 |
|
| 89 | ## Registration ##
|
| 90 |
|
| 91 | enable_registration: False
|
Piotr Dobrowolski | 8ebfc1d | 2020-03-03 21:01:18 +0100 | [diff] [blame] | 92 | registration_shared_secret: "{{ SYNAPSE_REGISTRATION_SHARED_SECRET }}"
|
Piotr Dobrowolski | eabbe8a | 2019-08-11 19:49:08 +0200 | [diff] [blame] | 93 | bcrypt_rounds: 12
|
| 94 | allow_guest_access: True
|
| 95 | enable_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).
|
| 102 | trusted_third_party_id_servers:
|
| 103 | - matrix.org
|
| 104 | - vector.im
|
| 105 |
|
| 106 | ## Metrics ###
|
| 107 |
|
| 108 | enable_metrics: False
|
| 109 | report_stats: False
|
| 110 |
|
| 111 |
|
| 112 | ## API Configuration ##
|
| 113 |
|
| 114 | room_invite_state_types:
|
| 115 | - "m.room.join_rules"
|
| 116 | - "m.room.canonical_alias"
|
| 117 | - "m.room.avatar"
|
| 118 | - "m.room.name"
|
| 119 |
|
Piotr Dobrowolski | 8ebfc1d | 2020-03-03 21:01:18 +0100 | [diff] [blame] | 120 | macaroon_secret_key: "{{ SYNAPSE_MACAROON_SECRET_KEY }}"
|
Piotr Dobrowolski | eabbe8a | 2019-08-11 19:49:08 +0200 | [diff] [blame] | 121 | expire_access_token: False
|
| 122 |
|
| 123 | ## Signing Keys ##
|
| 124 |
|
| 125 | signing_key_path: "/data/hackerspace.pl.signing.key"
|
| 126 | old_signing_keys: {}
|
| 127 | key_refresh_interval: "1d" # 1 Day.
|
| 128 |
|
| 129 | # The trusted servers to download signing keys from.
|
| 130 | perspectives:
|
| 131 | servers:
|
| 132 | "matrix.org":
|
| 133 | verify_keys:
|
| 134 | "ed25519:auto":
|
| 135 | key: "Noi6WqcDj0QmPxCNQqgezwTlBKrfqehY1u2FyWP9uYw"
|
| 136 |
|
| 137 | password_config:
|
Sergiusz Bazanski | 5618a63 | 2020-07-17 13:10:23 +0200 | [diff] [blame] | 138 | enabled: false
|
Piotr Dobrowolski | eabbe8a | 2019-08-11 19:49:08 +0200 | [diff] [blame] | 139 |
|