pull/16678/merge
LiAlH4 2023-12-13 10:14:17 -08:00 committed by GitHub
commit 449ad438ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 7 deletions

1
changelog.d/16678-doc Normal file
View File

@ -0,0 +1 @@
Update installation.md to fix a confusion that whether synapse can serve Client Well-Known URI.

View File

@ -496,6 +496,16 @@ Cross-Origin Resource Sharing (CORS) headers. A recommended value would be
`Access-Control-Allow-Origin: *` which would allow all browser based clients to
view it.
Synapse will serve it once you set `public_baseurl` in your `homeserver.yaml`.
Just like:
```yaml
public_baseurl: "https://<matrix.example.com>"
```
Alternatively, you can set your reverse proxy to serve it.
In nginx this would be something like:
```nginx
@ -506,14 +516,11 @@ location /.well-known/matrix/client {
}
```
You should also ensure the `public_baseurl` option in `homeserver.yaml` is set
You should always ensure the `public_baseurl` option in `homeserver.yaml` is set
correctly. `public_baseurl` should be set to the URL that clients will use to
connect to your server. This is the same URL you put for the `m.homeserver`
`base_url` above.
```yaml
public_baseurl: "https://<matrix.example.com>"
```
connect to your server. If you use reverse proxy to serve client Well-Known URI,
you should ensure the URL you put for the `public_baseurl` in `homeserver.yaml`
and `m.homeserver` `base_url` in your reverse proxy config must be the same.
### Email