blob: 611f6eb1eb3d1adc3c81e0caf63663cc9fd5b892 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{ config, lib, ... }:
let
cfg = config.services.matrix-synapse;
workerName = "background";
workerRoutes = [ ];
in
{
services.matrix-synapse = lib.mkIf cfg.enableBackgroundWorker {
settings = {
instance_map = {
background = {
path = "/run/matrix-synapse/${workerName}.sock";
};
};
run_background_tasks_on = workerName;
};
workers = {
background = {
worker_app = "synapse.app.generic_worker";
worker_listeners = [
{
type = "http";
path = "/run/matrix-synapse/${workerName}.sock";
resources = [
{
names = [ "replication" ];
compress = false;
}
];
}
];
};
};
};
}
|