Skip to content

Add support for config from /.well-known/matrix/client#126

Merged
aine-etke merged 3 commits intomainfrom
add-wellknown-matrix-client-config
Nov 6, 2024
Merged

Add support for config from /.well-known/matrix/client#126
aine-etke merged 3 commits intomainfrom
add-wellknown-matrix-client-config

Conversation

@aine-etke
Copy link
Copy Markdown
Member

@aine-etke aine-etke commented Nov 6, 2024

This PR allows adding any configuration to the /.well-known/matrix/client file under cc.etke.synapse-admin key, allowing to set specific Synapse Admin configuration despite the instance/page of Synapse Admin you use. Example of such /.well-known/matrix/client:

{
  "m.homeserver": {
    "base_url": "https://example.com"
  },
  "m.identity_server": {
    "base_url": "https://vector.im"
  },
  "cc.etke.synapse-admin": {
    "asManagedUsers": [
      "^@telegram_[a-zA-Z0-9]+:example\\.com$"
    ]
  }
}

That solves an issue when you are using CDN version of Synapse Admin and still want to get server-specific configuration

@aine-etke aine-etke marked this pull request as ready for review November 6, 2024 22:24
@aine-etke aine-etke merged commit c698f57 into main Nov 6, 2024
@aine-etke aine-etke deleted the add-wellknown-matrix-client-config branch November 6, 2024 22:24
spantaleev added a commit to spantaleev/matrix-docker-ansible-deploy that referenced this pull request Nov 8, 2024
…ix/client`

Related to:
- etkecc/ketesa#126
- https://github.com/etkecc/synapse-admin/releases/tag/v0.10.3-etke27

People who wish to disable this and keep their `/.well-known/matrix/client` file tidier
can do it via:

```yml
matrix_static_files_file_matrix_client_property_cc_etke_synapse_admin_enabled: false
```
spantaleev added a commit to spantaleev/matrix-docker-ansible-deploy that referenced this pull request Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant