Move config pages into config dir
This commit is contained in:
@@ -98,7 +98,7 @@ Dockerfile makes use of to generate appropriate worker, nginx and supervisord co
|
||||
files.
|
||||
|
||||
Sharding is supported for a subset of workers, in line with the
|
||||
[worker documentation](../docs/workers.md). To run multiple instances of a given worker
|
||||
[worker documentation](../docs/usage/configuration/workers.md). To run multiple instances of a given worker
|
||||
type, simply specify the type multiple times in `SYNAPSE_WORKER_TYPES`
|
||||
(e.g `SYNAPSE_WORKER_TYPES=event_creator,event_creator...`).
|
||||
|
||||
|
||||
@@ -20,23 +20,23 @@
|
||||
- [Configuration Manual](usage/configuration/config_documentation.md)
|
||||
- [Homeserver Sample Config File](usage/configuration/homeserver_sample_config.md)
|
||||
- [Logging Sample Config File](usage/configuration/logging_sample_config.md)
|
||||
- [Structured Logging](structured_logging.md)
|
||||
- [Templates](templates.md)
|
||||
- [Structured Logging](usage/configuration/structured_logging.md)
|
||||
- [Templates](usage/configuration/templates.md)
|
||||
- [User Authentication](usage/configuration/user_authentication/README.md)
|
||||
- [Single-Sign On](usage/configuration/user_authentication/single_sign_on/README.md)
|
||||
- [OpenID Connect](openid.md)
|
||||
- [OpenID Connect](usage/configuration/user_authentication/single_sign_on/openid.md)
|
||||
- [SAML](usage/configuration/user_authentication/single_sign_on/saml.md)
|
||||
- [CAS](usage/configuration/user_authentication/single_sign_on/cas.md)
|
||||
- [SSO Mapping Providers](sso_mapping_providers.md)
|
||||
- [Password Auth Providers](password_auth_providers.md)
|
||||
- [JSON Web Tokens](jwt.md)
|
||||
- [SSO Mapping Providers](usage/configuration/user_authentication/single_sign_on/sso_mapping_providers.md)
|
||||
- [Password Auth Providers](usage/configuration/user_authentication/password_auth_providers.md)
|
||||
- [JSON Web Tokens](usage/configuration/user_authentication/jwt.md)
|
||||
- [Refresh Tokens](usage/configuration/user_authentication/refresh_tokens.md)
|
||||
- [Registration Captcha](CAPTCHA_SETUP.md)
|
||||
- [Application Services](application_services.md)
|
||||
- [Server Notices](server_notices.md)
|
||||
- [Consent Tracking](consent_tracking.md)
|
||||
- [User Directory](user_directory.md)
|
||||
- [Message Retention Policies](message_retention_policies.md)
|
||||
- [Registration Captcha](usage/configuration/CAPTCHA_SETUP.md)
|
||||
- [Application Services](usage/configuration/application_services.md)
|
||||
- [Server Notices](usage/configuration/server_notices.md)
|
||||
- [Consent Tracking](usage/configuration/consent_tracking.md)
|
||||
- [User Directory](usage/configuration/user_directory.md)
|
||||
- [Message Retention Policies](usage/configuration/message_retention_policies.md)
|
||||
- [Pluggable Modules](modules/index.md)
|
||||
- [Writing a module](modules/writing_a_module.md)
|
||||
- [Spam checker callbacks](modules/spam_checker_callbacks.md)
|
||||
@@ -47,9 +47,9 @@
|
||||
- [Background update controller callbacks](modules/background_update_controller_callbacks.md)
|
||||
- [Account data callbacks](modules/account_data_callbacks.md)
|
||||
- [Porting a legacy module to the new interface](modules/porting_legacy_module.md)
|
||||
- [Workers](workers.md)
|
||||
- [Using `synctl` with Workers](synctl_workers.md)
|
||||
- [Systemd](systemd-with-workers/README.md)
|
||||
- [Workers](usage/configuration/workers.md)
|
||||
- [Using `synctl` with Workers](usage/configuration/synctl_workers.md)
|
||||
- [Systemd](usage/configuration/systemd-with-workers/README.md)
|
||||
- [Administration](usage/administration/README.md)
|
||||
- [Admin API](usage/administration/admin_api/README.md)
|
||||
- [Account Validity](admin_api/account_validity.md)
|
||||
|
||||
@@ -45,4 +45,4 @@ Once the notice has been sent, the API will return the following response:
|
||||
```
|
||||
|
||||
Note that server notices must be enabled in `homeserver.yaml` before this API
|
||||
can be used. See [the server notices documentation](../server_notices.md) for more information.
|
||||
can be used. See [the server notices documentation](../usage/configuration/server_notices.md) for more information.
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
|
||||
## Monitoring workers
|
||||
|
||||
To monitor a Synapse installation using [workers](workers.md),
|
||||
To monitor a Synapse installation using [workers](usage/configuration/workers.md),
|
||||
every worker needs to be monitored independently, in addition to
|
||||
the main homeserver process. This is because workers don't send
|
||||
their metrics to the main homeserver process, but expose them
|
||||
|
||||
@@ -36,7 +36,7 @@ presence to (for those users that the receiving user is considered interested in
|
||||
It does not include state for users who are currently offline, and it can only be
|
||||
called on workers that support sending federation. Additionally, this method must
|
||||
only be called from the process that has been configured to write to the
|
||||
the [presence stream](workers.md#stream-writers).
|
||||
the [presence stream](usage/configuration/workers.md#stream-writers).
|
||||
By default, this is the main process, but another worker can be configured to do
|
||||
so.
|
||||
|
||||
|
||||
@@ -204,7 +204,7 @@ which relays replication commands between processes. This can give a significant
|
||||
CPU saving on the main process and is a prerequisite for upcoming
|
||||
performance improvements.
|
||||
|
||||
To migrate to Redis add the [`redis` config](./workers.md#shared-configuration),
|
||||
To migrate to Redis add the [`redis` config](usage/configuration/workers.md#shared-configuration),
|
||||
and remove the TCP `replication` listener from config of the master and
|
||||
`worker_replication_port` from worker config. Note that a HTTP listener with a
|
||||
`replication` resource is still required.
|
||||
@@ -507,8 +507,8 @@ Please see the [*Notifying Application Services*][v1_59_notify_ases_from] and
|
||||
[*Updating the User Directory*][v1_59_update_user_dir] sections of the worker
|
||||
documentation for more information.
|
||||
|
||||
[v1_59_notify_ases_from]: workers.md#notifying-application-services
|
||||
[v1_59_update_user_dir]: workers.md#updating-the-user-directory
|
||||
[v1_59_notify_ases_from]: usage/configuration/workers.md#notifying-application-services
|
||||
[v1_59_update_user_dir]: usage/configuration/workers.md#updating-the-user-directory
|
||||
|
||||
|
||||
# Upgrading to v1.58.0
|
||||
@@ -1050,7 +1050,7 @@ identity providers:
|
||||
`[synapse public baseurl]/_synapse/client/oidc/callback` to the list
|
||||
of permitted "redirect URIs" at the identity provider.
|
||||
|
||||
See the [OpenID docs](openid.md) for more information on setting
|
||||
See the [OpenID docs](usage/configuration/user_authentication/single_sign_on/openid.md) for more information on setting
|
||||
up OpenID Connect.
|
||||
|
||||
- If your server is configured for single sign-on via a SAML2 identity
|
||||
@@ -1286,7 +1286,7 @@ has been updated to include reverse proxy directives for
|
||||
endpoints under this prefix, **you must update your reverse proxy
|
||||
configurations for user password reset to work**.
|
||||
|
||||
Additionally, note that the [Synapse worker documentation](workers.md) has been updated to
|
||||
Additionally, note that the [Synapse worker documentation](usage/configuration/workers.md) has been updated to
|
||||
|
||||
: state that the `/_synapse/client/password_reset/email/submit_token`
|
||||
endpoint can be handled
|
||||
|
||||
@@ -106,4 +106,4 @@ The following JSON body parameters are available:
|
||||
|
||||
- `job_name` - A string which job to run. Valid values are:
|
||||
- `populate_stats_process_rooms` - Recalculate the stats for all rooms.
|
||||
- `regenerate_directory` - Recalculate the [user directory](../../../user_directory.md) if it is stale or out of sync.
|
||||
- `regenerate_directory` - Recalculate the [user directory](../../configuration/user_directory.md) if it is stale or out of sync.
|
||||
|
||||
@@ -79,6 +79,6 @@ indicator of problems, and a symptom of other problems though, so check other gr
|
||||
|
||||
If you're still having performance problems with your Synapse instance and you've
|
||||
tried everything you can, it may just be a lack of system resources. Consider adding
|
||||
more CPU and RAM, and make use of [worker mode](../../workers.md)
|
||||
more CPU and RAM, and make use of [worker mode](../configuration/workers.md)
|
||||
to make use of multiple CPU cores / multiple machines for your homeserver.
|
||||
|
||||
|
||||
@@ -460,7 +460,7 @@ Valid resource names are:
|
||||
|
||||
* `client`: the client-server API (/_matrix/client), and the synapse admin API (/_synapse/admin). Also implies `media` and `static`.
|
||||
|
||||
* `consent`: user consent forms (/_matrix/consent). See [here](../../consent_tracking.md) for more.
|
||||
* `consent`: user consent forms (/_matrix/consent). See [here](consent_tracking.md) for more.
|
||||
|
||||
* `federation`: the server-server API (/_matrix/federation). Also implies `media`, `keys`, `openid`
|
||||
|
||||
@@ -470,9 +470,9 @@ Valid resource names are:
|
||||
|
||||
* `metrics`: the metrics interface. See [here](../../metrics-howto.md).
|
||||
|
||||
* `openid`: OpenID authentication. See [here](../../openid.md).
|
||||
* `openid`: OpenID authentication. See [here](user_authentication/single_sign_on/openid.md).
|
||||
|
||||
* `replication`: the HTTP replication API (/_synapse/replication). See [here](../../workers.md).
|
||||
* `replication`: the HTTP replication API (/_synapse/replication). See [here](workers.md).
|
||||
|
||||
* `static`: static resources under synapse/static (/_matrix/static). (Mostly useful for 'fallback authentication'.)
|
||||
|
||||
@@ -835,7 +835,7 @@ find template files in to use to generate email or HTML page contents.
|
||||
If not set, or a file is not found within the template directory, a default
|
||||
template from within the Synapse package will be used.
|
||||
|
||||
See [here](../../templates.md) for more
|
||||
See [here](templates.md) for more
|
||||
information about using custom templates.
|
||||
|
||||
Example configuration:
|
||||
@@ -862,7 +862,7 @@ The message retention policies feature is disabled by default. Please be advised
|
||||
that enabling this feature carries some risk. There are known bugs with the implementation
|
||||
which can cause database corruption. Setting retention to delete older history
|
||||
is less risky than deleting newer history but in general caution is advised when enabling this
|
||||
experimental feature. You can read more about this feature [here](../../message_retention_policies.md).
|
||||
experimental feature. You can read more about this feature [here](message_retention_policies.md).
|
||||
|
||||
This setting has the following sub-options:
|
||||
* `default_policy`: Default retention policy. If set, Synapse will apply it to rooms that lack the
|
||||
@@ -1879,7 +1879,7 @@ oembed:
|
||||
---
|
||||
## Captcha ##
|
||||
|
||||
See [here](../../CAPTCHA_SETUP.md) for full details on setting up captcha.
|
||||
See [here](CAPTCHA_SETUP.md) for full details on setting up captcha.
|
||||
|
||||
---
|
||||
### `recaptcha_public_key`
|
||||
@@ -2879,7 +2879,7 @@ saml2_config:
|
||||
### `oidc_providers`
|
||||
|
||||
List of OpenID Connect (OIDC) / OAuth 2.0 identity providers, for registration
|
||||
and login. See [here](../../openid.md)
|
||||
and login. See [here](user_authentication/single_sign_on/openid.md)
|
||||
for information on how to configure these options.
|
||||
|
||||
For backwards compatibility, it is also possible to configure a single OIDC
|
||||
@@ -2977,7 +2977,7 @@ Options for each entry include:
|
||||
|
||||
* `module`: The class name of a custom mapping module. Default is
|
||||
`synapse.handlers.oidc.JinjaOidcMappingProvider`.
|
||||
See [OpenID Mapping Providers](../../sso_mapping_providers.md#openid-mapping-providers)
|
||||
See [OpenID Mapping Providers](user_authentication/single_sign_on/sso_mapping_providers.md#openid-mapping-providers)
|
||||
for information on implementing a custom mapping provider.
|
||||
|
||||
* `config`: Configuration for the mapping provider module. This section will
|
||||
@@ -3096,7 +3096,7 @@ Additional settings to use with single-sign on systems such as OpenID Connect,
|
||||
SAML2 and CAS.
|
||||
|
||||
Server admins can configure custom templates for pages related to SSO. See
|
||||
[here](../../templates.md) for more information.
|
||||
[here](templates.md) for more information.
|
||||
|
||||
Options include:
|
||||
* `client_whitelist`: A list of client URLs which are whitelisted so that the user does not
|
||||
@@ -3142,7 +3142,7 @@ and issued at ("iat") claims are validated if present.
|
||||
Note that this is a non-standard login type and client support is
|
||||
expected to be non-existent.
|
||||
|
||||
See [here](../../jwt.md) for more.
|
||||
See [here](user_authentication/jwt.md) for more.
|
||||
|
||||
Additional sub-options for this setting include:
|
||||
* `enabled`: Set to true to enable authorization using JSON web
|
||||
@@ -3245,7 +3245,7 @@ ui_auth:
|
||||
Configuration for sending emails from Synapse.
|
||||
|
||||
Server admins can configure custom templates for email content. See
|
||||
[here](../../templates.md) for more information.
|
||||
[here](templates.md) for more information.
|
||||
|
||||
This setting has the following sub-options:
|
||||
* `smtp_host`: The hostname of the outgoing SMTP server to use. Defaults to 'localhost'.
|
||||
@@ -3442,7 +3442,7 @@ user_directory:
|
||||
---
|
||||
### `user_consent`
|
||||
|
||||
For detailed instructions on user consent configuration, see [here](../../consent_tracking.md).
|
||||
For detailed instructions on user consent configuration, see [here](consent_tracking.md).
|
||||
|
||||
Parts of this section are required if enabling the `consent` resource under
|
||||
[`listeners`](#listeners), in particular `template_dir` and `version`.
|
||||
|
||||
@@ -52,7 +52,7 @@ clients.
|
||||
|
||||
Support for this feature can be enabled and configured by adding a the
|
||||
`retention` in the Synapse configuration file (see
|
||||
[configuration manual](usage/configuration/config_documentation.md#retention)).
|
||||
[configuration manual](config_documentation.md#retention)).
|
||||
|
||||
To enable support for message retention policies, set the setting
|
||||
`enabled` in this section to `true`.
|
||||
@@ -88,7 +88,7 @@ expired events from the database. They are only run if support for
|
||||
message retention policies is enabled in the server's configuration. If
|
||||
no configuration for purge jobs is configured by the server admin,
|
||||
Synapse will use a default configuration, which is described here in the
|
||||
[configuration manual](usage/configuration/config_documentation.md#retention).
|
||||
[configuration manual](config_documentation.md#retention).
|
||||
|
||||
Some server admins might want a finer control on when events are removed
|
||||
depending on an event's room's policy. This can be done by setting the
|
||||
@@ -58,4 +58,4 @@ displayname and avatar of the Server Notices user.
|
||||
## Sending notices
|
||||
|
||||
To send server notices to users you can use the
|
||||
[admin_api](admin_api/server_notices.md).
|
||||
[admin_api](../../admin_api/server_notices.md).
|
||||
@@ -50,7 +50,7 @@ as follows:
|
||||
maintainer.
|
||||
|
||||
To enable the JSON web token integration, you should then add a `jwt_config` option
|
||||
to your configuration file. See the [configuration manual](usage/configuration/config_documentation.md#jwt_config) for some
|
||||
to your configuration file. See the [configuration manual](../config_documentation.md#jwt_config) for some
|
||||
sample settings.
|
||||
|
||||
## How to test JWT as a developer
|
||||
@@ -46,7 +46,7 @@ as follows:
|
||||
|
||||
To enable the OpenID integration, you should then add a section to the `oidc_providers`
|
||||
setting in your configuration file.
|
||||
See the [configuration manual](usage/configuration/config_documentation.md#oidc_providers) for some sample settings, as well as
|
||||
See the [configuration manual](../../config_documentation.md#oidc_providers) for some sample settings, as well as
|
||||
the text below for example configurations for specific providers.
|
||||
|
||||
## Sample configs
|
||||
@@ -37,7 +37,7 @@ as Synapse). The Synapse config is then modified to point to the mapping provide
|
||||
## OpenID Mapping Providers
|
||||
|
||||
The OpenID mapping provider can be customized by editing the
|
||||
[`oidc_providers.user_mapping_provider.module`](usage/configuration/config_documentation.md#oidc_providers)
|
||||
[`oidc_providers.user_mapping_provider.module`](../../config_documentation.md#oidc_providers)
|
||||
config option.
|
||||
|
||||
`oidc_providers.user_mapping_provider.config` allows you to provide custom
|
||||
@@ -7,7 +7,7 @@ who are present in a publicly viewable room present on the server.
|
||||
|
||||
The directory info is stored in various tables, which can (typically after
|
||||
DB corruption) get stale or out of sync. If this happens, for now the
|
||||
solution to fix it is to use the [admin API](usage/administration/admin_api/background_updates.md#run)
|
||||
solution to fix it is to use the [admin API](../administration/admin_api/background_updates.md#run)
|
||||
and execute the job `regenerate_directory`. This should then start a background task to
|
||||
flush the current tables and regenerate the directory.
|
||||
|
||||
@@ -68,7 +68,7 @@ https://hub.docker.com/r/matrixdotorg/synapse/.
|
||||
To make effective use of the workers, you will need to configure an HTTP
|
||||
reverse-proxy such as nginx or haproxy, which will direct incoming requests to
|
||||
the correct worker, or to the main synapse instance. See
|
||||
[the reverse proxy documentation](setup/reverse_proxy.md) for information on setting up a reverse
|
||||
[the reverse proxy documentation](../../setup/reverse_proxy.md) for information on setting up a reverse
|
||||
proxy.
|
||||
|
||||
When using workers, each worker process has its own configuration file which
|
||||
@@ -128,7 +128,7 @@ In the config file for each worker, you must specify:
|
||||
* The HTTP replication endpoint that it should talk to on the main synapse process
|
||||
(`worker_replication_host` and `worker_replication_http_port`)
|
||||
* If handling HTTP requests, a `worker_listeners` option with an `http`
|
||||
listener, in the same way as the [`listeners`](usage/configuration/config_documentation.md#listeners)
|
||||
listener, in the same way as the [`listeners`](config_documentation.md#listeners)
|
||||
option in the shared config.
|
||||
* If handling the `^/_matrix/client/v3/keys/upload` endpoint, the HTTP URI for
|
||||
the main process (`worker_main_http_uri`).
|
||||
@@ -287,7 +287,7 @@ For multiple workers not handling the SSO endpoints properly, see
|
||||
[#7530](https://github.com/matrix-org/synapse/issues/7530) and
|
||||
[#9427](https://github.com/matrix-org/synapse/issues/9427).
|
||||
|
||||
Note that a [HTTP listener](usage/configuration/config_documentation.md#listeners)
|
||||
Note that a [HTTP listener](config_documentation.md#listeners)
|
||||
with `client` and `federation` `resources` must be configured in the `worker_listeners`
|
||||
option in the worker config.
|
||||
|
||||
@@ -330,7 +330,7 @@ Additionally, the writing of specific streams (such as events) can be moved off
|
||||
of the main process to a particular worker.
|
||||
|
||||
To enable this, the worker must have a
|
||||
[HTTP `replication` listener](usage/configuration/config_documentation.md#listeners) configured,
|
||||
[HTTP `replication` listener](config_documentation.md#listeners) configured,
|
||||
have a `worker_name` and be listed in the `instance_map` config. The same worker
|
||||
can handle multiple streams, but unless otherwise documented, each stream can only
|
||||
have a single writer.
|
||||
@@ -553,7 +553,7 @@ media repository. Note that doing so will prevent the main process from being
|
||||
able to handle the above endpoints.
|
||||
|
||||
In the `media_repository` worker configuration file, configure the
|
||||
[HTTP listener](usage/configuration/config_documentation.md#listeners) to
|
||||
[HTTP listener](config_documentation.md#listeners) to
|
||||
expose the `media` resource. For example:
|
||||
|
||||
```yaml
|
||||
@@ -21,9 +21,9 @@ This documentation covers topics for **installation**, **configuration** and
|
||||
|
||||
* Learn how to [read log lines](usage/administration/request_log.md), configure
|
||||
[logging](usage/configuration/logging_sample_config.md) or set up [structured
|
||||
logging](structured_logging.md).
|
||||
logging](usage/configuration/structured_logging.md).
|
||||
|
||||
* Scale Synapse through additional [worker processes](workers.md).
|
||||
* Scale Synapse through additional [worker processes](usage/configuration/workers.md).
|
||||
|
||||
* Set up [monitoring and metrics](metrics-howto.md) to keep an eye on your
|
||||
Synapse instance's performance.
|
||||
|
||||
Reference in New Issue
Block a user