0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-06-20 13:28:20 +02:00
dendrite/setup/config
devonh 1c4ec67bb6
Add configuration option for sliding sync when hosting /.well-known/matrix/client (#3189)
Adds the `org.matrix.msc3575.proxy` field (used for configuring sliding
sync) to /.well-known/matrix/client when Dendrite is serving that
endpoint and `well_known_sliding_sync_proxy` has been configured.

ie. Config values of:
``` yaml
global:
    well_known_client_name: https://example.com
    well_known_sliding_sync_proxy: https://syncv3.example.com
```
results in a /.well-known/matrix/client of:
``` json
{
    "m.homeserver": {
        "base_url": "https://example.com"
    },
    "org.matrix.msc3575.proxy": {
        "url": "https://syncv3.example.com"
    }
}
```

If `well_known_sliding_sync_proxy` is not provided, the json provided by
/.well-known/matrix/client does not include the proxy field.
ie.
``` json
{
    "m.homeserver": {
        "base_url": "https://example.com"
    }
}
```
2023-08-24 21:08:40 +00:00
..
config.go refactor: update GMSL (#3058) 2023-04-19 15:50:33 +01:00
config_address.go simplify unix socket permission format (#3014) 2023-03-16 08:51:21 +01:00
config_address_test.go simplify unix socket permission format (#3014) 2023-03-16 08:51:21 +01:00
config_appservice.go app service unix socket support (#3022) 2023-04-04 09:42:46 +02:00
config_clientapi.go feat: admin APIs for token authenticated registration (#3101) 2023-06-22 16:37:21 +00:00
config_federationapi.go refactor: update GMSL (#3058) 2023-04-19 15:50:33 +01:00
config_global.go Add configuration option for sliding sync when hosting /.well-known/matrix/client (#3189) 2023-08-24 21:08:40 +00:00
config_jetstream.go Remove polylith/API mode (#2967) 2023-02-14 12:47:47 +01:00
config_keyserver.go Remove polylith/API mode (#2967) 2023-02-14 12:47:47 +01:00
config_mediaapi.go Remove polylith/API mode (#2967) 2023-02-14 12:47:47 +01:00
config_mscs.go de-MSC-ifying space summaries (MSC2946) (#3134) 2023-07-20 15:06:05 +01:00
config_relayapi.go Remove polylith/API mode (#2967) 2023-02-14 12:47:47 +01:00
config_roomserver.go Add config key for default room version (#3171) 2023-08-08 14:20:05 +01:00
config_syncapi.go Remove polylith/API mode (#2967) 2023-02-14 12:47:47 +01:00
config_test.go refactor: update GMSL (#3058) 2023-04-19 15:50:33 +01:00
config_userapi.go Remove polylith/API mode (#2967) 2023-02-14 12:47:47 +01:00