remove mongodb from nfss

This commit is contained in:
Yan Lin 2026-02-10 14:34:17 +01:00
parent 8b23b480bf
commit ee24f2848b
5 changed files with 2 additions and 32 deletions

View file

@ -44,20 +44,5 @@
};
tcp = {
routers.mongodb = {
rule = "HostSNI(`mongodb.yanlincs.com`)";
service = "mongodb";
entrypoints = [ "mongodb" ];
tls = {
certResolver = "cloudflare";
domains = [{ main = "*.yanlincs.com"; }];
};
};
services.mongodb = {
loadBalancer.servers = [{ address = "nfss.yanlincs.com:27017"; }];
};
};
};
}

View file

@ -41,8 +41,7 @@
useDHCP = true; # VPS typically use DHCP
firewall = {
enable = true;
allowedTCPPorts = [ 22 80 443 22000 27017 ];
allowedUDPPorts = [ 22000 ];
allowedTCPPorts = [ 22 80 443 ];
trustedInterfaces = [ "tailscale0" ];
};
};