Compare commits

...

2 Commits

Author SHA1 Message Date
Sky Hearn 3bf2e68462 Really need to get persistant secrets setup :( 2024-03-25 00:34:27 +00:00
Sky Hearn d993a8535e Minecraft server setup 2024-03-09 16:52:21 +00:00
3 changed files with 30 additions and 11 deletions

View File

@ -80,8 +80,8 @@
allowedIPs = [ "10.100.1.0/24" ];
}
{ # ku
publicKey = "L4msD0mEG2ctKDtaMJW2y3cs1fT2LBRVV7iVlWZ2nZc=";
allowedIPs = [ "10.100.0.3/32" ];
publicKey = "MCPLxi1clVx92gfeq04mm1flgjzS2XqtC3OKN6C0iE8=";
allowedIPs = [ "10.100.2.0/24" ];
}
{ # Jas
publicKey = "Q90Tvst8ZntJPl1WxLOcV108k9SwPIpjXAtxHPE62UM=";
@ -94,6 +94,26 @@
{ # skyDesktop
publicKey = "36tqEexZ8e6ks+qjDpnMzUY9LAJvFvVDe6MLzR9vtEo=";
allowedIPs = [ "10.100.0.5/32" ];
}
{ # melon :>
publicKey = "nJgeRkHd6mRqT/lMUJIApCov4GgSekrkJJxZGTXOVCE=";
allowedIPs = [ "10.100.0.7/32" ];
}
{
publicKey = "gs17DdrtnYe2cA+Jxt6p/qovfCAT7eVn58Pq5eTHmGc=";
allowedIPs = [ "10.100.0.8/32" ];
}
{ # Kitibri
publicKey = "cT95nYaPYkra1Im355EwUXxw9Wef7b1j0YBx6+rnp1s=";
allowedIPs = [ "10.100.0.9/32" ];
}
{ # ken
publicKey = "6FHWDuKLW3QNVNTURIm6bJ1s0+FtzgEO9TtKuS0khhM=";
allowedIPs = [ "10.100.0.10/32" ];
}
{ # Jamie
publicKey = "mF6eLG4VgwVV56PGn+Omg0mvN2UGB8b0i7rq8rJI+l0=";
allowedIPs = [ "10.100.0.11/32" ];
}
];
};
@ -119,7 +139,7 @@
# List services that you want to enable:
networking.firewall.allowedTCPPorts = [ 80 443 22 ];
networking.firewall.allowedTCPPorts = [ 80 443 22 25565 ];
services.nginx = {
enable = true;

View File

@ -3,16 +3,15 @@
project.name = "minecraft";
services = {
mc = {
service.image = "itzg/minecraft-server:latest";
service.image = "itzg/minecraft-server:java17-jdk";
service.volumes = [ "/home/podman/data:/data" ];
service.ports = [ "25565:25565" ];
service.dns = [ "8.8.8.8" ];
service.network_mode = "host";
service.environment = {
EULA = "true";
MOD_PLATFORM = "AUTO_CURSEFORGE";
# https://stackoverflow.com/questions/49897503/
CF_API_KEY = "$$2a$$10$$BiefeMHCHbPFjXkIwpHk/.LvfbKaohRF7HcB3PF8oJtVAI/PfMpwe"; # free API key <3
CF_FORCE_SYNCHRONIZE = "true";
CF_PAGE_URL = "https://www.curseforge.com/minecraft/modpacks/valhelsia-6/files/5135030";
TYPE = "FORGE";
VERSION = "1.20.1";
FORGE_VERSION = "47.2.20";
MEMORY = "16G";
};
};

View File

@ -1 +1 @@
M9QXz6kgLejkhi2mcxxdWhTmGWkbhgblQnA3KfyHqlo=
c/1P958N3SWSZHsuY+E2OMB2tC+jFfJ1Hkqc752N+Bc=