Minecraft server setup
This commit is contained in:
parent
c289954dc3
commit
d993a8535e
|
@ -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;
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue