niksos/hosts/chmura/conduit.nix

33 lines
779 B
Nix
Raw Normal View History

2023-07-13 16:39:27 +02:00
{
config,
pkgs,
inputs,
...
2023-07-13 19:44:12 +02:00
}: {
services.matrix-conduit = {
enable = true;
2023-07-13 16:39:27 +02:00
package = inputs.conduit.packages.${pkgs.system}.default;
2023-07-13 16:39:27 +02:00
settings.global = {
server_name = "jacekpoz.pl";
database_backend = "rocksdb";
port = 6167;
allow_registration = true;
};
2023-07-13 16:39:27 +02:00
};
services.caddy = {
enable = true;
virtualHosts."m.jacekpoz.pl".extraConfig = ''
reverse_proxy /_matrix/* localhost:6167
'';
virtualHosts."jacekpoz.pl:8448".extraConfig = ''
reverse_proxy /_matrix/* localhost:6167
'';
};
2023-07-13 16:39:27 +02:00
networking.firewall.allowedTCPPorts = [ 80 443 8448 ];
networking.firewall.allowedUDPPorts = [ 80 443 8448 ];
2023-07-13 16:39:27 +02:00
}