====== Новый конфиг для Matrix ======

<code bash>
# Configuration file for Synapse.
#
# This is a YAML file: see [1] for a quick introduction. Note in particular
# that *indentation is important*: all the elements of a list or dictionary
# should have the same indentation.
#
# [1] https://docs.ansible.com/ansible/latest/reference_appendices/YAMLSyntax.html
#
# For more information on how to configure Synapse, including a complete accounting of
# each option, go to docs/usage/configuration/config_documentation.md or
# https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html
#
# This is set in /etc/matrix-synapse/conf.d/server_name.yaml for Debian installations.
# server_name: "SERVERNAME"

pid_file: "/var/run/matrix-synapse.pid"

listeners:
  - port: 8008
    tls: false
    type: http
    x_forwarded: true
    bind_addresses: ['10.0.5.11']
    resources:
      - names: ['client', 'federation']
        compress: false

server_name: matrix.merrcloud.ru
serve_server_wellknown: true

database:
  name: psycopg2
  args:
    user: "Amora"
    password: "kH0RTyQsQg8C9hlBNnu1uF18QbO2N3P0"
    database: "synapse"
    host: "localhost"
    cp_min: 5
    cp_max: 10

presence:
  enabled: true

# TURN
turn_uris: [ "turn:turn.merrcloud.ru?transport=udp", "turn:turn.merrcloud.ru?transport=tcp" ]
turn_shared_secret: "5lR2yv92OKfRpGqJjgmuhPmRGc1HUb4L6zYhFn1thFsqMFagtsOaKgKESqKXW3fM"
turn_user_lifetime: 86400000
turn_allow_guests: true

# Disable registrations
enable_registration: False
registration_shared_secret: "Q3TtYnZxlh1HkqC0CDqoBsvTj5I9E93x"
macaroon_secret_key: "2fDPxlbyD47BM97kKQqp35WDhAv17zSnB78qzKjVR0qX9ClnRYX6BfkndmDximah"
matrix_homeserver_generic_secret_key: 'D8lEDZ2BJm8JZE2WLaUBqO9ADLdKVNZwp6VKJKumoKf3Kjd615BkwqsjO5uRufZV'

#Max upload size files
max_upload_size: "32M"
event_cache_size: "10K"
max_image_pixels: "32M"

# Public URL
public_baseurl: https://matrix.merrcloud.ru

# Server Notification
server_notices:
   system_mxid_localpart: server
   system_mxid_display_name: "Server Notices"
   system_mxid_avatar_url: "https://flyclipart.com/thumb2/announcement-shout-png-icon-505975.png"
   room_name: "Server Notices"

user_directory:
   enabled: true
   search_all_users: true

# Session lifetime
session_lifetime: 1h


#email:
#   riot_base_url: https://matrix.merrcloud.ru
#   trust_identity_server_for_password_resets: true
#   validation_token_lifetime: 1h

log_config: "/etc/matrix-synapse/log.yaml"
media_store_path: /var/lib/matrix-synapse/media
signing_key_path: "/etc/matrix-synapse/homeserver.signing.key"
trusted_key_servers:
  - server_name: "matrix.org"

</code>