mc settings

This commit is contained in:
2025-06-21 13:00:45 -05:00
parent 6810585338
commit 991f766da9
+6 -15
View File
@@ -106,13 +106,13 @@
server-port = 25565; server-port = 25565;
difficulty = 3; difficulty = 3;
gamemode = 0; gamemode = 0;
max-players = 10; max-players = 7;
motd = "NixOS Minecraft server!"; motd = "Dumble Server";
allow-cheats = true; allow-cheats = true;
}; };
jvmOpts = " jvmOpts = ''
-Xms4096M -Xms16G
-Xmx4096M -Xmx16G
-XX:+UseG1GC -XX:+UseG1GC
-XX:+UnlockExperimentalVMOptions -XX:+UnlockExperimentalVMOptions
-XX:G1NewSizePercent=20 -XX:G1NewSizePercent=20
@@ -120,16 +120,7 @@
-XX:MaxGCPauseMillis=50 -XX:MaxGCPauseMillis=50
-XX:G1HeapRegionSize=32M -XX:G1HeapRegionSize=32M
-Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Stack=true
"; '';
};
services.nginx.virtualHosts."mc.roypository.com" = {
forceSSL = true;
enableACME = true;
acmeRoot = null;
locations."/" = {
proxyPass = "http://localhost:25565";
};
}; };
# ================================ # # ================================ #