Add support for running dimension in an unfederated environment
This config change follows: https://github.com/turt2live/matrix-dimension/blob/master/docs/unfederated.md
This commit is contained in:
parent
c13c29f48e
commit
3ddb8cd148
@ -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.
|
||||
|
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user