Просмотр исходного кода

Add support for running dimension in an unfederated environment

This config change follows:

  https://github.com/turt2live/matrix-dimension/blob/master/docs/unfederated.md
pull/462/head
Chris van Dijk 5 лет назад
Родитель
Сommit
3ddb8cd148
2 измененных файлов: 6 добавлений и 2 удалений
  1. +1
    -1
      roles/matrix-dimension/defaults/main.yml
  2. +5
    -1
      roles/matrix-synapse/templates/synapse/homeserver.yaml.j2

+ 1
- 1
roles/matrix-dimension/defaults/main.yml Просмотреть файл

@@ -58,7 +58,7 @@ matrix_dimension_configuration_yaml: |
# The URL that Dimension should use when trying to communicate with federated APIs on # The URL that Dimension should use when trying to communicate with federated APIs on
# the homeserver. If not supplied or left empty Dimension will try to resolve the address # the homeserver. If not supplied or left empty Dimension will try to resolve the address
# through the normal federation process. # through the normal federation process.
federationUrl: "http://matrix-synapse:8048"
federationUrl: "http://matrix-synapse:{{ 8048 if matrix_synapse_federation_enabled|bool else 8008 }}"


# The URL that Dimension will redirect media requests to for downloading media such as # The URL that Dimension will redirect media requests to for downloading media such as
# stickers. If not supplied or left empty Dimension will use the clientServerUrl. # stickers. If not supplied or left empty Dimension will use the clientServerUrl.


+ 5
- 1
roles/matrix-synapse/templates/synapse/homeserver.yaml.j2 Просмотреть файл

@@ -226,7 +226,11 @@ listeners:
x_forwarded: true x_forwarded: true


resources: resources:
- names: [client]
- names:
- client
{% if matrix_dimension_enabled and not matrix_synapse_federation_enabled %}
- openid
{% endif %}
compress: false compress: false


{% if matrix_synapse_federation_enabled %} {% if matrix_synapse_federation_enabled %}


Загрузка…
Отмена
Сохранить