+2
nixos/doc/manual/release-notes/rl-2311.section.md
+2
nixos/doc/manual/release-notes/rl-2311.section.md
···Unfortunately all servers supporting new clients (newer version of anki-sync-server, anki's built in sync server and this new rust package) do not support the older sync protocol that was used in the old server, so such old clients will also need updating and in particular the anki package in nixpkgs is also being updated in this release.The module update takes care of the new config syntax and the data itself (user login and cards) are compatible, so users of the module will be able to just log in again after updating both client and server without any extra action.- `services.nginx` gained a `defaultListen` option at server-level with support for PROXY protocol listeners, also `proxyProtocol` is now exposed in `services.nginx.virtualHosts.<name>.listen` option. It is now possible to run PROXY listeners and non-PROXY listeners at a server-level, see [#213510](https://github.com/NixOS/nixpkgs/pull/213510/) for more details.- `services.restic.backups` now adds wrapper scripts to your system path, which set the same environment variables as the service, so restic operations can easly be run from the command line. This behavior can be disabled by setting `createWrapper` to `false`, per backup configuration.
···Unfortunately all servers supporting new clients (newer version of anki-sync-server, anki's built in sync server and this new rust package) do not support the older sync protocol that was used in the old server, so such old clients will also need updating and in particular the anki package in nixpkgs is also being updated in this release.The module update takes care of the new config syntax and the data itself (user login and cards) are compatible, so users of the module will be able to just log in again after updating both client and server without any extra action.+- `services.matrix-synapse` has new options to configure worker processes for matrix-synapse using [`services.matrix-synapse.workers`](#opt-services.matrix-synapse.workers). It's also now possible to configure a local redis server using [`services.matrix-synapse.configureRedisLocally`](#opt-services.matrix-synapse.configureRedisLocally).- `services.nginx` gained a `defaultListen` option at server-level with support for PROXY protocol listeners, also `proxyProtocol` is now exposed in `services.nginx.virtualHosts.<name>.listen` option. It is now possible to run PROXY listeners and non-PROXY listeners at a server-level, see [#213510](https://github.com/NixOS/nixpkgs/pull/213510/) for more details.- `services.restic.backups` now adds wrapper scripts to your system path, which set the same environment variables as the service, so restic operations can easly be run from the command line. This behavior can be disabled by setting `createWrapper` to `false`, per backup configuration.
-25
nixos/modules/services/matrix/synapse-log_config.yaml
-25
nixos/modules/services/matrix/synapse-log_config.yaml
···
···
+444
-174
nixos/modules/services/matrix/synapse.nix
+444
-174
nixos/modules/services/matrix/synapse.nix
···············[sample configuration](https://github.com/matrix-org/synapse/blob/v${pkgs.matrix-synapse-unwrapped.version}/docs/sample_config.yaml)····································-${ concatMapStringsSep "\n " (x: "--config-path ${x} \\") ([ configFile ] ++ cfg.extraConfigFiles) }
·········+genLogConfigFile = logName: format.generate "synapse-log-${logName}.yaml" (logConfig logName);······[sample configuration](https://github.com/matrix-org/synapse/blob/v${pkgs.matrix-synapse-unwrapped.version}/docs/sample_config.yaml)······+for worker replication traffic on port 9093. See [`services.matrix-synapse.workers`](#opt-services.matrix-synapse.workers)·····················+[upstream documentation](https://github.com/matrix-org/synapse/blob/v${pkgs.matrix-synapse-unwrapped.version}/usage/configuration/config_documentation.md#redis)+Options for configuring workers. Worker support will be enabled if at least one worker is configured here.+See the [worker documention](https://matrix-org.github.io/synapse/latest/workers.html#worker-configuration)+for possible options for each worker. Worker-specific options overriding the shared homeserver configuration can be+Worker support will add a replication listener on port 9093 to the main synapse process using the default+value of [`services.matrix-synapse.settings.listeners`](#opt-services.matrix-synapse.settings.listeners) and configure that+using [`services.matrix-synapse.configureRedisLocally`](#opt-services.matrix-synapse.configureRedisLocally).+Workers also require a proper reverse proxy setup to direct incoming requests to the appropriate process. See+the [reverse proxy documentation](https://matrix-org.github.io/synapse/latest/reverse_proxy.html) for a+the [worker documentation](https://matrix-org.github.io/synapse/latest/workers.html#available-worker-applications)+See the [python documentation](https://docs.python.org/3/library/logging.config.html#configuration-dictionary-schema)+for the schema and the [upstream repository](https://github.com/matrix-org/synapse/blob/v${pkgs.matrix-synapse-unwrapped.version}/docs/sample_log_config.yaml)······+&& (lib.any (bind: bind == main.host || bind == "0.0.0.0" || bind == "::") listener.bind_addresses)+Workers for matrix-synapse require setting `services.matrix-synapse.settings.instance_map.main`+to any listener configured in `services.matrix-synapse.settings.listeners` with a `"replication"`···+${ concatMapStringsSep "\n " (x: "--config-path ${x} \\") ([ configFile workerConfigFile ] ++ cfg.extraConfigFiles) }+${ concatMapStringsSep "\n " (x: "--config-path ${x} \\") ([ configFile ] ++ cfg.extraConfigFiles) }
+1
nixos/tests/all-tests.nix
+1
nixos/tests/all-tests.nix
···
···
+50
nixos/tests/matrix/synapse-workers.nix
+50
nixos/tests/matrix/synapse-workers.nix
···
···
+1
-1
pkgs/servers/matrix-synapse/default.nix
+1
-1
pkgs/servers/matrix-synapse/default.nix