Minecraft server setup

This commit is contained in:
Sky Hearn 2024-03-09 16:52:21 +00:00
parent c289954dc3
commit d993a8535e
2 changed files with 7 additions and 8 deletions

View File

@ -119,7 +119,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";
};
};