NixOS-Config/nixos/server/package-configs/conduit/configuration.nix

35 lines
691 B
Nix
Raw Normal View History

2024-01-21 22:58:18 +01:00
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
2024-01-21 22:58:18 +01:00
services.matrix-conduit = {
enable = true;
settings.global = {
allow_registration = true;
server_name = "matrix.gladtherescake.eu";
port = 6167;
2024-01-21 22:58:18 +01:00
};
};
services.nginx = {
virtualHosts = {
"matrix.gladtherescake.eu" = {
2024-01-21 22:58:18 +01:00
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:6167";
proxyWebsockets = true;
};
2024-01-21 22:58:18 +01:00
};
};
};
# Open firewall ports for HTTP, HTTPS, and Matrix federation
networking.firewall.allowedTCPPorts = [80 443 8448];
networking.firewall.allowedUDPPorts = [80 443 8448];
}