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
-79
View File
@@ -48,7 +48,6 @@ let
giteaRunnerService = "gitea-runner-${giteaRunnerEscapedInstance}";
giteaRunnerTokenEnvService = "${giteaRunnerService}-token-env";
giteaRunnerTokenEnv = "/run/gitea-runner-${giteaRunnerInstance}/token.env";
worldOfSosalRoot = "/var/www/store/world-of-sosal";
in {
imports = [
self.nixosModules.hectic
@@ -69,7 +68,6 @@ in {
(import ./containers.nix { inherit flake self inputs; })
./experimental-sshd.nix
./minecraft-wow-proxy.nix
./worldofsosal-map.nix
(import ./ente.nix { inherit domain; })
(import ./immich.nix { inherit domain inputs; })
(import ./mechabellum.nix { inherit flake self inputs domain; })
@@ -402,8 +400,6 @@ in {
systemd.tmpfiles.rules = [
"d /var/www/store 0755 nginx nginx -"
"d ${worldOfSosalRoot} 0750 root nginx -"
"d ${worldOfSosalRoot}/releases 0750 root nginx -"
];
systemd.services.${giteaRunnerTokenEnvService} = {
@@ -449,81 +445,6 @@ in {
autoindex on;
'';
};
locations."= /wowmine" = {
extraConfig = ''
return 302 /wowmine/;
'';
};
locations."^~ /wowmine/" = {
extraConfig = ''
alias ${./static/wowmine}/;
index index.html;
autoindex off;
add_header Cache-Control "no-cache" always;
limit_except GET {
deny all;
}
'';
};
locations."= /world-of-sosal/" = {
extraConfig = ''
return 302 /world-of-sosal/index.html;
'';
};
locations."= /world-of-sosal/index.html" = {
extraConfig = ''
alias ${./static/world-of-sosal/index.html};
default_type text/html;
add_header Cache-Control "no-cache" always;
limit_except GET {
deny all;
}
'';
};
locations."= /world-of-sosal/latest.mrpack" = {
extraConfig = ''
root /var/www/store;
default_type application/zip;
add_header Content-Disposition "attachment" always;
add_header Cache-Control "no-cache, no-store, must-revalidate" always;
try_files $uri =404;
if ($request_method != GET) { return 405; }
'';
};
locations."= /world-of-sosal/SHA256SUMS" = {
extraConfig = ''
root /var/www/store;
default_type text/plain;
add_header Content-Disposition "attachment" always;
add_header Cache-Control "no-cache, no-store, must-revalidate" always;
try_files $uri =404;
if ($request_method != GET) { return 405; }
'';
};
locations."= /world-of-sosal/releases/" = {
extraConfig = ''
return 404;
'';
};
locations."~ ^/world-of-sosal/releases/[A-Za-z0-9][A-Za-z0-9._-]*\\.mrpack$" = {
extraConfig = ''
root /var/www/store;
default_type application/zip;
add_header Content-Disposition "attachment" always;
add_header Cache-Control "public, max-age=31536000, immutable" always;
try_files $uri =404;
if ($request_method != GET) { return 405; }
'';
};
locations."/world-of-sosal/" = {
extraConfig = ''
autoindex off;
limit_except GET {
deny all;
}
return 404;
'';
};
};
virtualHosts."lessons.${domain}" = {
enableACME = true;
@@ -1,18 +0,0 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>WorldOfSosal</title>
</head>
<body>
<main>
<h1>WorldOfSosal</h1>
<p><a href="https://store.hectic-lab.com/minecraft/world-of-sosal/">Install in Prism with automatic mod updates</a></p>
<p><a href="https://store.hectic-lab.com/world-of-sosal/latest.mrpack">Download latest pack</a></p>
<p><a href="prismlauncher://import?url=https%3A%2F%2Fstore.hectic-lab.com%2Fworld-of-sosal%2Flatest.mrpack">Import latest pack in Prism Launcher</a></p>
<p><a href="https://store.hectic-lab.com/world-of-sosal/SHA256SUMS">SHA-256 checksums</a></p>
<p>Updates are manual. Packs imported from arbitrary URLs do not update automatically.</p>
</main>
</body>
</html>
@@ -0,0 +1,18 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>wowmine</title>
</head>
<body>
<main>
<h1>wowmine</h1>
<p><a href="https://store.hectic-lab.com/minecraft/wowmine/">Install in Prism with automatic mod updates</a></p>
<p><a href="https://store.hectic-lab.com/minecraft/wowmine/latest.mrpack">Download latest pack</a></p>
<p><a href="prismlauncher://import?url=https%3A%2F%2Fstore.hectic-lab.com%2Fminecraft%2Fwowmine%2Flatest.mrpack">Import latest pack in Prism Launcher</a></p>
<p><a href="https://store.hectic-lab.com/minecraft/wowmine/SHA256SUMS">SHA-256 checksums</a></p>
<p>Updates are manual. Packs imported from arbitrary URLs do not update automatically.</p>
</main>
</body>
</html>
@@ -5,8 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="dark">
<meta name="theme-color" content="#141a15">
<meta name="description" content="WorldOfSosal — Азерот и Запределье в Minecraft. Скачай готовую сборку для Prism Launcher с автоматическими обновлениями и присоединяйся к серверу.">
<meta property="og:title" content="WorldOfSosal — Азерот из блоков">
<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">
@@ -17,7 +17,7 @@
<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>WorldOfSosal — Азерот из блоков</title>
<title>wowmine — Азерот из блоков</title>
</head>
<body id="top">
<a class="skip-link" href="#main">Перейти к содержимому</a>
@@ -33,14 +33,14 @@
<header class="site-header">
<div class="container header-inner">
<a class="brand" href="#top" aria-label="WorldOfSosal — в начало">
<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">World<span>OfSosal</span></span>
<span class="brand-name">wowmine</span>
</a>
<nav class="main-nav" aria-label="Основная навигация">
<a class="nav-world" href="#world">Мир сервера</a>
@@ -58,7 +58,7 @@
<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/world-of-sosal/WorldOfSosal-Prism.zip" download="WoS.zip">
<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>
@@ -118,7 +118,7 @@
</li>
<li>
<span class="step-number" aria-hidden="true">02</span>
<div><h3>Добавь сборку</h3><p><a href="/minecraft/world-of-sosal/WorldOfSosal-Prism.zip" download="WoS.zip">Скачай ZIP для Prism</a>. Затем открой «Добавить сборку» → «Импорт из ZIP» и выбери скачанный файл.</p></div>
<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>
@@ -157,7 +157,7 @@
</details>
<details>
<summary>Можно скачать обычный mrpack?<svg class="icon" aria-hidden="true"><use href="#plus"/></svg></summary>
<p>Да, доступен <a href="/minecraft/world-of-sosal/latest.mrpack" download>обычный mrpack</a>. В нём нет автообновлений: новые версии нужно устанавливать вручную. Для проверки файлов есть <a href="/minecraft/world-of-sosal/SHA256SUMS">контрольные суммы SHA-256</a>.</p>
<p>Да, доступен <a href="/minecraft/wowmine/latest.mrpack" download>обычный mrpack</a>. В нём нет автообновлений: новые версии нужно устанавливать вручную. Для проверки файлов есть <a href="/minecraft/wowmine/SHA256SUMS">контрольные суммы SHA-256</a>.</p>
</details>
</div>
</div>
@@ -166,8 +166,8 @@
<footer class="site-footer">
<div class="container footer-inner">
<a class="footer-brand" href="#top">WorldOfSosal<span>Увидимся по ту сторону экрана.</span></a>
<div class="footer-links"><a href="/minecraft/world-of-sosal/">Страница сборки</a><a href="/minecraft/world-of-sosal/SHA256SUMS">SHA-256</a></div>
<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>
@@ -1,39 +0,0 @@
{ pkgs, ... }:
{
systemd.services.worldofsosal-bluemap-proxy = {
description = "Private BlueMap HTTP transport from neuro";
wantedBy = [ "multi-user.target" ];
wants = [ "network-online.target" ];
after = [ "network-online.target" ];
serviceConfig = {
User = "root";
ExecStart = "${pkgs.openssh}/bin/ssh -NT -o BatchMode=yes -o IdentityAgent=none -o IdentitiesOnly=yes -o StrictHostKeyChecking=yes -o ExitOnForwardFailure=yes -o ConnectTimeout=10 -o ServerAliveInterval=15 -o ServerAliveCountMax=3 -L 127.0.0.1:18100:127.0.0.1:8100 neuro";
Restart = "always";
RestartSec = 10;
NoNewPrivileges = true;
ProtectSystem = "strict";
ProtectHome = "read-only";
PrivateTmp = true;
CapabilityBoundingSet = "";
};
};
services.nginx.virtualHosts."store.hectic-lab.com".locations = {
"= /wowmine/map" = {
extraConfig = "return 302 /wowmine/map/;";
};
"^~ /wowmine/map/" = {
proxyPass = "http://127.0.0.1:18100/";
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;
}
'';
};
};
}
@@ -1,11 +1,23 @@
# WorldOfSosal pack publishing
# wowmine pack publishing
The public endpoint is `https://store.hectic-lab.com/world-of-sosal/`. Nix
Retired on 2026-11-20. Website, downloads, publishing and map serving now live
on neuro at `https://wowmine.bfs.band:8443/`. The old hectic-lab paths have no
redirects. Use `../../../docs/minecraft-prism.md` for current publishing and
updater instructions. Commands below describe the historical deployment;
do not run them on hectic-lab.
The public endpoint is `https://store.hectic-lab.com/minecraft/wowmine/`. Nix
deploys only its landing page and nginx configuration. Pack files, the checksum
manifest, and `latest.mrpack` stay under `/var/www/store/world-of-sosal` on the
manifest, and `latest.mrpack` stay under `/var/www/store/minecraft/wowmine` on the
host and never enter Git or the Nix store.
## Publish an uploaded pack
The wowmine rename and `v15-wowmine` release are planned. No new release hash
or deployment success is established here. The auto-updating Prism ZIP is
`wowmine-Prism.zip`, suggested as `wowmine.zip`; its updater reads
`current/pack.toml`. See `../../../docs/minecraft-prism.md` for publication.
Old public paths are compatibility redirects for installed clients only.
## Publish an uploaded manual pack
Run these commands on `hectic-lab` as root after the Storage Box pack has
already been uploaded to a local staging path. Pick a stable version name; do
@@ -13,14 +25,15 @@ not replace an existing versioned release.
```sh
set -eu
source_pack=/path/to/already-uploaded/WorldOfSosal.mrpack
version=2026-09-16
root=/var/www/store/world-of-sosal
release_name="WorldOfSosal-${version}.mrpack"
source_pack=/path/to/already-uploaded/wowmine-v15-wowmine.mrpack
: "${source_sha256:?Set the independently verified source SHA-256}"
version=v15-wowmine
root=/var/www/store/minecraft/wowmine
release_name="wowmine-${version}.mrpack"
release_path="$root/releases/$release_name"
printf '%s %s\n' \
f8c18acb9208e4592725632ae50dab4f9c308483b34fd43a6507c74fdbf8169f \
"$source_sha256" \
"$source_pack" | sha256sum --check --status
test ! -e "$release_path"
install -o root -g nginx -m 0640 "$source_pack" "$release_path.new"
@@ -40,12 +53,12 @@ mv -Tf "$latest" "$root/latest.mrpack"
Versioned releases use a one-year immutable cache policy. `latest.mrpack` and
`SHA256SUMS` disable caching so an atomic replacement becomes visible quickly.
The manifest is available at
`https://store.hectic-lab.com/world-of-sosal/SHA256SUMS`.
`https://store.hectic-lab.com/minecraft/wowmine/SHA256SUMS`.
Import the current pack in Prism Launcher with:
```text
prismlauncher://import?url=https%3A%2F%2Fstore.hectic-lab.com%2Fworld-of-sosal%2Flatest.mrpack
prismlauncher://import?url=https%3A%2F%2Fstore.hectic-lab.com%2Fminecraft%2Fwowmine%2Flatest.mrpack
```
Direct URL imports do not auto-update. Repeat the publication and import steps