feat(thor): add conduit, matrix server.
This commit is contained in:
parent
28096f3b2e
commit
5a79f12e4b
5 changed files with 39 additions and 0 deletions
34
modules/servers/thor/conduit.nix
Normal file
34
modules/servers/thor/conduit.nix
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
{config, ...}: {
|
||||||
|
services.matrix-conduit = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
global = {
|
||||||
|
server_name = "cronyakatsuki.xyz";
|
||||||
|
database_backend = "rocksdb";
|
||||||
|
allow_registration = true;
|
||||||
|
allow_check_for_updates = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.services.conduit.serviceConfig = {
|
||||||
|
EnvironmentFile = ["${config.age.secrets.conduit.path}"];
|
||||||
|
};
|
||||||
|
|
||||||
|
services.traefik.dynamicConfigOptions.http = {
|
||||||
|
services.conduit.loadBalancer.servers = [
|
||||||
|
{
|
||||||
|
url = "http://localhost:6167";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
routers.conduit = {
|
||||||
|
rule = "Host(`matrix.cronyakatsuki.xyz`)";
|
||||||
|
tls = {
|
||||||
|
certResolver = "porkbun";
|
||||||
|
};
|
||||||
|
service = "conduit";
|
||||||
|
entrypoints = "websecure";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -4,5 +4,6 @@
|
||||||
./forgejo.nix
|
./forgejo.nix
|
||||||
./secrets.nix
|
./secrets.nix
|
||||||
./plausible.nix
|
./plausible.nix
|
||||||
|
./conduit.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,9 @@
|
||||||
plausible = {
|
plausible = {
|
||||||
file = ../../../secrets/plausible.age;
|
file = ../../../secrets/plausible.age;
|
||||||
};
|
};
|
||||||
|
conduit = {
|
||||||
|
file = ../../../secrets/conduit.age;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
BIN
secrets/conduit.age
Normal file
BIN
secrets/conduit.age
Normal file
Binary file not shown.
|
@ -22,4 +22,5 @@ in {
|
||||||
"navidrome.age".publicKeys = systems ++ users;
|
"navidrome.age".publicKeys = systems ++ users;
|
||||||
"forgejo-db.age".publicKeys = systems ++ users;
|
"forgejo-db.age".publicKeys = systems ++ users;
|
||||||
"plausible.age".publicKeys = systems ++ users;
|
"plausible.age".publicKeys = systems ++ users;
|
||||||
|
"conduit.age".publicKeys = systems ++ users;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue