configuration.nix/hosts/bifrost/services/apps/conduwuit.nix

24 lines
749 B
Nix
Raw Normal View History

2024-11-27 23:59:27 +05:30
_: {
services = {
caddy.virtualHosts = {
"matrix.acomputer.lol" = {
serverAliases = [ "matrix.acomputer.lol:8448" ];
extraConfig = ''
reverse_proxy /_matrix/* 10.10.10.13:6167
reverse_proxy /_conduwuit/* 10.10.10.13:6167
reverse_proxy /.well-known/matrix/* 10.10.10.13:6167
'';
};
"matrix.ironyofprivacy.org" = {
serverAliases = [ "matrix.ironyofprivacy.org:8448" ];
extraConfig = ''
reverse_proxy /_matrix/* 10.10.10.13:6168
reverse_proxy /_conduwuit/* 10.10.10.13:6168
reverse_proxy /.well-known/matrix/* 10.10.10.13:6168
'';
};
};
};
networking.firewall.interfaces.ens3.allowedTCPPorts = [ 8448 ];
}