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
|
||||
./secrets.nix
|
||||
./plausible.nix
|
||||
./conduit.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -7,6 +7,9 @@
|
|||
plausible = {
|
||||
file = ../../../secrets/plausible.age;
|
||||
};
|
||||
conduit = {
|
||||
file = ../../../secrets/conduit.age;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue