Added Cinny host
This commit is contained in:
@@ -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
|
||||||
|
# }';
|
||||||
|
# '';
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user