fix: wowmine: caches
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
# Current Minecraft access (2026-09-18)
|
||||
# Current Minecraft access (2026-11-17)
|
||||
|
||||
WorldOfSosal on the WoW map uses `store.hectic-lab.com:25568` publicly.
|
||||
The game server is `neuro:25567`; a restricted persistent reverse SSH tunnel
|
||||
connects it to the public relay. See `docs/minecraft-prism.md` and the Nix modules
|
||||
`minecraft/public-tunnel.nix` / `hectic-lab/minecraft-wow-proxy.nix`.
|
||||
WorldOfSosal on the WoW map uses `wowmine.bfs.band` publicly, without a port.
|
||||
DNS A points to `95.31.254.84`; `_minecraft._tcp.wowmine.bfs.band` SRV is
|
||||
`0 0 35565 wowmine.bfs.band.`. The existing MikroTik forward reaches neuro's
|
||||
Minecraft Java server directly on TCP 35565. SSH game tunnels and the public
|
||||
relay are disabled. See `docs/minecraft-prism.md`.
|
||||
|
||||
Verified LAN: neuro is `192.168.88.10`, gateway `192.168.88.1`.
|
||||
SSH access is `95.31.254.84:34457`. Direct external Minecraft TCP probes timed out,
|
||||
and no UPnP IGD was discovered. The old TP-Link network and manual port-forward
|
||||
SSH access is `95.31.254.84:34457`. Direct Minecraft Java status on TCP 35565
|
||||
passed on 2026-11-17. The old TP-Link network and manual port-forward
|
||||
instructions below describe the previous network, not the active configuration.
|
||||
|
||||
---
|
||||
|
||||
@@ -1,13 +1,18 @@
|
||||
{ pkgs, serverDir }:
|
||||
{ pkgs, serverDir, namesOnly ? false }:
|
||||
''
|
||||
${pkgs.lib.optionalString (!namesOnly) ''
|
||||
rm -f -- \
|
||||
"${serverDir}/mods/dynamicheight-0.2.0+neoforge-1.21-1.21.1.jar" \
|
||||
"${serverDir}/mods/sable_dynamicheight_compat-1.0.0.jar"
|
||||
''}
|
||||
${pkgs.gnused}/bin/sed -i \
|
||||
-e '/^[[:space:]]*levelKeyPrefix[[:space:]]*=/d' \
|
||||
-e '/^\[server\]$/a\levelKeyPrefix = "world-of-sosal-20261114T223938Z-winter-biomes-"' \
|
||||
-e '/^[[:space:]]*serverKey[[:space:]]*=/d' \
|
||||
-e '/^\[server\]$/a\levelKeyPrefix = "wos-w1"\nserverKey = "wos"' \
|
||||
"${serverDir}/config/DistantHorizons.toml"
|
||||
${pkgs.lib.optionalString (!namesOnly) ''
|
||||
${pkgs.gnused}/bin/sed -i \
|
||||
-e 's/^\([[:space:]]*enableCheatModeForCreative[[:space:]]*=\).*/\1 false/' \
|
||||
"${serverDir}/config/jei-server.toml"
|
||||
''}
|
||||
''
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
let
|
||||
packVersion = "v13-lootplus-cleanup";
|
||||
serverDir = "${config.services.minecraft-servers.dataDir}/wowMineMap";
|
||||
serverMotd = "WoS | Warcraft";
|
||||
in
|
||||
{
|
||||
sops.secrets."minecraft/storage-box-pack-key" = {
|
||||
@@ -29,7 +31,16 @@ in
|
||||
};
|
||||
|
||||
services.minecraft-servers.servers.wowMineMap.serverProperties.motd =
|
||||
"WorldOfSosal ${packVersion} — World of Warcraft";
|
||||
serverMotd;
|
||||
|
||||
systemd.services.minecraft-server-wowMineMap.preStart =
|
||||
(import ./world-of-sosal-settings.nix {
|
||||
inherit pkgs serverDir;
|
||||
namesOnly = true;
|
||||
}) + ''
|
||||
${pkgs.gnused}/bin/sed -i \
|
||||
's/^motd=.*/motd=${serverMotd}/' "${serverDir}/server.properties"
|
||||
'';
|
||||
|
||||
# Import the map before writing modpack configuration into the same server.
|
||||
systemd.services.minecraft-modpack-import-worldOfSosal = {
|
||||
@@ -37,8 +48,7 @@ in
|
||||
requires = [ "minecraft-world-import-wowMineMap.service" ];
|
||||
# Test the map's native dimension height without runtime height overrides.
|
||||
postStart = import ./world-of-sosal-settings.nix {
|
||||
inherit pkgs;
|
||||
serverDir = "${config.services.minecraft-servers.dataDir}/wowMineMap";
|
||||
inherit pkgs serverDir;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user