2018-05-23 16:40:52 +00:00
|
|
|
tls_certificate_path: "/etc/ssl/matrix-synapse/{{getenv "CERT_DOMAIN"}}.crt"
|
|
|
|
|
2019-01-06 15:31:51 +00:00
|
|
|
no_tls: True
|
2016-08-03 09:38:20 +00:00
|
|
|
|
|
|
|
server_name: "{{getenv "SERVER_NAME"}}"
|
|
|
|
|
2018-05-23 16:04:35 +00:00
|
|
|
pid_file: /var/lib/matrix-synapse/homeserver.pid
|
2016-08-03 09:38:20 +00:00
|
|
|
|
|
|
|
web_client: True
|
2016-08-03 15:50:44 +00:00
|
|
|
public_baseurl: {{getenv "PUBLIC_BASE_URL"}}
|
2016-08-03 09:38:20 +00:00
|
|
|
|
|
|
|
soft_file_limit: 0
|
|
|
|
|
|
|
|
listeners:
|
|
|
|
- port: 8008
|
|
|
|
tls: false
|
2018-11-27 14:22:56 +00:00
|
|
|
bind_addresses:
|
|
|
|
- '::'
|
|
|
|
- '0.0.0.0'
|
2016-08-03 09:38:20 +00:00
|
|
|
type: http
|
|
|
|
x_forwarded: false
|
|
|
|
|
|
|
|
resources:
|
|
|
|
- names: [client, webclient]
|
|
|
|
compress: true
|
|
|
|
- names: [federation]
|
|
|
|
compress: false
|
|
|
|
|
|
|
|
database:
|
|
|
|
name: "psycopg2"
|
|
|
|
args:
|
|
|
|
user: {{getenv "DB_USER"}}
|
|
|
|
password: {{getenv "DB_PASSWORD"}}
|
|
|
|
database: {{getenv "DB_NAME"}}
|
|
|
|
host: {{getenv "DB_HOST"}}
|
|
|
|
cp_min: 5
|
|
|
|
cp_max: 10
|
|
|
|
|
|
|
|
event_cache_size: "10K"
|
|
|
|
|
|
|
|
verbose: 0
|
2018-05-23 16:04:35 +00:00
|
|
|
log_file: "/var/lib/matrix-synapse/homeserver.log"
|
|
|
|
log_config: "/var/lib/matrix-synapse/log.config"
|
2016-08-03 09:38:20 +00:00
|
|
|
|
|
|
|
rc_messages_per_second: 0.2
|
|
|
|
rc_message_burst_count: 10.0
|
|
|
|
federation_rc_window_size: 1000
|
|
|
|
federation_rc_sleep_limit: 10
|
|
|
|
federation_rc_sleep_delay: 500
|
|
|
|
federation_rc_reject_limit: 50
|
|
|
|
federation_rc_concurrent: 3
|
|
|
|
|
2018-05-23 16:04:35 +00:00
|
|
|
media_store_path: "/var/lib/matrix-synapse/media_store"
|
|
|
|
uploads_path: "/var/lib/matrix-synapse/uploads"
|
2016-10-31 12:06:46 +00:00
|
|
|
max_upload_size: "{{getenv "MAX_UPLOAD_SIZE" "10M"}}"
|
|
|
|
max_image_pixels: "{{getenv "MAX_THUMBNAIL_PIXELS" "32M"}}"
|
|
|
|
dynamic_thumbnails: {{getenv "DYNAMIC_THUMBNAILS" "True"}}
|
2016-08-03 09:38:20 +00:00
|
|
|
|
|
|
|
thumbnail_sizes:
|
|
|
|
- width: 32
|
|
|
|
height: 32
|
|
|
|
method: crop
|
|
|
|
- width: 96
|
|
|
|
height: 96
|
|
|
|
method: crop
|
|
|
|
- width: 320
|
|
|
|
height: 240
|
|
|
|
method: scale
|
|
|
|
- width: 640
|
|
|
|
height: 480
|
|
|
|
method: scale
|
|
|
|
- width: 800
|
|
|
|
height: 600
|
|
|
|
method: scale
|
|
|
|
|
|
|
|
url_preview_enabled: False
|
|
|
|
enable_registration_captcha: False
|
|
|
|
|
2016-08-03 14:52:51 +00:00
|
|
|
registration_shared_secret: "{{getenv "SHARED_SECRET"}}"
|
|
|
|
|
2016-08-04 09:52:12 +00:00
|
|
|
turn_uris: [{{getenv "TURN_URIS"}}]
|
|
|
|
turn_shared_secret: "{{getenv "TURN_SHARED_SECRET"}}"
|
2016-10-31 12:06:46 +00:00
|
|
|
turn_user_lifetime: {{getenv "TURN_USER_LIFETIME" "1h"}}
|
2016-08-03 09:38:20 +00:00
|
|
|
|
|
|
|
enable_registration: False
|
|
|
|
allow_guest_access: False
|
|
|
|
|
|
|
|
trusted_third_party_id_servers:
|
|
|
|
- matrix.org
|
|
|
|
- vector.im
|
|
|
|
|
2016-10-31 12:06:46 +00:00
|
|
|
enable_metrics: no
|
|
|
|
report_stats: {{getenv "REPORT_STATS" "no"}}
|
2016-08-03 09:38:20 +00:00
|
|
|
|
|
|
|
room_invite_state_types:
|
|
|
|
- "m.room.join_rules"
|
|
|
|
- "m.room.canonical_alias"
|
|
|
|
- "m.room.avatar"
|
|
|
|
- "m.room.name"
|
|
|
|
|
2018-05-23 19:34:55 +00:00
|
|
|
app_service_config_files: {{if not (getenv "REGISTRATIONS")}}[]{{end}}
|
2018-11-27 13:20:43 +00:00
|
|
|
{{- if (getenv "REGISTRATIONS")}}
|
|
|
|
{{- range $registration := split (getenv "REGISTRATIONS") ";"}}
|
|
|
|
- {{ $registration -}}
|
2018-05-23 19:34:55 +00:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
2016-08-03 09:38:20 +00:00
|
|
|
|
|
|
|
macaroon_secret_key: "{{getenv "MACAROON_SECRET_KEY"}}"
|
|
|
|
expire_access_token: False
|
|
|
|
|
2018-05-23 16:04:35 +00:00
|
|
|
signing_key_path: "/var/lib/matrix-synapse/signing/signing.key"
|
2016-08-03 09:38:20 +00:00
|
|
|
old_signing_keys: {}
|
|
|
|
|
2018-05-23 19:34:55 +00:00
|
|
|
key_refresh_interval: "1d"
|
2016-08-03 09:38:20 +00:00
|
|
|
|
|
|
|
perspectives:
|
|
|
|
servers:
|
|
|
|
"matrix.org":
|
|
|
|
verify_keys:
|
|
|
|
"ed25519:auto":
|
|
|
|
key: "Noi6WqcDj0QmPxCNQqgezwTlBKrfqehY1u2FyWP9uYw"
|