minecraft: moved to geyser

This commit is contained in:
Tigor Hutasuhut 2024-08-04 15:52:32 +07:00
parent b30258f247
commit d2bbd377b7

View file

@ -4,9 +4,9 @@ let
podman = config.profile.podman; podman = config.profile.podman;
inherit (lib) mkIf strings; inherit (lib) mkIf strings;
ip = "10.88.200.1"; ip = "10.88.200.1";
# image = "docker.io/05jchambers/legendary-minecraft-purpur-geyser:latest"; image = "docker.io/05jchambers/legendary-minecraft-purpur-geyser:latest";
image = "docker.io/itzg/minecraft-bedrock-server:latest"; # image = "docker.io/itzg/minecraft-bedrock-server:latest";
rootVolume = "/nas/podman/minecraft/hutasuhut"; rootVolume = "/nas/podman/minecraft/hutasuhut-geyser";
domain = "${name}.tigor.web.id"; domain = "${name}.tigor.web.id";
user = config.profile.user; user = config.profile.user;
uid = toString user.uid; uid = toString user.uid;
@ -39,7 +39,8 @@ in
Please contact the server owner for more info. Please contact the server owner for more info.
</h2> </h2>
<p>Server Address: <b>${domain}</b></p> <p>Server Address: <b>${domain}</b></p>
<p>Server Port: <b>19132</b></p> <p>Bedrock Server Port: <b>19132</b></p>
<p>Java Server Port: <b>25565</b></p>
</body> </body>
</html> </html>
EOF 200 EOF 200
@ -56,28 +57,28 @@ in
autoStart = true; autoStart = true;
user = "${uid}:${gid}"; user = "${uid}:${gid}";
environment = { environment = {
UID = uid; # UID = uid;
GID = gid; # GID = gid;
EULA = "TRUE"; # EULA = "TRUE";
TZ = "Asia/Jakarta"; # TZ = "Asia/Jakarta";
SERVER_NAME = "Hutasuhut"; # SERVER_NAME = "Hutasuhut";
DEFAULT_PLAYER_PERMISSION_LEVEL = "operator"; # DEFAULT_PLAYER_PERMISSION_LEVEL = "operator";
LEVEL_NAME = "Hutasuhut"; # LEVEL_NAME = "Hutasuhut";
MAX_THREADS = "0"; # Use as many as possible # MAX_THREADS = "0"; # Use as many as possible
ALLOW_LIST_USERS = strings.concatStringsSep "," ( # ALLOW_LIST_USERS = strings.concatStringsSep "," (
map (user: "${user.username}:${user.xuid}") users # map (user: "${user.username}:${user.xuid}") users
); # );
}; };
ports = [ ports = [
# Java Edition Ports # Java Edition Ports
# "25565:25565/udp" "25565:25565/udp"
# "25565:25565" "25565:25565"
# Bedrock Edition Ports # Bedrock Edition Ports
"19132:19132/udp" "19132:19132/udp"
"19132:19132" "19132:19132"
]; ];
volumes = [ volumes = [
"${rootVolume}:/data" "${rootVolume}:/minecraft"
]; ];
extraOptions = [ extraOptions = [
"--network=podman" "--network=podman"