Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Nov 6, 2024

Conversation

aine-etke
Copy link
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
2 checks passed
@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/synapse-admin#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