add mongodb
This commit is contained in:
parent
35be9ff89a
commit
2998cc763c
4 changed files with 32 additions and 2 deletions
|
|
@ -70,5 +70,21 @@
|
|||
};
|
||||
|
||||
};
|
||||
|
||||
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"; }];
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@
|
|||
useDHCP = true; # VPS typically use DHCP
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 22 80 443 22000 ];
|
||||
allowedTCPPorts = [ 22 80 443 22000 27017 ];
|
||||
allowedUDPPorts = [ 22000 ];
|
||||
trustedInterfaces = [ "tailscale0" ];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue