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