Этот вопрос закрыт для ответов, так как повторяет вопрос Кто знает что делать если federation не работает в matrix-synapse?
LifeGameYT
@LifeGameYT
UE | Developer

Как заставить работать федерацию в Matrix-synapse?

Весь сервер работает за исключение федерации, тестер выдаёт ошибку MatchingServerName: 65b8fde9d761e682248315.png

Все порты открыты. OS: Ubuntu 22.04. Просьба не кидать ссылки на документацию Matrix, там ничего нет.

Конфиг homeserver:

# 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: ['127.0.0.1']
    resources:
      - names: [client, federation]
        compress: false
database:
  name: psycopg2
  txn_limit: 10000
  args:
    user: matrix
    password: *********
    database: matrix
    host: localhost
    port: 5432
    cp_min: 5
    cp_max: 10
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.lifsem.ru"
suppress_key_server_warning: true
max_upload_size: 100M
enable_registration: true
enable_registration_without_verification: true
matrix_synapse_federation_enabled: true
matrix_synapse_federation_port_enabled: true
registration_shared_secret: "**************************************************************************"
search_all_users: true
prefer_local_users: true
turn_uris: ["turn:matrix.lifsem.ru?transport=udp","turn:matrix.lifsem.ru?transport=tcp"]
turn_shared_secret: "*********************************************************************"
turn_user_lifetime: 86400000
admin_users:
  - "@admin:matrix.lifsem.ru"
federation:
  # Разрешить федерацию
  enabled: true
  # Ваш DNS-имя сервера, доступное извне
  server_name: "matrix.lifsem.ru"
  # Порт для федерации
  port: 8448
  # Ключи для TLS
  tls_certificate_path: "/etc/letsencrypt/live/matrix.lifsem.ru/cert.pem"
  tls_private_key_path: "/etc/letsencrypt/live/matrix.lifsem.ru/privkey.pem"
  • Вопрос задан
  • 125 просмотров
Решения вопроса 1
martin74ua
@martin74ua Куратор тега Linux
Linux administrator
# This is set in /etc/matrix-synapse/conf.d/server_name.yaml for Debian installations.
# server_name: "SERVERNAME"

а вот это вы прочитали и поправили?
Ответ написан
Ваш ответ на вопрос

Вопрос закрыт для ответов и комментариев

Потому что уже есть похожий вопрос.
Похожие вопросы