Added Cinny host

This commit is contained in:
2026-04-14 19:37:28 +02:00
parent f8eebf743f
commit 1b8bf1911c

View File

@@ -1,10 +1,11 @@
{ config, ... }: { pkgs, config, ... }:
{ {
networking.firewall = { networking.firewall = {
allowedTCPPorts = [ allowedTCPPorts = [
8008 8008
8448 8448
3478 3478
8009
]; ];
allowedUDPPorts = [ allowedUDPPorts = [
3478 3478
@@ -92,5 +93,33 @@
no-multicast-peers no-multicast-peers
''; '';
}; };
nginx = {
virtualHosts."cinny" = {
listen = [
{
addr = "0.0.0.0";
port = 8009;
}
];
root = "${pkgs.cinny}";
# locations."/config.json" = {
# extraConfig = ''
# default_type application/json;
# return 200 '{
# "defaultHomeserver":0,
# "homeserverList": [
# {
# "name":"cyperpunk.de",
# "url":"https://matrix.cyperpunk.de"
# }
# ],
# "allowCustomHomeservers":true
# }';
# '';
# };
};
};
}; };
} }