launched forever server

This commit is contained in:
Sky Hearn 2024-05-05 02:53:08 +00:00
parent e372d23c89
commit d0c50ed1af
2 changed files with 42 additions and 27 deletions

View File

@ -124,11 +124,11 @@
allowedIPs = [ "10.100.0.13/32" ]; allowedIPs = [ "10.100.0.13/32" ];
} }
{ # meow { # meow
publicKey = "Jn3py2rxRuoluUl4eKxK+m+f21wMzQ4xI+NOMt7Oihc=" publicKey = "Jn3py2rxRuoluUl4eKxK+m+f21wMzQ4xI+NOMt7Oihc=";
allowedIPs = [ "10.100.0.14/32" ]; allowedIPs = [ "10.100.0.14/32" ];
} }
{ # fetti { # fetti
publicKey = "g92YcBJQK/MOWMbpF8wZV/G8EgKdcIdltfdE/26GgSA=" publicKey = "g92YcBJQK/MOWMbpF8wZV/G8EgKdcIdltfdE/26GgSA=";
allowedIPs = [ "10.100.0.15/32" ]; allowedIPs = [ "10.100.0.15/32" ];
} }
]; ];
@ -155,7 +155,7 @@
# List services that you want to enable: # List services that you want to enable:
networking.firewall.allowedTCPPorts = [ 80 443 22 25565 25566 ]; networking.firewall.allowedTCPPorts = [ 80 443 22 25565 25566 25567];
services.nginx = { services.nginx = {
enable = true; enable = true;

View File

@ -1,31 +1,46 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
project.name = "minecraft"; project.name = "minecraft";
services = { services = {
mc = { mc = {
service.image = "itzg/minecraft-server:java17-jdk"; service.image = "itzg/minecraft-server:java17-jdk";
service.volumes = [ "/home/podman/data:/data" ]; service.volumes = [ "/home/podman/data:/data" ];
service.dns = [ "8.8.8.8" ]; service.dns = [ "8.8.8.8" ];
service.network_mode = "host"; service.network_mode = "host";
service.environment = { service.environment = {
EULA = "true"; EULA = "true";
TYPE = "FORGE"; TYPE = "FORGE";
VERSION = "1.20.1"; VERSION = "1.20.1";
FORGE_VERSION = "47.2.20"; FORGE_VERSION = "47.2.20";
MEMORY = "16G"; MEMORY = "16G";
};
}; };
ftb_infinity = { };
service.image = "itzg/minecraft-server:java8-multiarch"; ftb_infinity = {
service.volumes = [ "/home/podman/ftb_infinity/data:/data" ]; service.image = "itzg/minecraft-server:java8-multiarch";
service.dns = [ "8.8.8.8" ]; service.volumes = [ "/home/podman/ftb_infinity/data:/data" ];
service.network_mode = "host"; service.dns = [ "8.8.8.8" ];
service.environment = { service.network_mode = "host";
EULA = "true"; service.environment = {
TYPE = "FORGE"; EULA = "true";
VERSION = "1.7.10"; TYPE = "FORGE";
FORGE_VERSION = "10.13.4.1614"; VERSION = "1.7.10";
MEMORY = "16G"; FORGE_VERSION = "10.13.4.1614";
MEMORY = "16G";
};
};
fabric = {
service.image = "itzg/minecraft-server:java17-jdk";
service.volumes = [ "/home/podman/fabric/data:/data" ];
service.dns = [ "8.8.8.8" ];
service.network_mode = "host";
service.environment = {
EULA = "true";
TYPE = "FABRIC";
VERSION = "1.20.1";
MEMORY = "16G";
OPS = "Fallingsky04";
SERVER_PORT = "25567";
SEED="-2098004362385192995";
}; };
}; };
}; };