mc settings
This commit is contained in:
+6
-15
@@ -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";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# ================================ #
|
# ================================ #
|
||||||
|
|||||||
Reference in New Issue
Block a user