Piotr Dobrowolski | eabbe8a | 2019-08-11 19:49:08 +0200 | [diff] [blame] | 1 | # vim:ft=yaml
|
| 2 |
|
| 3 | ## Server ##
|
| 4 |
|
| 5 | server_name: "hackerspace.pl"
|
Serge Bazanski | 1db03c3 | 2020-08-26 18:10:36 +0000 | [diff] [blame^] | 6 | public_baseurl: "https://matrix.hackerspace.pl"
|
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
|
| 10 | log_config: "/config/log.config"
|
| 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 |
|
| 27 | ## Database ##
|
| 28 |
|
| 29 | database:
|
| 30 | name: "psycopg2"
|
| 31 | args:
|
| 32 | user: "synapse"
|
Piotr Dobrowolski | 8ebfc1d | 2020-03-03 21:01:18 +0100 | [diff] [blame] | 33 | password: "{{ POSTGRES_PASSWORD }}"
|
Piotr Dobrowolski | eabbe8a | 2019-08-11 19:49:08 +0200 | [diff] [blame] | 34 | database: "synapse"
|
Serge Bazanski | c0c037a | 2020-08-23 01:24:03 +0000 | [diff] [blame] | 35 | host: "waw3-postgres"
|
Piotr Dobrowolski | eabbe8a | 2019-08-11 19:49:08 +0200 | [diff] [blame] | 36 | port: "5432"
|
| 37 | cp_min: 5
|
| 38 | cp_max: 10
|
| 39 |
|
| 40 |
|
| 41 | ## Performance ##
|
| 42 |
|
| 43 | event_cache_size: "10K"
|
| 44 |
|
| 45 | ## Ratelimiting ##
|
| 46 |
|
| 47 | rc_messages_per_second: 0.2
|
| 48 | rc_message_burst_count: 10.0
|
| 49 | federation_rc_window_size: 1000
|
| 50 | federation_rc_sleep_limit: 10
|
| 51 | federation_rc_sleep_delay: 500
|
| 52 | federation_rc_reject_limit: 50
|
| 53 | federation_rc_concurrent: 3
|
| 54 |
|
| 55 | ## Files ##
|
| 56 |
|
| 57 | media_store_path: "/data/media"
|
| 58 | uploads_path: "/data/uploads"
|
| 59 | max_upload_size: "10M"
|
| 60 | max_image_pixels: "32M"
|
| 61 | dynamic_thumbnails: false
|
| 62 |
|
| 63 | # List of thumbnail to precalculate when an image is uploaded.
|
| 64 | thumbnail_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 |
|
| 81 | url_preview_enabled: False
|
| 82 | max_spider_size: "10M"
|
| 83 |
|
| 84 |
|
| 85 | ## Registration ##
|
| 86 |
|
| 87 | enable_registration: False
|
Piotr Dobrowolski | 8ebfc1d | 2020-03-03 21:01:18 +0100 | [diff] [blame] | 88 | registration_shared_secret: "{{ SYNAPSE_REGISTRATION_SHARED_SECRET }}"
|
Piotr Dobrowolski | eabbe8a | 2019-08-11 19:49:08 +0200 | [diff] [blame] | 89 | bcrypt_rounds: 12
|
| 90 | allow_guest_access: True
|
| 91 | enable_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).
|
| 98 | trusted_third_party_id_servers:
|
| 99 | - matrix.org
|
| 100 | - vector.im
|
| 101 |
|
| 102 | ## Metrics ###
|
| 103 |
|
| 104 | enable_metrics: False
|
| 105 | report_stats: False
|
| 106 |
|
| 107 |
|
| 108 | ## API Configuration ##
|
| 109 |
|
| 110 | room_invite_state_types:
|
| 111 | - "m.room.join_rules"
|
| 112 | - "m.room.canonical_alias"
|
| 113 | - "m.room.avatar"
|
| 114 | - "m.room.name"
|
| 115 |
|
| 116 |
|
Piotr Dobrowolski | 8ebfc1d | 2020-03-03 21:01:18 +0100 | [diff] [blame] | 117 | {% if SYNAPSE_APPSERVICES %}
|
| 118 | app_service_config_files:
|
| 119 | {% for appservice in SYNAPSE_APPSERVICES %} - "{{ appservice }}"
|
| 120 | {% endfor %}
|
| 121 | {% else %}
|
| 122 | app_service_config_files: []
|
| 123 | {% endif %}
|
| 124 |
|
| 125 | macaroon_secret_key: "{{ SYNAPSE_MACAROON_SECRET_KEY }}"
|
Piotr Dobrowolski | eabbe8a | 2019-08-11 19:49:08 +0200 | [diff] [blame] | 126 | expire_access_token: False
|
| 127 |
|
| 128 | ## Signing Keys ##
|
| 129 |
|
| 130 | signing_key_path: "/data/hackerspace.pl.signing.key"
|
| 131 | old_signing_keys: {}
|
| 132 | key_refresh_interval: "1d" # 1 Day.
|
| 133 |
|
| 134 | # The trusted servers to download signing keys from.
|
| 135 | perspectives:
|
| 136 | servers:
|
| 137 | "matrix.org":
|
| 138 | verify_keys:
|
| 139 | "ed25519:auto":
|
| 140 | key: "Noi6WqcDj0QmPxCNQqgezwTlBKrfqehY1u2FyWP9uYw"
|
| 141 |
|
| 142 | password_config:
|
Sergiusz Bazanski | 5618a63 | 2020-07-17 13:10:23 +0200 | [diff] [blame] | 143 | enabled: false
|
Piotr Dobrowolski | eabbe8a | 2019-08-11 19:49:08 +0200 | [diff] [blame] | 144 |
|
| 145 | cas_config:
|
| 146 | enabled: true
|
| 147 | server_url: "https://matrix.hackerspace.pl/_cas"
|
| 148 | service_url: "https://matrix.hackerspace.pl"
|