Procházet zdrojové kódy

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 před 6 roky
rodič
revize
3ddb8cd148
2 změnil soubory, kde provedl 6 přidání a 2 odebrání
  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 Zobrazit soubor

@@ -58,7 +58,7 @@ matrix_dimension_configuration_yaml: |
# 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
# 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
# stickers. If not supplied or left empty Dimension will use the clientServerUrl.


+ 5
- 1
roles/matrix-synapse/templates/synapse/homeserver.yaml.j2 Zobrazit soubor

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

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

{% if matrix_synapse_federation_enabled %}


Načítá se…
Zrušit
Uložit