-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix some docs #7899
Fix some docs #7899
Changes from 13 commits
86372a6
5a98362
237d2e8
6d435b5
b9d8563
f9f7179
68e1d27
d23094e
9f3f713
3a15a66
6d911bb
fd61afc
2e396b1
6670c10
b104566
ee78e19
0e25e86
fb4624b
e142115
efc03d7
880268a
7dc673b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -234,17 +234,18 @@ for a number of platforms. | |
|
|
||
| There is an offical synapse image available at | ||
| https://hub.docker.com/r/matrixdotorg/synapse which can be used with | ||
| the docker-compose file available at [contrib/docker](contrib/docker). Further information on | ||
| this including configuration options is available in the README on | ||
| hub.docker.com. | ||
| the docker-compose file available at [contrib/docker](contrib/docker). Further | ||
| information on this including configuration options is available in the README | ||
| on hub.docker.com. | ||
|
|
||
| Alternatively, Andreas Peters (previously Silvio Fricke) has contributed a | ||
| Dockerfile to automate a synapse server in a single Docker image, at | ||
| https://hub.docker.com/r/avhost/docker-matrix/tags/ | ||
|
|
||
| Slavi Pantaleev has created an Ansible playbook, | ||
| which installs the offical Docker image of Matrix Synapse | ||
| along with many other Matrix-related services (Postgres database, riot-web, coturn, mxisd, SSL support, etc.). | ||
| along with many other Matrix-related services (Postgres database, Element, coturn, | ||
| ma1sd, SSL support, etc.). | ||
| For more details, see | ||
| https://github.com/spantaleev/matrix-docker-ansible-deploy | ||
|
|
||
|
|
@@ -419,6 +420,60 @@ so, you will need to edit `homeserver.yaml`, as follows: | |
| For a more detailed guide to configuring your server for federation, see | ||
| [federate.md](docs/federate.md). | ||
|
|
||
| ## Client Well-known URI | ||
|
|
||
| Setting up the client Well-Known URI is optional but if you set it up, it will | ||
| allow users to enter their full username (e.g. `@user:server.com`) into clients | ||
|
||
| which support well-known lookup to automatically configure the homeserver and | ||
| identity server URLs. This is useful so that users don't have to memorize or think | ||
| about the actual homeserver URL you are using. | ||
|
|
||
| The URL `https://<server_name>/.well-known/matrix/client` should return JSON in | ||
| the following format. | ||
|
|
||
| ``` | ||
| { | ||
| "m.homeserver": { | ||
| "base_url": "https://<matrix.example.com>" | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| It can optionally contain identity server information as well. | ||
|
|
||
| ``` | ||
| { | ||
| "m.homeserver": { | ||
| "base_url": "https://<matrix.example.com>" | ||
| }, | ||
| "m.identity_server": { | ||
| "base_url": "https://<identity.example.com>" | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| To work in browser based clients, the file must be served with the appropriate | ||
| 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. | ||
|
|
||
| In nginx this would be something like: | ||
| ``` | ||
| location /.well-known/matrix/client { | ||
| return 200 '{"m.homeserver": {"base_url": "https://<matrix.example.com>"}}'; | ||
| add_header Content-Type application/json; | ||
| add_header Access-Control-Allow-Origin *; | ||
| } | ||
| ``` | ||
|
|
||
| You should also 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. | ||
|
|
||
| ``` | ||
| public_baseurl: "https://<matrix.example.com>" | ||
| ``` | ||
|
|
||
|
|
||
|
|
@@ -437,7 +492,7 @@ email will be disabled. | |
|
|
||
| ## Registering a user | ||
|
|
||
| The easiest way to create a new user is to do so from a client like [Riot](https://riot.im). | ||
| The easiest way to create a new user is to do so from a client like [Element](https://element.io/). | ||
|
|
||
| Alternatively you can do so from the command line if you have installed via pip. | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Document how to set up a Client Well-Known file and fix several pieces of outdated documentation. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,13 @@ | ||
| matrix-synapse-py3 (1.xx.0) stable; urgency=medium | ||
|
|
||
| [ Synapse Packaging team ] | ||
| * New synapse release 1.xx.0. | ||
|
|
||
| [ Aaron Raimist ] | ||
| * Fix outdated documentation for SYNAPSE_CACHE_FACTOR | ||
|
|
||
| -- Synapse Packaging team <[email protected]> XXXXX | ||
|
|
||
| matrix-synapse-py3 (1.17.0) stable; urgency=medium | ||
|
|
||
| * New synapse release 1.17.0. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| # Specify environment variables used when running Synapse | ||
| # SYNAPSE_CACHE_FACTOR=1 (default) | ||
| # SYNAPSE_CACHE_FACTOR=0.5 (default) |
Uh oh!
There was an error while loading. Please reload this page.