19 lines
446 B
Nix
19 lines
446 B
Nix
{
|
|
networking.firewall.allowedTCPPorts = [8448];
|
|
|
|
services = {
|
|
conduwuit = {
|
|
enable = true;
|
|
group = "caddy";
|
|
settings.global = {
|
|
server_name = "henryhiles.com";
|
|
unix_socket_path = "/run/conduwuit/socket";
|
|
};
|
|
};
|
|
|
|
caddy.virtualHosts."matrix.henryhiles.com" = {
|
|
serverAliases = ["matrix.henryhiles.com:8448"];
|
|
extraConfig = "reverse_proxy unix//run/conduwuit/socket";
|
|
};
|
|
};
|
|
}
|