cobblemon public

This commit is contained in:
Clayton Hickey 2026-03-07 18:26:19 -05:00
parent 5e8cb90b83
commit ff604fa02d
2 changed files with 23 additions and 15 deletions

View file

@ -108,5 +108,28 @@ in
cobblemonPort
];
})
(lib.mkIf (config.networking.hostName == "loadedskypotato") {
services.nginx.streamConfig = ''
server {
listen ${survivalPort} reuseport;
proxy_pass 10.100.0.2:${survivalPort};
}
server {
listen ${creativePort} reuseport;
proxy_pass 10.100.0.2:${creativePort};
}
server {
listen ${cobblemonPort} reuseport;
proxy_pass 10.100.0.2:${cobblemonPort};
}
'';
networking.firewall.allowedTCPPorts = [
survivalPort
creativePort
cobblemonPort
];
})
];
}