feat: transfer wowmine to neuro

This commit is contained in:
2026-11-20 10:52:59 +00:00
parent f69752dcc0
commit 53d4ecc2bf
66 changed files with 1319 additions and 425 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
# Current Minecraft access (2026-11-17)
WorldOfSosal on the WoW map uses `wowmine.bfs.band:35565` publicly.
wowmine on the WoW map uses `wowmine.bfs.band:35565` publicly.
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
@@ -66,7 +66,7 @@ Ports that need to be forwarded from router to `192.168.0.10`:
| 10000 | 10000 | UDP | Jitsi Videobridge |
| 25565 | 25565 | TCP | Minecraft |
| 25567 | 25567 | TCP | Minecraft WoW Mine map |
| 25568 | 25568 | TCP | Minecraft World of Sosal |
| 25568 | 25568 | TCP | Minecraft wowmine (historical relay) |
## Troubleshooting
@@ -2,7 +2,7 @@
let
name = "wowMineMapRestore";
production = config.services.minecraft-servers.servers.wowMineMap;
pack = config.services.minecraft-modpack-imports.worldOfSosal;
pack = config.services.minecraft-modpack-imports.wowmine;
restore = config.services.minecraft-backup-restores.${name};
serverDir = "${config.services.minecraft-servers.dataDir}/${name}";
in {
@@ -29,7 +29,7 @@ in {
enable-query = false;
view-distance = 8;
simulation-distance = 4;
motd = "WorldOfSosal backup restore test";
motd = "wowmine backup restore test";
};
};
@@ -43,7 +43,7 @@ in {
systemd.services."minecraft-modpack-import-${name}" = {
unitConfig.ConditionPathExists = "!${restore.completionMarker}";
postStart = import ./world-of-sosal-settings.nix { inherit pkgs serverDir; };
postStart = import ./wowmine-settings.nix { inherit pkgs serverDir; };
};
services.minecraft-backup-restores.${name} = {
+7 -7
View File
@@ -1,15 +1,15 @@
{ config, pkgs, ... }:
let
serverDir = "${config.services.minecraft-servers.dataDir}/wowMineMap";
stateDir = "/var/lib/worldofsosal-bluemap";
stateDir = "/var/lib/wowmine-bluemap";
diskCheck = "${pkgs.coreutils}/bin/test $(${pkgs.coreutils}/bin/df -B1 --output=avail ${stateDir} | ${pkgs.coreutils}/bin/tail -n1) -ge 21474836480";
jar = pkgs.fetchurl {
url = "https://github.com/BlueMap-Minecraft/BlueMap/releases/download/v5.29/bluemap-5.29-cli.jar";
sha256 = "e830767fa6364b52b9310fb598508ebde7eec5ebe8360a989e240d991af89a3a";
};
in {
systemd.services.worldofsosal-bluemap = {
description = "WorldOfSosal live Azeroth and Outland 3D maps";
systemd.services.wowmine-bluemap = {
description = "wowmine live Azeroth and Outland 3D maps";
wantedBy = [ "multi-user.target" ];
wants = [ "network-online.target" ];
after = [ "network-online.target" "minecraft-server-wowMineMap.service" ];
@@ -21,7 +21,7 @@ in {
serviceConfig = {
User = "minecraft";
Group = "minecraft";
StateDirectory = "worldofsosal-bluemap";
StateDirectory = "wowmine-bluemap";
StateDirectoryMode = "0750";
WorkingDirectory = stateDir;
ExecCondition = "${pkgs.runtimeShell} -ec '${builtins.replaceStrings [ "$" ] [ "$$" ] diskCheck}'";
@@ -47,17 +47,17 @@ in {
TimeoutStopSec = 120;
};
};
systemd.services.worldofsosal-bluemap-space-guard = {
systemd.services.wowmine-bluemap-space-guard = {
description = "Keep 20 GiB free for Minecraft while rendering maps";
serviceConfig.Type = "oneshot";
script = ''
if ! ${diskCheck}; then
echo "Stopping only BlueMap: less than 20 GiB free on map filesystem"
${pkgs.systemd}/bin/systemctl stop worldofsosal-bluemap.service
${pkgs.systemd}/bin/systemctl stop wowmine-bluemap.service
fi
'';
};
systemd.timers.worldofsosal-bluemap-space-guard = {
systemd.timers.wowmine-bluemap-space-guard = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnBootSec = "1min";
@@ -1,5 +1,5 @@
accept-download: true
data: "/var/lib/worldofsosal-bluemap/data"
data: "/var/lib/wowmine-bluemap/data"
render-thread-count: 2
update-cooldown: 60
full-update-interval: 1440
@@ -7,6 +7,6 @@ region-file-check-interval: 5
scan-for-mod-resources: true
metrics: false
log: {
file: "/var/lib/worldofsosal-bluemap/data/logs/debug.log"
file: "/var/lib/wowmine-bluemap/data/logs/debug.log"
append: true
}
@@ -1,3 +1,3 @@
storage-type: file
root: "/var/lib/worldofsosal-bluemap/web/maps"
root: "/var/lib/wowmine-bluemap/web/maps"
compression: gzip
@@ -1,5 +1,5 @@
enabled: true
webroot: "/var/lib/worldofsosal-bluemap/web"
webroot: "/var/lib/wowmine-bluemap/web"
update-settings-file: true
use-cookies: true
default-to-flat-view: false
@@ -1,5 +1,5 @@
enabled: true
webroot: "/var/lib/worldofsosal-bluemap/web"
webroot: "/var/lib/wowmine-bluemap/web"
ip: "127.0.0.1"
port: 8100
sse-enabled: true
@@ -8,6 +8,6 @@ additional-headers: {
"X-Content-Type-Options": "nosniff"
}
log: {
file: "/var/lib/worldofsosal-bluemap/data/logs/webserver.log"
file: "/var/lib/wowmine-bluemap/data/logs/webserver.log"
append: true
}
+1 -1
View File
@@ -4,7 +4,7 @@
./horizon.nix
./create-aeronautics.nix
./wow-mine-map.nix
./world-of-sosal.nix
./wowmine.nix
./bluemap.nix
./backup-restore-test.nix
./public-tunnel.nix
@@ -2,7 +2,7 @@
let
mkTunnel = relay: {
enable = false;
description = "WorldOfSosal WoW reverse tunnel to ${relay.name}";
description = "wowmine reverse tunnel to ${relay.name}";
startLimitIntervalSec = 0;
wantedBy = [ "multi-user.target" ];
wants = [ "network-online.target" ];
@@ -1,3 +0,0 @@
{
"values": ["worldofsosal:spawn_tick"]
}
@@ -1 +0,0 @@
execute as @a[tag=!worldofsosal_initialized] in crafting_azeroth:azeroth run function worldofsosal:first_spawn
@@ -1,6 +0,0 @@
{
"pack": {
"pack_format": 48,
"description": "WorldOfSosal: initial spawn in Azeroth"
}
}
@@ -13,8 +13,8 @@
serverName = "wowMineMap";
remoteHost = "u664722.your-storagebox.de";
remoteUser = "u664722";
remotePath = "minecraft/map/versions/world-of-sosal-20261114T223938Z-winter-biomes.tar.gz";
archiveName = "world-of-sosal-20261114T223938Z-winter-biomes.tar.gz";
remotePath = "minecraft/map/versions/wowmine-20261114T223938Z-winter-biomes.tar.gz";
archiveName = "wowmine-20261114T223938Z-winter-biomes.tar.gz";
cacheDir = "/var/lib/minecraft-maps";
archiveSha256 = "d1afd169b16b7b50a57c47da46245e93285b46b6c833bfd08941d07d0341b208";
sshKeyFile = config.sops.secrets."minecraft/storage-box-key".path;
@@ -23,7 +23,7 @@
};
systemd.services.minecraft-world-reset-wowMineMap = {
description = "Reset WorldOfSosal to the pinned source map";
description = "Reset wowmine to the pinned source map";
path = [ pkgs.coreutils pkgs.systemd ];
serviceConfig = {
Type = "oneshot";
@@ -65,7 +65,7 @@
'';
enable = true;
jvmOpts = "-Xmx24G -Xms2G";
# WorldOfSosal client and server use the same pinned NeoForge.
# wowmine client and server use the same pinned NeoForge.
package = pkgs.minecraftServers.neoforge-1_21_1.override (
builtins.fromJSON (builtins.readFile ./neoforge-21.1.250.json)
);
@@ -0,0 +1,3 @@
{
"values": ["wowmine:spawn_tick"]
}
@@ -1,3 +1,3 @@
spawnpoint @s 3742 89 8891
tp @s 3742 89 8891
tag @s add worldofsosal_initialized
tag @s add wowmine_initialized
@@ -0,0 +1,3 @@
# Compatibility: preserve existing first-join state without teleporting players.
tag @a[tag=worldofsosal_initialized,tag=!wowmine_initialized] add wowmine_initialized
execute as @a[tag=!wowmine_initialized] in crafting_azeroth:azeroth run function wowmine:first_spawn
@@ -0,0 +1,6 @@
{
"pack": {
"pack_format": 48,
"description": "wowmine: initial spawn in Azeroth"
}
}
@@ -1,27 +1,27 @@
{ config, pkgs, ... }:
let
packVersion = "v13-lootplus-cleanup";
packVersion = "v15-wowmine";
serverDir = "${config.services.minecraft-servers.dataDir}/wowMineMap";
serverMotd = "WoS | Warcraft";
serverMotd = "wowmine | Warcraft";
in
{
sops.secrets."minecraft/storage-box-pack-key" = {
sopsFile = ../../../../sus/neuro-minecraft.yaml;
owner = "mc-pack-worldOfSosal";
group = "mc-pack-worldOfSosal";
owner = "mc-pack-wowmine";
group = "mc-pack-wowmine";
mode = "0400";
};
services.minecraft-modpack-imports.worldOfSosal = {
services.minecraft-modpack-imports.wowmine = {
enable = true;
serverName = "wowMineMap";
remoteHost = "u664722.your-storagebox.de";
remoteUser = "u664722";
remotePath = "minecraft/pack/WorldOfSosal-${packVersion}.mrpack";
archiveName = "WorldOfSosal.mrpack";
cacheDir = "/var/lib/minecraft-modpacks/worldOfSosal";
archiveSha256 = "e5895994e95a4df476d7da00b53c39d0372885265acb6cf9b5a9647a015db5f7";
remotePath = "minecraft/pack/wowmine-${packVersion}.mrpack";
archiveName = "wowmine.mrpack";
cacheDir = "/var/lib/minecraft-modpacks/wowmine";
archiveSha256 = "6c97a4b3c5f82c055b7de4ebfbda84ab941a55128753485eadd47e8266ec3b43";
expectedDependencies = {
minecraft = "1.21.1";
neoforge = "21.1.250";
@@ -34,20 +34,17 @@ in
serverMotd;
systemd.services.minecraft-server-wowMineMap.preStart =
(import ./world-of-sosal-settings.nix {
import ./wowmine-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 = {
systemd.services.minecraft-modpack-import-wowmine = {
after = [ "minecraft-world-import-wowMineMap.service" ];
requires = [ "minecraft-world-import-wowMineMap.service" ];
# Test the map's native dimension height without runtime height overrides.
postStart = import ./world-of-sosal-settings.nix {
postStart = import ./wowmine-settings.nix {
inherit pkgs serverDir;
};
};
+1 -37
View File
@@ -71,6 +71,7 @@ in {
self.nixosModules.hectic
inputs.sops-nix.nixosModules.sops
./minecraft
./wowmine-web.nix
./hardware.nix
];
@@ -132,40 +133,6 @@ in {
# admins = [ "yukkop@accord.tube" ];
#};
# Static landing page for bfs.band on :80 and :443 (no HTTP->HTTPS redirect).
security.acme = {
acceptTerms = true;
defaults.email = "security@bfs.band";
};
services.nginx = {
enable = false;
virtualHosts."bfs.band" = let
site = pkgs.runCommand "bfs-band-site" {} ''
mkdir -p $out
cat > $out/index.html <<'EOF'
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>bfs.band</title>
</head>
<body>
<h1>bfs.band</h1>
<p>Coming soon.</p>
</body>
</html>
EOF
'';
in {
serverAliases = [ "www.bfs.band" ];
enableACME = true;
addSSL = true; # serve on both :80 and :443, no forced redirect
forceSSL = false;
root = "${site}";
};
};
services.ollama = {
enable = true;
host = "127.0.0.1";
@@ -210,9 +177,6 @@ in {
};
firewall = {
enable = true;
allowedTCPPorts = [
80 443 # HTTP, HTTPS
];
allowedUDPPorts = [ 9 ]; # Wake on LAN
};
};
+98
View File
@@ -0,0 +1,98 @@
{
nixpkgs ? builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/b25309931cfda5f0b8805f462a29897eeae50168.tar.gz";
sha256 = "sha256-qMSsgG+9tIdx282dMqGuJAUK3t6F36clM6efd0rXfes=";
},
system ? "x86_64-linux",
}:
let
evaluated = import (nixpkgs + "/nixos/lib/eval-config.nix") {
inherit system;
modules = [
../wowmine-web.nix
{
boot.isContainer = true;
networking.hostName = "neuro";
system.stateVersion = "26.05";
}
];
};
inherit (evaluated) config pkgs;
inherit (pkgs) lib;
failedAssertions = map (a: a.message) (lib.filter (a: !a.assertion) config.assertions);
selectedUnits = lib.filterAttrs (
name: _: lib.hasPrefix "acme-" name || lib.hasPrefix "nginx" name
) config.systemd.units;
# Link the real generated unit files. The full NixOS system-unit directory
# also contains unrelated package units and global boot target aliases.
units = pkgs.runCommand "wowmine-web-units" { } (
"mkdir -p $out\n"
+ lib.concatStrings (lib.mapAttrsToList (name: unit:
''
ln -s ${unit.unit}/${name} $out/${name}
''
+ lib.concatMapStrings (alias: ''
ln -s ${name} $out/${alias}
'') unit.aliases
+ lib.concatStrings (lib.mapAttrsToList (option: suffix:
lib.concatMapStrings (target: ''
mkdir -p $out/${target}.${suffix}
ln -s ../${name} $out/${target}.${suffix}/${name}
'') unit.${option}
) {
wantedBy = "wants";
requiredBy = "requires";
upheldBy = "upholds";
})
) selectedUnits)
);
nginxConfig = builtins.head (
builtins.match ".* -c '([^']+)'" config.systemd.services.nginx.serviceConfig.ExecStart
);
metadata = {
nixpkgsRevision = "b25309931cfda5f0b8805f462a29897eeae50168";
inherit system failedAssertions nginxConfig;
assertionCount = builtins.length config.assertions;
warnings = config.warnings;
users = lib.genAttrs [ "nginx" "acme" ] (
name: {
inherit (config.users.users.${name}) uid group extraGroups home homeMode isSystemUser;
}
);
groups = lib.genAttrs [ "nginx" "acme" ] (
name: {
inherit (config.users.groups.${name}) gid members;
}
);
units = lib.mapAttrs (
_: unit: {
inherit (unit) wantedBy requiredBy upheldBy aliases;
text = unit.text;
}
) selectedUnits;
certificate = {
inherit (config.security.acme.certs."wowmine.bfs.band")
directory group webroot email server reloadServices renewInterval renewJitter;
};
sourceFiles = [ "wowmine-web.nix" "wowmine-site/eval.nix" "wowmine-site/static" ];
siteRoot = config.services.nginx.virtualHosts."wowmine.bfs.band".locations."^~ /wowmine/".alias;
runtimeRoots = [ "/var/www/wowmine/public/minecraft/wowmine" ];
};
metadataFile = pkgs.writeText "wowmine-web-metadata.json" (builtins.toJSON metadata);
bundle = pkgs.runCommand "wowmine-web-scoped" { } ''
mkdir -p $out/tmpfiles.d
ln -s ${units} $out/units
ln -s ${nginxConfig} $out/nginx.conf
ln -s ${metadataFile} $out/metadata.json
for package in ${toString config.systemd.tmpfiles.packages}; do
if [ -e "$package/lib/tmpfiles.d/10-acme.conf" ]; then
ln -s "$package/lib/tmpfiles.d/10-acme.conf" $out/tmpfiles.d/
fi
done
test -e $out/tmpfiles.d/10-acme.conf
'';
in
assert lib.assertMsg (failedAssertions == [ ]) (lib.concatStringsSep "\n" failedAssertions);
{
inherit bundle metadata units nginxConfig;
}
@@ -0,0 +1,93 @@
Copyright 2019 The Golos Text Project Authors (https://github.com/googlefonts/golos-text)
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,93 @@
Copyright (c) 2011-2012, Jovanny Lemonad (jovanny.ru), with Reserved Font Name "Russo"
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">
<path fill="#a7d754" d="m24 2 22 11-22 11L2 13Z"/>
<path fill="#765239" d="m2 13 22 11v22L2 35Z"/>
<path fill="#513c30" d="m24 24 22-11v22L24 46Z"/>
<path fill="#76a637" d="m2 13 22 11v8l-8-4v-4l-6-3v5l-8-4Zm22 11 22-11v9l-7 3v-4l-7 4v5l-8 4Z"/>
</svg>

After

Width:  |  Height:  |  Size: 322 B

@@ -0,0 +1,251 @@
@font-face {
font-family: "Golos Text";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("./golos-regular.ttf") format("truetype");
}
@font-face {
font-family: "Golos Text";
font-style: normal;
font-weight: 600;
font-display: swap;
src: url("./golos-semibold.ttf") format("truetype");
}
@font-face {
font-family: "Russo One";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("./russo-one.ttf") format("truetype");
}
:root {
color-scheme: dark;
--bg: #141a15;
--surface: #202921;
--inset: #101610;
--ink: #f4f3e7;
--muted: #bec9b8;
--line: #394638;
--grass: #a7d754;
--grass-hover: #b9e66c;
--action-ink: #17250d;
--focus: #e8b86c;
--hero-ink: #fffdf0;
--hero-muted: #e5e9d7;
--body-font: "Golos Text", sans-serif;
--heading-font: "Russo One", sans-serif;
--space-1: 4px;
--space-2: 8px;
--space-3: 12px;
--space-4: 16px;
--space-6: 24px;
--space-8: 32px;
--space-12: 48px;
--space-16: 64px;
--space-20: 80px;
--space-24: 96px;
--ease: 140ms ease-out;
--gutter: clamp(24px, 4vw, 48px);
scroll-behavior: smooth;
scroll-padding-top: var(--space-8);
scrollbar-color: var(--line) var(--bg);
}
@media (prefers-color-scheme: light) {
:root:not([data-theme]) {
color-scheme: light;
--bg: #f3f2e8;
--surface: #fff;
--inset: #e7e9dc;
--ink: #202b21;
--muted: #53624c;
--line: #c8d1bd;
--focus: #47671d;
}
}
:root[data-theme="light"] {
color-scheme: light;
--bg: #f3f2e8;
--surface: #fff;
--inset: #e7e9dc;
--ink: #202b21;
--muted: #53624c;
--line: #c8d1bd;
--focus: #47671d;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--body-font); }
::selection { background: var(--grass); color: var(--action-ink); }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading-font); font-weight: 400; line-height: 1.2; text-wrap: balance; }
h2 { font-size: clamp(32px, 3.4vw, 48px); letter-spacing: -.02em; }
h3 { font-size: clamp(24px, 2.1vw, 28px); }
code { font-family: ui-monospace, "Cascadia Code", monospace; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.container { width: min(100% - var(--gutter) * 2, 1200px); margin-inline: auto; }
.section { padding-block: var(--space-24); }
.icon-sprite { position: absolute; inline-size: 0; block-size: 0; overflow: hidden; }
.icon, .world-icon { inline-size: 24px; block-size: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; stroke-linejoin: miter; }
.skip-link { position: fixed; top: var(--space-4); left: var(--space-4); z-index: 3; padding: var(--space-3) var(--space-4); background: var(--grass); color: var(--action-ink); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { min-block-size: 88px; display: flex; align-items: center; gap: var(--space-8); }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.brand-block { inline-size: 36px; block-size: 40px; flex: 0 0 auto; }
.brand-name { font-family: var(--heading-font); font-size: 20px; letter-spacing: -.02em; line-height: 1.1; }
.brand-name span { display: block; font-size: 24px; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: var(--space-8); margin-inline-start: auto; }
.main-nav a { display: flex; align-items: center; min-block-size: 48px; text-decoration: none; font-size: 14px; font-weight: 600; transition: color var(--ease); }
.main-nav a:hover { color: var(--muted); text-decoration: underline; }
.theme-toggle { display: grid; place-items: center; inline-size: 48px; block-size: 48px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: background var(--ease), transform var(--ease); }
.theme-toggle:hover { background: var(--inset); }
.theme-toggle:active { transform: translateY(2px); }
.theme-moon { display: none; }
:root[data-theme="light"] .theme-sun { display: none; }
:root[data-theme="light"] .theme-moon { display: block; }
@media (prefers-color-scheme: light) {
:root:not([data-theme]) .theme-sun { display: none; }
:root:not([data-theme]) .theme-moon { display: block; }
}
.hero { --focus: #e8b86c; position: relative; isolation: isolate; overflow: hidden; color: var(--hero-ink); background: #101a10; }
.hero-scene { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: center; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(9 20 10 / 88%), rgb(9 20 10 / 68%) 38%, rgb(9 20 10 / 9%) 78%), linear-gradient(0deg, rgb(9 20 10 / 48%), transparent 45%); }
.hero-inner { min-block-size: 640px; padding-block: var(--space-24) var(--space-24); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
h1 { max-inline-size: 800px; font-size: clamp(36px, 5.3vw, 84px); line-height: 1.09; letter-spacing: -.02em; text-shadow: 0 4px 0 rgb(9 20 10 / 75%); }
h1 span { display: block; }
.hero-lead { max-inline-size: 51ch; margin-block-start: var(--space-6); color: var(--hero-muted); font-size: 18px; line-height: 1.75; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8); margin-block-start: var(--space-8); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: var(--space-3); min-block-size: 56px; padding: var(--space-4) var(--space-6); border: 2px solid transparent; font-weight: 600; line-height: 1.3; text-decoration: none; transition: background var(--ease), transform var(--ease), box-shadow var(--ease); }
.button-primary { background: var(--grass); color: var(--action-ink); border-color: rgb(23 37 13 / 28%); box-shadow: inset 0 3px 0 rgb(255 255 255 / 26%), 0 5px 0 #506c26; }
.button-primary:hover { background: var(--grass-hover); transform: translateY(-2px); box-shadow: inset 0 3px 0 rgb(255 255 255 / 26%), 0 7px 0 #506c26; }
.button-primary:active { transform: translateY(4px); box-shadow: inset 0 3px 0 rgb(255 255 255 / 26%), 0 1px 0 #506c26; }
.hero-guide { display: inline-flex; align-items: center; gap: var(--space-3); min-block-size: 48px; text-decoration: none; font-weight: 600; }
.hero-guide:hover { text-decoration: underline; }
.hero-guide .icon { inline-size: 20px; }
.hero-note { margin-block-start: var(--space-6); color: var(--hero-muted); font-size: 14px; }
.hero-scroll { position: absolute; inset-block-end: var(--space-6); inset-inline-end: var(--gutter); display: flex; align-items: center; gap: var(--space-3); min-block-size: 44px; color: var(--hero-ink); text-decoration: none; font-size: 14px; }
.hero-scroll .icon { transform: rotate(90deg); inline-size: 18px; }
.hero-scroll:hover span { text-decoration: underline; }
.connection { background: var(--surface); border-bottom: 1px solid var(--line); }
.connection-inner { position: relative; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-6); padding-block: var(--space-8) var(--space-12); }
.connection-label { display: flex; align-items: center; gap: var(--space-4); }
.signal-mark { inline-size: 12px; block-size: 12px; background: var(--muted); box-shadow: 6px -6px 0 var(--muted); margin-inline-end: var(--space-2); }
.connection-title { font-weight: 600; }
.connection-caption { color: var(--muted); font-size: 14px; }
.address-group { display: flex; align-items: center; gap: var(--space-6); min-inline-size: 0; }
#server-address { font-size: 17px; color: var(--ink); }
.button-copy { inline-size: 184px; min-block-size: 48px; padding: var(--space-3) var(--space-4); border: 1px solid var(--line); color: var(--ink); background: var(--inset); font-size: 14px; }
.button-copy:hover { background: var(--bg); }
.button-copy:active { transform: translateY(2px); }
.copied-icon { display: none; }
[data-copied="true"] .copy-icon { display: none; }
[data-copied="true"] .copied-icon { display: block; }
.copy-feedback { position: absolute; inset-inline-end: 0; inset-block-end: var(--space-3); max-inline-size: 100%; min-block-size: 23px; color: var(--muted); font-size: 14px; }
.world-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-24); }
.section-intro > p { margin-block-start: var(--space-6); max-inline-size: 48ch; color: var(--muted); font-size: 18px; }
.world-list { display: grid; gap: var(--space-8); align-content: center; }
.world-entry { display: flex; gap: var(--space-6); }
.world-entry + .world-entry { padding-block-start: var(--space-8); border-top: 1px solid var(--line); }
.world-icon { inline-size: 32px; block-size: 32px; color: var(--muted); }
.world-entry p { margin-block-start: var(--space-3); color: var(--muted); max-inline-size: 48ch; }
.setup-section { background: var(--inset); }
.setup-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: var(--space-24); margin-block-start: var(--space-12); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-8); }
.steps li { display: flex; align-items: flex-start; gap: var(--space-6); }
.step-number { flex: 0 0 48px; display: grid; place-items: center; block-size: 48px; color: var(--muted); border: 1px solid var(--line); font-family: var(--heading-font); font-size: 20px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 24px; }
.steps p { margin-block-start: var(--space-3); max-inline-size: 63ch; color: var(--muted); }
.steps a, .questions a { color: var(--ink); }
.steps a:hover, .questions a:hover { text-decoration-thickness: 2px; }
.requirements { align-self: start; padding: var(--space-8); background: var(--surface); }
.requirements dl { margin-block: var(--space-6); }
.requirements dl > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2) var(--space-4); padding-block: var(--space-3); border-bottom: 1px solid var(--line); font-size: 14px; }
.requirements dt { color: var(--muted); }
.requirements dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.requirements > p { color: var(--muted); font-size: 14px; }
.help-layout { display: grid; grid-template-columns: 1fr 1.65fr; gap: var(--space-24); }
.questions details { border-bottom: 1px solid var(--line); }
.questions details:first-child { border-top: 1px solid var(--line); }
.questions summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-block-size: 80px; padding-block: var(--space-6); cursor: pointer; font-size: 18px; font-weight: 600; line-height: 1.5; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary:hover { color: var(--muted); }
.questions summary .icon { transition: transform var(--ease); }
.questions details[open] summary .icon { transform: rotate(45deg); }
.questions details > p { max-inline-size: 65ch; padding-block-end: var(--space-6); padding-inline-end: var(--space-12); color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); padding-block: var(--space-12); background: var(--inset); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: var(--space-8); }
.footer-brand { display: flex; flex-direction: column; min-block-size: 48px; text-decoration: none; font-family: var(--heading-font); font-size: 20px; }
.footer-brand span { margin-block-start: var(--space-2); color: var(--muted); font: 400 14px/1.65 var(--body-font); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-6); font-size: 14px; }
.footer-links a { display: flex; align-items: center; min-block-size: 48px; }
.footer-inner > p { flex-basis: 100%; color: var(--muted); font-size: 14px; }
@media (min-width: 1600px) {
.hero-inner { min-block-size: 720px; }
}
@media (max-width: 960px) {
.world-layout, .setup-layout, .help-layout { gap: var(--space-12); }
.world-layout { grid-template-columns: 1fr 1fr; }
.connection-label { flex-basis: 100%; }
.address-group { inline-size: 100%; justify-content: space-between; }
.copy-feedback { inset-inline-start: 0; }
}
@media (max-width: 700px) {
.header-inner { min-block-size: 80px; gap: var(--space-4); }
.brand-block { inline-size: 28px; block-size: 32px; }
.brand-name { font-size: 16px; }
.brand-name span { font-size: 19px; }
.main-nav { gap: 0; }
.main-nav a { font-size: 14px; }
.main-nav .nav-world, .main-nav .nav-help { display: none; }
.theme-toggle { inline-size: 44px; block-size: 44px; flex: 0 0 auto; }
.hero-inner { min-block-size: 620px; padding-block: var(--space-16) var(--space-24); }
.hero-scene { object-position: 61% center; }
.hero::before { background: linear-gradient(90deg, rgb(9 20 10 / 88%), rgb(9 20 10 / 60%)), linear-gradient(0deg, rgb(9 20 10 / 30%), transparent); }
h1 { font-size: clamp(34px, 7.7vw, 48px); }
.hero-lead { margin-block-start: var(--space-6); font-size: 16px; }
.hero-actions { gap: var(--space-4) var(--space-6); margin-block-start: var(--space-8); }
.button-primary { min-block-size: 56px; }
.hero-guide { font-size: 14px; }
.hero-note { font-size: 14px; }
.hero-scroll { inset-inline-start: var(--gutter); inset-inline-end: auto; font-size: 14px; }
.connection-inner { gap: var(--space-6); padding-block: var(--space-8) 52px; }
.address-group { gap: var(--space-3); }
#server-address { font-size: 14px; }
.button-copy { inline-size: 48px; flex: 0 0 48px; padding: var(--space-3); }
.button-copy span { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
.copy-feedback { font-size: 14px; line-height: 1.5; }
.section { padding-block: var(--space-16); }
.world-layout, .setup-layout, .help-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-12); }
.section-intro > p { font-size: 16px; }
.world-entry { gap: var(--space-4); }
.world-entry h3 { font-size: 26px; }
.world-icon { inline-size: 28px; block-size: 28px; }
.setup-layout { margin-block-start: var(--space-8); }
.steps li { gap: var(--space-4); }
.step-number { flex-basis: 40px; block-size: 40px; font-size: 18px; }
.steps h3 { font-size: 24px; }
.requirements { padding: var(--space-6); }
.questions summary { font-size: 16px; gap: var(--space-4); }
.questions details > p { padding-inline-end: 0; }
.footer-inner { gap: var(--space-6); }
.footer-links { gap: var(--space-6); }
}
@media (prefers-reduced-motion: reduce) {
:root { scroll-behavior: auto; }
*, *::before, *::after { transition: none !important; }
.button-primary:hover, .button-primary:active, .button-copy:active, .theme-toggle:active { transform: none; }
}
@@ -0,0 +1,36 @@
// @ts-check
const root = document.documentElement;
const darkPreference = window.matchMedia("(prefers-color-scheme: dark)");
document.querySelectorAll("[data-theme-toggle]").forEach((button) => {
button.addEventListener("click", () => {
const dark = root.dataset.theme
? root.dataset.theme === "dark"
: darkPreference.matches;
root.dataset.theme = dark ? "light" : "dark";
button.setAttribute(
"aria-label",
dark ? "Включить тёмную тему" : "Включить светлую тему",
);
button.setAttribute("title", button.getAttribute("aria-label") ?? "");
});
});
document.querySelectorAll("[data-copy-address]").forEach((button) => {
button.addEventListener("click", async () => {
const address = document.getElementById("server-address");
const feedback = document.getElementById("copy-feedback");
if (!address || !feedback) return;
try {
await navigator.clipboard.writeText(address.innerText.trim());
button.setAttribute("data-copied", "true");
feedback.textContent = "Адрес скопирован. Увидимся в игре.";
} catch (error) {
if (!(error instanceof DOMException)) throw error;
button.removeAttribute("data-copied");
feedback.textContent = "Выдели адрес и скопируй его вручную.";
}
});
});
Binary file not shown.

After

Width:  |  Height:  |  Size: 226 KiB

@@ -0,0 +1,181 @@
<!doctype html>
<html lang="ru">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="dark light">
<meta name="theme-color" content="#141a15">
<meta name="description" content="wowmine — Азерот и Запределье в Minecraft. Скачай готовую сборку для Prism Launcher с автоматическими обновлениями и присоединяйся к серверу.">
<meta property="og:title" content="wowmine — Азерот из блоков">
<meta property="og:description" content="Знакомый мир, новая история. Готовая сборка Minecraft с автоматическими обновлениями через Prism Launcher.">
<meta property="og:type" content="website">
<meta property="og:locale" content="ru_RU">
<meta property="og:image" content="https://wowmine.bfs.band:8443/wowmine/assets/world-valley.webp">
<link rel="canonical" href="https://wowmine.bfs.band:8443/wowmine/">
<link rel="icon" type="image/svg+xml" href="/wowmine/assets/favicon.svg">
<link rel="preload" href="/wowmine/assets/russo-one.ttf" as="font" type="font/ttf" crossorigin>
<link rel="preload" href="/wowmine/assets/world-valley.webp" as="image" fetchpriority="high">
<link rel="stylesheet" href="/wowmine/assets/site.css">
<script src="/wowmine/assets/site.js" defer></script>
<title>wowmine — Азерот из блоков</title>
</head>
<body id="top">
<a class="skip-link" href="#main">Перейти к содержимому</a>
<svg class="icon-sprite" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
<symbol id="arrow" viewBox="0 0 24 24"><path d="M5 12h14m-6-6 6 6-6 6"/></symbol>
<symbol id="download" viewBox="0 0 24 24"><path d="M12 3v12m-5-5 5 5 5-5M5 16v5h14v-5"/></symbol>
<symbol id="copy" viewBox="0 0 24 24"><path d="M9 9h11v11H9zM15 5V3H3v12h2"/></symbol>
<symbol id="check" viewBox="0 0 24 24"><path d="m5 12 4 4L19 6"/></symbol>
<symbol id="sun" viewBox="0 0 24 24"><path d="M12 2v2m0 16v2M2 12h2m16 0h2M5 5l1.5 1.5m11 11L19 19M5 19l1.5-1.5m11-11L19 5"/><circle cx="12" cy="12" r="4"/></symbol>
<symbol id="moon" viewBox="0 0 24 24"><path d="M20.5 13A8.5 8.5 0 0 1 11 3.5 8.5 8.5 0 1 0 20.5 13Z"/></symbol>
<symbol id="plus" viewBox="0 0 24 24"><path d="M5 12h14M12 5v14"/></symbol>
<symbol id="map" viewBox="0 0 24 24"><path d="m3 5 6-2 6 2 6-2v16l-6 2-6-2-6 2Zm6-2v16m6-14v16"/></symbol>
<symbol id="portal" viewBox="0 0 24 24"><path d="M5 21V7l4-4h6l4 4v14M9 21V9l2-2h2l2 2v12M3 21h18"/></symbol>
</svg>
<header class="site-header">
<div class="container header-inner">
<a class="brand" href="#top" aria-label="wowmine — в начало">
<svg class="brand-block" viewBox="0 0 40 44" aria-hidden="true">
<path fill="#a7d754" d="m20 1 19 10-19 10L1 11Z"/>
<path fill="#765239" d="m1 11 19 10v22L1 33Z"/>
<path fill="#513c30" d="m20 21 19-10v22L20 43Z"/>
<path fill="#76a637" d="m1 11 19 10v8l-6-3v-4l-5-2v4l-8-5Zm19 10 19-10v8l-5 3v-4l-6 4v5l-8 4Z"/>
</svg>
<span class="brand-name">wowmine</span>
</a>
<nav class="main-nav" aria-label="Основная навигация">
<a class="nav-world" href="#world">Мир сервера</a>
<a class="nav-world" href="/wowmine/map/#azeroth:3742:80:8891:220:0.7:0.9:0:0:perspective">3D-карта</a>
<a href="#start">Как начать</a>
<a class="nav-help" href="#help">Вопросы</a>
</nav>
<button class="theme-toggle" type="button" aria-label="Сменить тему" title="Сменить тему" data-theme-toggle>
<svg class="icon theme-sun" aria-hidden="true"><use href="#sun"/></svg>
<svg class="icon theme-moon" aria-hidden="true"><use href="#moon"/></svg>
</button>
</div>
</header>
<main id="main">
<section class="hero" aria-labelledby="hero-title">
<img class="hero-scene" src="/wowmine/assets/world-valley.webp" width="1600" height="900" alt="" fetchpriority="high">
<div class="container hero-inner">
<h1 id="hero-title">Азерот. <span>Теперь из блоков.</span></h1>
<p class="hero-lead">Знакомые земли — совсем другая история.<br>Исследуй Азерот и Запределье в нашей сборке Minecraft.</p>
<div class="hero-actions">
<a class="button button-primary" href="/minecraft/wowmine/wowmine-Prism.zip" download="wowmine.zip">
<svg class="icon" aria-hidden="true"><use href="#download"/></svg>
Скачать сборку
</a>
<a class="hero-guide" href="#start">Как установить <svg class="icon" aria-hidden="true"><use href="#arrow"/></svg></a>
<a class="hero-guide" href="/wowmine/map/#azeroth:3742:80:8891:220:0.7:0.9:0:0:perspective"><svg class="icon" aria-hidden="true"><use href="#map"/></svg> 3D-карта</a>
</div>
<p class="hero-note">Для Prism Launcher · с автообновлениями</p>
</div>
<a class="hero-scroll" href="#world" aria-label="Узнать о мире"><span>Дальше — целый мир</span><svg class="icon" aria-hidden="true"><use href="#arrow"/></svg></a>
</section>
<section class="connection" aria-label="Подключение к серверу">
<div class="container connection-inner">
<div class="connection-label">
<span class="signal-mark" aria-hidden="true"></span>
<div><p class="connection-title">Место встречи</p><p class="connection-caption">Добавь в список серверов</p></div>
</div>
<div class="address-group">
<code id="server-address">wowmine.bfs.band:35565</code>
<button class="button button-copy" type="button" data-copy-address>
<svg class="icon copy-icon" aria-hidden="true"><use href="#copy"/></svg>
<svg class="icon copied-icon" aria-hidden="true"><use href="#check"/></svg>
<span>Скопировать IP</span>
</button>
</div>
<p class="copy-feedback" id="copy-feedback" role="status" aria-live="polite"></p>
</div>
</section>
<section class="section world-section" id="world" aria-labelledby="world-title">
<div class="container world-layout">
<div class="section-intro">
<h2 id="world-title">За каждым блоком — <br>новое открытие.</h2>
<p>Знакомые города и далёкие земли. Мир Warcraft, в котором можно не только путешествовать, но и строить свою историю.</p>
</div>
<div class="world-list">
<article class="world-entry">
<svg class="world-icon" aria-hidden="true"><use href="#map"/></svg>
<div><h3>Азерот</h3><p>Знакомые земли, города и простор для собственных построек. Выбирай направление и отправляйся в путь.</p></div>
</article>
<article class="world-entry">
<svg class="world-icon" aria-hidden="true"><use href="#portal"/></svg>
<div><h3>Запределье</h3><p>Отдельное измерение для продолжения путешествия. Когда одного мира уже недостаточно.</p></div>
</article>
</div>
</div>
</section>
<section class="section setup-section" id="start" aria-labelledby="start-title">
<div class="container">
<h2 id="start-title">Три шага до приключения</h2>
<div class="setup-layout">
<ol class="steps">
<li>
<span class="step-number" aria-hidden="true">01</span>
<div><h3>Установи Prism Launcher</h3><p>Скачай <a href="https://prismlauncher.org/download/">Prism Launcher</a> и выбери Java 21 в настройках. Это дом для твоей сборки.</p></div>
</li>
<li>
<span class="step-number" aria-hidden="true">02</span>
<div><h3>Добавь сборку</h3><p><a href="/minecraft/wowmine/wowmine-Prism.zip" download="wowmine.zip">Скачай ZIP для Prism</a>. Затем открой «Добавить сборку» → «Импорт из ZIP» и выбери скачанный файл.</p></div>
</li>
<li>
<span class="step-number" aria-hidden="true">03</span>
<div><h3>Запускай и присоединяйся</h3><p>Разреши команду перед запуском: она установит и обновит моды через packwiz. Адрес сервера уже добавлен в сборку.</p></div>
</li>
</ol>
<aside class="requirements" aria-label="Параметры сборки">
<h3>Перед запуском</h3>
<dl>
<div><dt>Minecraft</dt><dd>1.21.1</dd></div>
<div><dt>Загрузчик</dt><dd>NeoForge 21.1.250</dd></div>
<div><dt>Java</dt><dd>21</dd></div>
<div><dt>Память сборки</dt><dd>8 ГБ</dd></div>
</dl>
<p>Память уже настроена в инстансе. Моды не нужно устанавливать по одному.</p>
</aside>
</div>
</div>
</section>
<section class="section help-section" id="help" aria-labelledby="help-title">
<div class="container help-layout">
<h2 id="help-title">Перед входом <br>в мир</h2>
<div class="questions">
<details>
<summary>Как обновляется сборка?<svg class="icon" aria-hidden="true"><use href="#plus"/></svg></summary>
<p>Перед каждым запуском packwiz проверяет файлы и устанавливает опубликованные обновления модов и конфигурации. Скачивать новую сборку вручную не нужно.</p>
</details>
<details>
<summary>Сохранятся мои настройки?<svg class="icon" aria-hidden="true"><use href="#plus"/></svg></summary>
<p>Личные настройки в <code>options.txt</code> сохраняются. Файлы конфигурации, которыми управляет сборка, могут заменяться при обновлении.</p>
</details>
<details>
<summary>Что делать после обновления Minecraft?<svg class="icon" aria-hidden="true"><use href="#plus"/></svg></summary>
<p>При смене версии Minecraft или NeoForge может понадобиться ещё раз запустить игру после обновления. Разрешённая команда перед запуском должна оставаться включённой.</p>
</details>
<details>
<summary>Можно скачать обычный mrpack?<svg class="icon" aria-hidden="true"><use href="#plus"/></svg></summary>
<p>Да, доступен <a href="/minecraft/wowmine/latest.mrpack" download>обычный mrpack</a>. В нём нет автообновлений: новые версии нужно устанавливать вручную. Для проверки файлов есть <a href="/minecraft/wowmine/SHA256SUMS">контрольные суммы SHA-256</a>.</p>
</details>
</div>
</div>
</section>
</main>
<footer class="site-footer">
<div class="container footer-inner">
<a class="footer-brand" href="#top">wowmine<span>Увидимся по ту сторону экрана.</span></a>
<div class="footer-links"><a href="/minecraft/wowmine/">Страница сборки</a><a href="/minecraft/wowmine/SHA256SUMS">SHA-256</a></div>
<p>Неофициальный проект. Не связан с Mojang или Microsoft.</p>
</div>
</footer>
</body>
</html>
+104
View File
@@ -0,0 +1,104 @@
{ ... }:
{
networking.firewall.allowedTCPPorts = [ 80 443 ];
systemd.tmpfiles.rules = [
"d /var/www/wowmine 0755 root root -"
"d /var/www/wowmine/public/minecraft/wowmine/releases 0755 root root -"
];
security.acme = {
acceptTerms = true;
defaults.email = "security@bfs.band";
};
services.nginx = {
enable = true;
virtualHosts."wowmine-http" = {
serverName = "wowmine.bfs.band";
useACMEHost = "wowmine.bfs.band";
# Keep HTTP-01 challenges on80 while sending visitors to the public TLS port.
locations."/".return = "301 https://wowmine.bfs.band:8443$request_uri";
};
virtualHosts."wowmine.bfs.band" = {
enableACME = true;
onlySSL = true;
root = "/var/www/wowmine/public";
# Preserve the client's external port when8443 is forwarded to443.
extraConfig = ''
absolute_redirect off;
'';
locations = {
"= /" = {
return = "302 /wowmine/";
};
"= /wowmine" = {
return = "302 /wowmine/";
};
"^~ /wowmine/" = {
alias = "${./wowmine-site/static}/";
extraConfig = ''
index index.html;
autoindex off;
add_header Cache-Control "no-cache" always;
limit_except GET {
deny all;
}
'';
};
"= /wowmine/map" = {
return = "302 /wowmine/map/";
};
"^~ /wowmine/map/" = {
proxyPass = "http://127.0.0.1:8100/";
extraConfig = ''
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header Connection "";
proxy_buffering off;
proxy_read_timeout 3600s;
limit_except GET {
deny all;
}
'';
};
"= /minecraft/wowmine" = {
return = "302 /minecraft/wowmine/";
};
"^~ /minecraft/wowmine/" = {
extraConfig = ''
index index.html;
autoindex off;
add_header Cache-Control "no-cache" always;
limit_except GET {
deny all;
}
try_files $uri $uri/ =404;
'';
};
"= /minecraft/world-of-sosal" = {
return = "301 /minecraft/wowmine/";
};
"^~ /minecraft/world-of-sosal/" = {
extraConfig = ''
rewrite ^/minecraft/world-of-sosal/WorldOfSosal-(.*)$ /minecraft/wowmine/wowmine-$1 permanent;
rewrite ^/minecraft/world-of-sosal/(.*)$ /minecraft/wowmine/$1 permanent;
'';
};
"= /world-of-sosal" = {
return = "302 /minecraft/wowmine/";
};
"^~ /world-of-sosal/" = {
extraConfig = ''
rewrite ^/world-of-sosal/(?:index.html)?$ /minecraft/wowmine/ permanent;
rewrite ^/world-of-sosal/(?:releases/)?WorldOfSosal-(.*)$ /minecraft/wowmine/wowmine-$1 permanent;
rewrite ^/world-of-sosal/(.*)$ /minecraft/wowmine/$1 permanent;
'';
};
"/" = {
return = "404";
};
};
};
};
}