Piotr Dobrowolski | 8ec8657 | 2021-01-30 13:06:07 +0100 | [diff] [blame] | 1 | # vim:ft=yaml
|
| 2 |
|
| 3 | ## Server ##
|
| 4 |
|
| 5 | server_name: "example.com"
|
| 6 | public_baseurl: "https://example.com"
|
| 7 | pid_file: /homeserver.pid
|
| 8 | web_client: False
|
| 9 | soft_file_limit: 0
|
| 10 | log_config: "/conf/log.config"
|
| 11 | worker_log_config: "/conf/log.config"
|
| 12 |
|
| 13 | ## Ports ##
|
| 14 |
|
| 15 | listeners:
|
| 16 | - port: 8008
|
| 17 | tls: false
|
| 18 | bind_addresses: ['::']
|
| 19 | type: http
|
| 20 | x_forwarded: true
|
| 21 |
|
| 22 | resources:
|
| 23 | - names: [client]
|
| 24 | compress: true
|
| 25 | - names: [federation]
|
| 26 | compress: false
|
| 27 |
|
| 28 | # Metrics
|
| 29 | - port: 9092
|
| 30 | type: metrics
|
| 31 | bind_address: '0.0.0.0'
|
| 32 |
|
| 33 | # The HTTP replication port
|
| 34 | - port: 9093
|
| 35 | bind_addresses: ['::']
|
| 36 | type: http
|
| 37 | resources:
|
| 38 | - names: [replication]
|
| 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
|
| 87 | bcrypt_rounds: 12
|
| 88 | allow_guest_access: True
|
| 89 | enable_group_creation: true
|
| 90 |
|
| 91 | # The list of identity servers trusted to verify third party
|
| 92 | # identifiers by this server.
|
| 93 | #
|
| 94 | # Also defines the ID server which will be called when an account is
|
| 95 | # deactivated (one will be picked arbitrarily).
|
| 96 | trusted_third_party_id_servers:
|
| 97 | - matrix.org
|
| 98 | - vector.im
|
| 99 |
|
| 100 | ## Metrics ###
|
| 101 |
|
| 102 | enable_metrics: True
|
| 103 | report_stats: False
|
| 104 |
|
| 105 |
|
| 106 | ## API Configuration ##
|
| 107 |
|
Piotr Dobrowolski | 8ec8657 | 2021-01-30 13:06:07 +0100 | [diff] [blame] | 108 | expire_access_token: False
|
| 109 |
|
| 110 | ## Signing Keys ##
|
| 111 |
|
| 112 | signing_key_path: "/data/hackerspace.pl.signing.key"
|
| 113 | old_signing_keys: {}
|
| 114 | key_refresh_interval: "1d" # 1 Day.
|
| 115 |
|
| 116 | # The trusted servers to download signing keys from.
|
| 117 | perspectives:
|
| 118 | servers:
|
| 119 | "matrix.org":
|
| 120 | verify_keys:
|
| 121 | "ed25519:auto":
|
| 122 | key: "Noi6WqcDj0QmPxCNQqgezwTlBKrfqehY1u2FyWP9uYw"
|
| 123 | suppress_key_server_warning: true
|
| 124 |
|
| 125 | password_config:
|
| 126 | enabled: false
|
| 127 |
|
| 128 | enable_media_repo: False
|