simplified minecraft
This commit is contained in:
parent
e23e5b3568
commit
86fea7e3f6
|
@ -131,6 +131,7 @@
|
||||||
allowedUDPPorts = [
|
allowedUDPPorts = [
|
||||||
80
|
80
|
||||||
443
|
443
|
||||||
|
25565
|
||||||
config.services.tailscale.port
|
config.services.tailscale.port
|
||||||
#config.services.headscale.port
|
#config.services.headscale.port
|
||||||
];
|
];
|
||||||
|
|
|
@ -41,14 +41,25 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualHosts."minecraft.256.no" = {
|
|
||||||
forceSSL = true;
|
|
||||||
useACMEHost = config.networking.domain;
|
|
||||||
locations."/" = {
|
|
||||||
proxyWebsockets = true;
|
|
||||||
proxyPass = "http://100.84.215.84:25500";
|
virtualHosts."minecraft.256.no" = {
|
||||||
};
|
locations."/" = {
|
||||||
#basicAuthFile = config.sops.secrets."nginx/defaultpass".path;
|
proxyWebsockets = true;
|
||||||
};
|
proxyPass = "http://100.84.215.84:25565";
|
||||||
|
extraConfig = ''
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,16 +7,16 @@
|
||||||
services.minecraft-server = {
|
services.minecraft-server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
eula = true;
|
eula = true;
|
||||||
jvmOpts = "-Xms4092M -Xmx4092M -XX:+UseG1GC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled -XX:ParallelGCThreads=2 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10";
|
#jvmOpts = "-Xms4092M -Xmx4092M -XX:+UseG1GC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled -XX:ParallelGCThreads=2 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10";
|
||||||
|
|
||||||
|
|
||||||
serverProperties = {
|
# serverProperties = {
|
||||||
server-port = 25500;
|
# server-port = 25500;
|
||||||
difficulty = 3;
|
# difficulty = 3;
|
||||||
gamemode = 1;
|
# gamemode = 1;
|
||||||
max-players = 8;
|
# max-players = 8;
|
||||||
motd = "Adrian Minecraft server!";
|
# motd = "Adrian Minecraft server!";
|
||||||
};
|
# };
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue