Compare commits
56
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
05198a98f8 | ||
|
|
8c42bef13f | ||
|
|
1397324bf3 | ||
|
|
1388a251cf | ||
|
|
53d4ecc2bf | ||
|
|
f69752dcc0 | ||
|
|
c000302260 | ||
|
|
372cc7c93a | ||
|
|
393a8cc6f5 | ||
|
|
cd3e215b4d | ||
|
|
8f53181693 | ||
|
|
9c47609215 | ||
|
|
8d846892d5 | ||
|
|
7eca6452bb | ||
|
|
0d779d1bc1 | ||
|
|
515e6debe4 | ||
|
|
c9c276d9de | ||
|
|
a451a9de0a | ||
|
|
24f25d8143 | ||
|
|
8b6746667b | ||
|
|
20bb8f85a8 | ||
|
|
331017116e | ||
|
|
8a51e77216 | ||
|
|
e0a1ef293e | ||
|
|
39f429a9da | ||
|
|
7a609f4815 | ||
|
|
72727c96c5 | ||
|
|
84dd1616e7 | ||
|
|
75aaa197aa | ||
|
|
555ae6a991 | ||
|
|
07cd51ac1f | ||
|
|
4d9af52c70 | ||
|
|
c6a504c951 | ||
|
|
2093f17fa5 | ||
|
|
e8b41e57e5 | ||
|
|
3e2601b496 | ||
|
|
d9eb0dfc44 | ||
|
|
845e68316d | ||
|
|
9b5d2ed657 | ||
|
|
0143a1a760 | ||
|
|
7fbceb5cdb | ||
|
|
caccbd8f9d | ||
|
|
50c4efc09b | ||
|
|
e935abd0c3 | ||
|
|
f52861ffb8 | ||
|
|
acd7612e7c | ||
|
|
87c6b755b1 | ||
|
|
21cc43a1c3 | ||
|
|
5aeb3c5d50 | ||
|
|
06925e9af8 | ||
|
|
60d2e5d80f | ||
|
|
7bceeb255e | ||
|
|
ba213e1a3b | ||
|
|
21a3b5c59f | ||
|
|
bd794f98a2 | ||
|
|
f8af0b81a9 |
@@ -2,19 +2,6 @@ name: runner nix smoke
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- .gitea/workflows/runner-nix-smoke.yaml
|
||||
- flake.lock
|
||||
- flake.nix
|
||||
- infra/gitea-runners/**
|
||||
- lib/**
|
||||
- legacy/**
|
||||
- nixos/**
|
||||
- package/**
|
||||
- test/**
|
||||
|
||||
jobs:
|
||||
smoke:
|
||||
|
||||
@@ -2,12 +2,6 @@ name: runner ubuntu smoke
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- .gitea/workflows/runner-ubuntu-smoke.yaml
|
||||
- infra/gitea-runners/**
|
||||
|
||||
jobs:
|
||||
smoke:
|
||||
|
||||
@@ -12,6 +12,13 @@ keys:
|
||||
- &umbriel-bfs age1jxntjca8q2vxvf2jaal4xyvm2ae6sh62fhv897694kuzawfrk5asj00zdt
|
||||
|
||||
creation_rules:
|
||||
- path_regex: sus/neuro-project-zomboid.yaml$
|
||||
key_groups:
|
||||
- age:
|
||||
- *yukkop
|
||||
- *neuro-server
|
||||
- age1ev53mzse6rg4ffwtcwtq4e93c7x7s4d0eyu89jrsahrke8r4yamsseu8h4
|
||||
|
||||
- path_regex: sus/neuro-minecraft.yaml$
|
||||
key_groups:
|
||||
- age:
|
||||
|
||||
@@ -2,8 +2,13 @@
|
||||
|
||||
- [Using the `hectic` Attic Cache](./attic-cache.md)
|
||||
- [Minecraft incident log](./minecraft-incidents.md)
|
||||
- [wowmine source versions and reset](./wowmine-reset.md)
|
||||
- [Project Zomboid backups](./project-zomboid-backups.md)
|
||||
- [Minecraft backups](./minecraft-backups.md)
|
||||
- [Gitea Kanban CLI](./gitea-kanban-cli.md)
|
||||
- [AFFiNE document typography](./affine-typography.md)
|
||||
- [Native AFFiNE deployment and migration](./affine-native.md)
|
||||
- [ChatGPT subscription connector for AFFiNE](./affine-chatgpt.md)
|
||||
|
||||
## Gitea runner labels
|
||||
|
||||
|
||||
@@ -0,0 +1,276 @@
|
||||
# AFFiNE ChatGPT subscription connector
|
||||
|
||||
`affine-chatgpt` uses the official Sign in with ChatGPT preview flow. It does not
|
||||
use browser cookies, another application's OAuth client, or an API-billing
|
||||
fallback. Account eligibility and usage limits are controlled by OpenAI.
|
||||
|
||||
## Native service
|
||||
|
||||
The reusable NixOS module is `hectic.services.affine-chatgpt`. The hectic-lab
|
||||
host enables it in `nixos/system/hectic-lab/affine-chatgpt.nix`.
|
||||
|
||||
- Unit: `affine-chatgpt.service`, running as `affine-chatgpt`.
|
||||
- Listener: `127.0.0.1:3012`; no public port or Docker dependency.
|
||||
- OAuth state: `/var/lib/affine-chatgpt/session`, mode `0700`.
|
||||
- Credentials and stable gateway key: owner-only files, mode `0600`.
|
||||
- Gateway key: `/var/lib/affine-chatgpt/gateway-key`.
|
||||
|
||||
Do not put credentials or key contents in Nix expressions, the Nix store,
|
||||
environment variables, command arguments, logs, screenshots, or Git. The
|
||||
service receives only the protected key's path. Keep the key stable: AFFiNE
|
||||
stores its value as an encrypted workspace BYOK credential.
|
||||
|
||||
The service is deliberately not started when the OAuth credential file is
|
||||
absent. Provision the state before starting it, using the service account's
|
||||
ownership. Preserve the original private directory/file permissions.
|
||||
|
||||
## Authorize and move a session
|
||||
|
||||
On the computer running the user's regular browser:
|
||||
|
||||
```sh
|
||||
nix run .#affine-chatgpt -- login
|
||||
nix run .#affine-chatgpt -- status
|
||||
nix run .#affine-chatgpt -- models
|
||||
```
|
||||
|
||||
Open the printed OpenAI authorization URL in the normal browser, not a
|
||||
temporary automation browser. Complete login, any passkey challenge, and app
|
||||
consent. The loopback callback is `http://127.0.0.1:1455/auth/callback`; the
|
||||
listener expires after 15 minutes unless `login --timeout` is specified.
|
||||
|
||||
For a self-hosted VM, securely transfer the complete credential record over
|
||||
SSH. Create and persist a distinct VM host ID in `session/host.json`; do not
|
||||
overwrite it with the laptop's host ID. Associate the imported credential's
|
||||
`host_id` with that VM. Use the same issued client registration, not the
|
||||
`dynamic_agent_client` registration entrypoint, for subsequent token exchanges.
|
||||
|
||||
After a successful remote model and inference test, remove the local active
|
||||
credential record. Only the VM should rotate the imported refresh token.
|
||||
Never copy a different application's credential record or session cookies.
|
||||
|
||||
Login and model-list success prove enrollment and catalog access, not working
|
||||
inference. Require a streamed request ending with `response.completed` before
|
||||
claiming that the subscription works.
|
||||
|
||||
## AFFiNE configuration
|
||||
|
||||
Configure these settings through AFFiNE's supported administrator API/UI, not
|
||||
direct SQL or source-embedded secrets:
|
||||
|
||||
```json
|
||||
{
|
||||
"copilot.enabled": true,
|
||||
"copilot.byok.enabled": true,
|
||||
"copilot.byok.allowedProviders": ["openai"],
|
||||
"copilot.byok.allowCustomEndpoint": true,
|
||||
"copilot.byok.allowPrivateEndpoint": true
|
||||
}
|
||||
```
|
||||
|
||||
The native AFFiNE wrapper sets `DEPLOYMENT_TYPE=selfhosted`, required for custom
|
||||
endpoints. The stable AFFiNE `private.key` must be preserved so stored BYOK
|
||||
credentials remain decryptable.
|
||||
|
||||
Add a workspace BYOK provider:
|
||||
|
||||
- Provider: `openai`.
|
||||
- Endpoint kind: `openai_compatible`.
|
||||
- URL: `http://127.0.0.1:3012/v1`.
|
||||
- Dialect: `responses`, not Chat Completions.
|
||||
- Credential: the protected gateway key, not an OpenAI token.
|
||||
- Model: a slug returned by the authorized account's catalog.
|
||||
- Initial capabilities: text input/output and `tool_calling`, no attachments.
|
||||
|
||||
Persistent AFFiNE BYOK is workspace-wide. All authorized workspace members can
|
||||
consume the connected account's limits and send document context/tool results
|
||||
to OpenAI. User consent to shared access does not replace OpenAI's account and
|
||||
subscription terms.
|
||||
|
||||
## Supported transport
|
||||
|
||||
The gateway authenticates requests before reading their bodies. It supports
|
||||
`GET /v1/models` and `POST /v1/responses`, text history, function/custom tools,
|
||||
and function-call results. AFFiNE executes tools; the gateway never executes
|
||||
shell commands or document tools itself.
|
||||
|
||||
Upstream requests always use `store:false` and `stream:true`. Non-streaming
|
||||
AFFiNE probes are assembled from completed SSE output items and the final
|
||||
completion event. An explicitly non-SSE Content-Type is rejected; a missing
|
||||
Content-Type is accepted only through the same strict SSE parser. Failed,
|
||||
incomplete, malformed, or interrupted streams are not reported as successful.
|
||||
|
||||
Image generation, image/file/audio attachments, hosted MCP, Code Interpreter,
|
||||
and persistent Responses conversation IDs are not supported. Do not declare
|
||||
those capabilities in AFFiNE.
|
||||
|
||||
## Verification and development
|
||||
|
||||
```sh
|
||||
nix build .#affine-chatgpt
|
||||
nix build .#checks.x86_64-linux.affine-chatgpt-enrollment
|
||||
nix build .#checks.x86_64-linux.affine-chatgpt-module
|
||||
nix build .#checks.x86_64-linux.affine-model-picker
|
||||
nix build .#affine-chatgpt.pythonEnv --out-link package/affine-chatgpt/.venv
|
||||
pyright --project package/affine-chatgpt/pyrightconfig.json \
|
||||
--pythonpath package/affine-chatgpt/.venv/bin/python3
|
||||
```
|
||||
|
||||
Package checks use fake credentials and local HTTP fixtures only. Real smoke
|
||||
tests should verify unauthenticated `401`, model filtering, text response,
|
||||
function-call output, streamed completion, restart, and token refresh without
|
||||
printing credentials. A successful direct gateway test is not proof that
|
||||
AFFiNE's workspace provider and chat UI have been configured.
|
||||
|
||||
References:
|
||||
|
||||
- <https://developers.openai.com/siwc/token-sharing-open-source>
|
||||
- <https://developers.openai.com/siwc/token-sharing-open-source/self-hosted-vms>
|
||||
- <https://developers.openai.com/siwc/token-sharing-open-source/preview-limitations>
|
||||
|
||||
## hectic-lab deployment
|
||||
|
||||
The native service is active and the shared AFFiNE workspace has an enabled
|
||||
`ChatGPT subscription` BYOK profile pointing at `http://127.0.0.1:3012/v1`.
|
||||
The profile offers these account-catalog models, each with text input/output
|
||||
and tool calling:
|
||||
|
||||
- `gpt-5.6-luna`
|
||||
- `gpt-5.6-terra`
|
||||
- `gpt-5.6-sol`
|
||||
- `gpt-6-luna`
|
||||
- `gpt-6-sol`
|
||||
- `gpt-6-astra`
|
||||
- `gpt-6.1-terra`
|
||||
- `gpt-6.1-sol`
|
||||
|
||||
The existing first/default model remains `gpt-5.6-luna`. All eight models passed
|
||||
AFFiNE's chat and tool-calling probes. A two-turn chat switched from
|
||||
`gpt-5.6-luna` to `gpt-6.1-sol`; the second model recovered a random marker from
|
||||
the first turn, confirming conversation history is retained across the switch.
|
||||
The temporary test conversation was removed through AFFiNE's API. Model changes
|
||||
use the existing workspace profile and do not replace its encrypted credential
|
||||
or require another OAuth login. Reload an already-open client to refresh its
|
||||
model catalog.
|
||||
|
||||
The pinned AFFiNE frontend originally exposed only managed route choices, which
|
||||
are empty on self-hosted servers. `package/affine/byok-model-picker.patch` adds
|
||||
workspace BYOK models to the existing Model menu and forwards the selected
|
||||
profile/model separately from managed route IDs. Auto and managed selections
|
||||
remain supported; retries retain the last request selection in memory.
|
||||
|
||||
BYOK discovery uses the existing owner/admin settings API. Owners and workspace
|
||||
admins can choose these models in the patched selector; ordinary members retain
|
||||
Auto and can use the shared default profile without gaining settings access.
|
||||
No backend permission or Enterprise source code is changed.
|
||||
|
||||
The native module's optional `frontendPackage` mounts matching source-built
|
||||
static assets read-only into the application service. Backend binaries and
|
||||
migration units stay unchanged during this frontend-only rollout. Compatibility
|
||||
checks require matching release and source revision. The host explicitly enables
|
||||
this override; a standalone module with no override keeps its bundled frontend.
|
||||
|
||||
For a frontend-only rollout, build the static artifact and picker check, inspect
|
||||
the host activation plan, then activate the host configuration normally:
|
||||
|
||||
```sh
|
||||
nix build .#affine-frontend-static .#checks.x86_64-linux.affine-model-picker
|
||||
nixos-rebuild switch --flake '.#hectic-lab|x86_64-linux'
|
||||
```
|
||||
|
||||
Only `affine-native.service` should restart for a static-only change. Its
|
||||
migration unit, dedicated PostgreSQL and Redis must keep their existing package
|
||||
and restart triggers. Reload the client with a hard refresh after deployment to
|
||||
discard cached frontend chunks.
|
||||
|
||||
### Verified picker rollout
|
||||
|
||||
The patched selector is deployed in NixOS generation
|
||||
`1mvb1nb5xqhaj8xfskxi00lj39lmbpzl`. It binds frontend static package
|
||||
`hrg3dkcacg5drizifiinjx481k6k33d5` over the unchanged native backend's static
|
||||
directory. The activation restarted only AFFiNE; PostgreSQL, Redis and migration
|
||||
unit process/state timestamps remained unchanged.
|
||||
|
||||
An authenticated headless browser verified all eight menu choices and selected
|
||||
`gpt-6.1-sol`. The real selector returned the expected `profileId` and `modelId`
|
||||
with no managed `routeTargetId`; the trigger displayed the selected model.
|
||||
Open the AI input's Auto/current-model control, then its Model submenu. Use a
|
||||
hard refresh (`Ctrl+F5`) if the old interface is still cached.
|
||||
|
||||
Account OAuth enrollment, remote catalog access, text generation, function
|
||||
calls and streamed tool results were tested. AFFiNE's own provider probes and
|
||||
chat SSE endpoint also passed, including automatic profile routing.
|
||||
|
||||
Only the server now owns the imported rotating session; the local active
|
||||
credential copy was removed after remote verification. Images and attachments
|
||||
remain unsupported and are not advertised by the profile.
|
||||
|
||||
## AFFiNE managed trial counter versus provider limits
|
||||
|
||||
`currentUser.copilot.quota { limit used }` describes AFFiNE's managed AI trial,
|
||||
not the connected ChatGPT account's remaining usage. It must not be presented as
|
||||
an OpenAI allowance or an invoice. BYOK execution is authorized independently
|
||||
from quota-backed managed routes and records usage as `byok_server`.
|
||||
|
||||
The pinned release has a legacy accounting edge case: deleted sessions retain
|
||||
`messageCost`, while the BYOK exemption query joins usage billing units to live
|
||||
message rows. Removing test conversations can therefore leave a misleading
|
||||
managed-trial cost after their BYOK message rows disappear. The observed `8/10`
|
||||
was explained by eight such retained units; the connected provider's request
|
||||
history was tagged BYOK, not AFFiNE-managed usage.
|
||||
|
||||
Do not fix this by resetting usage, promoting a plan, granting unlimited quota,
|
||||
or weakening server enforcement. The raw quota and all provider/quota errors
|
||||
remain unchanged. A self-hosted UI should instead identify AI as self-hosted
|
||||
and explain that provider and server limits may apply, without a managed-trial
|
||||
progress bar, Free badge or AFFiNE upgrade action. Cloud quota presentation
|
||||
continues to use the original managed allowance.
|
||||
|
||||
ChatGPT subscription access is already paid for by the account owner; it is not
|
||||
unlimited. OpenAI still enforces the account's model, usage-window and app-access
|
||||
limits. This connector does not add an API-key billing fallback.
|
||||
|
||||
### Verified self-hosted usage rollout
|
||||
|
||||
On 2026-11-06, frontend static package
|
||||
`3s22k6a5p9731xmlr6x33icilcsfkzv2-affine-frontend-static-0.27.4` was copied to
|
||||
`hectic-lab` and mounted over the unchanged backend's static directory. This
|
||||
was a bounded systemd override, **not** a NixOS generation switch: the active
|
||||
and boot generation remain `6rb81fr95gngs99x1dvjw9vzzd7snkn5`. A whole-host
|
||||
build was interrupted rather than activating unrelated package updates.
|
||||
|
||||
The root-owned persistent drop-in is
|
||||
`/etc/systemd/system.control/affine-native.service.d/99-frontend-static-rollout.conf`.
|
||||
It resets `BindReadOnlyPaths` and supplies only the new static bind. This
|
||||
control directory is used because NixOS's `/etc/systemd/system` points into
|
||||
the immutable store. GC roots `affine-frontend-static-rollout` and
|
||||
`affine-frontend-static-rollback` under `/nix/var/nix/gcroots` retain the new
|
||||
bundle and the previous `hrg3dkcacg5drizifiinjx481k6k33d5` bundle.
|
||||
|
||||
Only `affine-native.service` restarted. The migration unit's active timestamp,
|
||||
PostgreSQL, Redis and ChatGPT gateway process IDs and active timestamps stayed
|
||||
unchanged. The running application's mount namespace was checked against the
|
||||
new package's `index.html`; HTTPS `/info` remained healthy. An authenticated
|
||||
headless browser verified the sidebar and account settings on desktop and a
|
||||
Pixel 5 viewport: neutral self-hosted text, no trial count, progress bar or
|
||||
billing action, in both English and Russian. This stable release serves the
|
||||
responsive web application to mobile browsers; upstream's separate mobile shell
|
||||
is canary-only. The separate
|
||||
mobile component is covered by the source-level rendering check.
|
||||
|
||||
A real BYOK text probe succeeded after deployment. AFFiNE's raw managed quota
|
||||
remained `{ limit: 10, used: 8 }` before and after; no accounting records or
|
||||
provider limits were altered. Existing browser sessions need a hard refresh.
|
||||
|
||||
The drop-in survives reboots and NixOS generation rollbacks, and masks future
|
||||
declarative frontend changes until removed. During the next reviewed NixOS
|
||||
switch containing the desired `frontendPackage`, remove this exact drop-in,
|
||||
run `systemctl daemon-reload`, and restart only `affine-native.service` so the
|
||||
declared bind takes effect. Remove the temporary GC roots only after checking
|
||||
that the active generation retains the desired package and rollback retention
|
||||
is no longer needed. Do not use a broad `systemctl revert` operation.
|
||||
|
||||
To roll back this bounded rollout while the original generation remains active,
|
||||
remove that exact drop-in, daemon-reload and restart `affine-native.service`.
|
||||
Its declared unit still binds the previous `hrg3dkcacg5drizifiinjx481k6k33d5`
|
||||
bundle. Confirm health and the effective bind before removing any GC root.
|
||||
@@ -0,0 +1,288 @@
|
||||
# Native AFFiNE NixOS module
|
||||
|
||||
`hectic.services.affine` runs the source-built AFFiNE backend without Docker.
|
||||
It is opt-in and uses distinct `affine-native` and `affine-native-migrate`
|
||||
units, so enabling or importing the module does not alter an existing
|
||||
`affine.service` or Compose deployment.
|
||||
|
||||
## Building and checking
|
||||
|
||||
The package targets `x86_64-linux` and pins AFFiNE 0.27.4. It builds the server,
|
||||
Rust server-native binding, all three web/admin/mobile web bundles, and matching
|
||||
Prisma 6.8.2 engines from source. Toolchains and dependency caches are fixed
|
||||
inputs. No AFFiNE application binary or OCI image is used.
|
||||
|
||||
The backend license is marked unfree. For local development/testing, explicitly
|
||||
allow evaluation without changing machine-wide Nixpkgs configuration:
|
||||
|
||||
```sh
|
||||
NIXPKGS_ALLOW_UNFREE=1 nix build --impure .#affine --option post-build-hook ''
|
||||
NIXPKGS_ALLOW_UNFREE=1 nix build --impure .#checks.x86_64-linux.affine-runtime --option post-build-hook ''
|
||||
nix build .#checks.x86_64-linux.affine-module-basic --option post-build-hook ''
|
||||
```
|
||||
|
||||
Do not publish server/native artifacts to a shared binary cache without checking
|
||||
their redistribution terms. Allowing unfree evaluation does not grant production
|
||||
or redistribution rights. The runtime check uses a fresh PostgreSQL 16 database,
|
||||
pgvector, a non-superuser application role, and a private Redis instance. It tests
|
||||
both migration passes, server startup, assets, administrator setup, authentication,
|
||||
workspace creation, and disabled public signup.
|
||||
|
||||
## Runtime contract
|
||||
|
||||
The selected package must provide:
|
||||
|
||||
- `bin/affine-server`, the long-running backend;
|
||||
- `bin/affine-migrate`, the full upstream predeploy sequence, including private
|
||||
key setup, Prisma schema migrations, and AFFiNE data migrations.
|
||||
|
||||
Both units run as the static `affine-native` system user. systemd manages
|
||||
`/var/lib/affine-native` with mode `0700`. `HOME` points there, so upstream uses
|
||||
`/var/lib/affine-native/.affine/config` and
|
||||
`/var/lib/affine-native/.affine/storage`.
|
||||
|
||||
The module writes an initial `config.json` only when none exists. It seeds the
|
||||
external URL, server name, loopback listener, port, disabled public/OAuth
|
||||
signup, and disabled copilot. Later admin-panel or manual edits are retained.
|
||||
Use `settings` only to extend or override this initial seed.
|
||||
|
||||
## Isolated local example
|
||||
|
||||
This example deliberately creates a new database, Redis instance, state path,
|
||||
and secret file. Do not point an initial native deployment at a production
|
||||
AFFiNE database.
|
||||
|
||||
```nix
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
nixpkgs.config.allowUnfreePredicate = package:
|
||||
builtins.elem (lib.getName package) [ "affine" "affine-server-native" ];
|
||||
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
package = pkgs.postgresql_16;
|
||||
ensureDatabases = [ "affine-native" ];
|
||||
ensureUsers = [{
|
||||
name = "affine-native";
|
||||
ensureDBOwnership = true;
|
||||
}];
|
||||
extensions = ps: [ ps.pgvector ];
|
||||
};
|
||||
|
||||
services.redis.servers.affine-native = {
|
||||
enable = true;
|
||||
port = 6388;
|
||||
bind = "127.0.0.1";
|
||||
};
|
||||
|
||||
# DATABASE_URL: postgresql://affine-native@localhost/affine-native?host=/run/postgresql
|
||||
sops.secrets.affine-native-database-url = {};
|
||||
sops.templates."affine-native.env" = {
|
||||
owner = "affine-native";
|
||||
group = "affine-native";
|
||||
mode = "0400";
|
||||
content = ''
|
||||
DATABASE_URL=${config.sops.placeholder.affine-native-database-url}
|
||||
'';
|
||||
};
|
||||
|
||||
hectic.services.affine = {
|
||||
enable = true;
|
||||
environmentFile = config.sops.templates."affine-native.env".path;
|
||||
externalUrl = "http://localhost:3011";
|
||||
redisHost = "127.0.0.1";
|
||||
redisPort = 6388;
|
||||
};
|
||||
|
||||
# This example runs both dependencies locally, so order migration after them.
|
||||
systemd.services.affine-native-migrate = {
|
||||
after = [ "postgresql.service" "redis-affine-native.service" ];
|
||||
requires = [ "postgresql.service" "redis-affine-native.service" ];
|
||||
};
|
||||
|
||||
# pgvector is not a trusted extension; provision it as postgres, not the app role.
|
||||
systemd.services.affine-native-database = {
|
||||
requires = [ "postgresql.service" ];
|
||||
after = [ "postgresql.service" ];
|
||||
before = [ "affine-native-migrate.service" ];
|
||||
requiredBy = [ "affine-native-migrate.service" ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "postgres";
|
||||
RemainAfterExit = true;
|
||||
};
|
||||
script = ''
|
||||
${pkgs.postgresql_16}/bin/psql --dbname=affine-native --set=ON_ERROR_STOP=1 \
|
||||
--command='CREATE EXTENSION IF NOT EXISTS vector;'
|
||||
'';
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The module never creates PostgreSQL, pgvector, Redis, reverse-proxy, or
|
||||
firewall configuration. `environmentFile` is required and is passed to systemd
|
||||
at runtime; put `DATABASE_URL`, Redis credentials, and other secrets there,
|
||||
never in Nix module values or the Nix store. Non-secret Redis host and port
|
||||
options map to upstream `REDIS_SERVER_HOST` and `REDIS_SERVER_PORT`.
|
||||
|
||||
Default binding is `127.0.0.1:3011`. Perform initial administration through an
|
||||
SSH tunnel, for example `ssh -L 3011:127.0.0.1:3011 host`, then browse to
|
||||
`http://localhost:3011`. Add a reverse proxy separately only when remote access
|
||||
is intended.
|
||||
|
||||
## Upgrades and rollback
|
||||
|
||||
`affine-native-migrate.service` is required by and ordered before
|
||||
`affine-native.service`. Package or initial-seed changes restart the migration
|
||||
unit before the app, and the package wrapper owns the complete upstream
|
||||
predeploy procedure.
|
||||
|
||||
Database schema and AFFiNE data migrations are not reversed by switching to an
|
||||
older NixOS generation. Back up the dedicated database and state directory
|
||||
before upgrades. Production migration remains a separate, explicit operation.
|
||||
|
||||
AFFiNE backend source has its own license; review it before production use.
|
||||
This module does not grant production authorization or alter upstream license
|
||||
terms.
|
||||
|
||||
## hectic-lab host configuration
|
||||
|
||||
`nixos/system/hectic-lab/affine.nix` stages the reusable native module alongside
|
||||
the original deployment. `hectic.affineDeployment.nativeActive` defaults to
|
||||
`false`: the legacy Docker units and nginx port 3010 remain selected. The old
|
||||
configuration is preserved in `affine-docker.nix` for staging and rollback.
|
||||
Set `nativeActive = true` only after the final frozen-state restore and native
|
||||
verification; this removes the legacy unit declarations and selects nginx port
|
||||
3011. Source declarations alone are not evidence that production has migrated.
|
||||
|
||||
The host configuration intentionally uses isolated dependencies:
|
||||
|
||||
| Component | Unit | Endpoint/state |
|
||||
| --- | --- | --- |
|
||||
| AFFiNE | `affine-native.service` | `127.0.0.1:3011`, `/var/lib/affine-native` |
|
||||
| Migration | `affine-native-migrate.service` | Same user, environment and state |
|
||||
| PostgreSQL 16 | `affine-postgresql.service` | Unix socket `/run/affine-postgresql`, port 5433, `/var/lib/affine-postgresql` |
|
||||
| Redis | `redis-affine.service` | `127.0.0.1:6388` |
|
||||
| ChatGPT connector | `affine-chatgpt.service` | `127.0.0.1:3012`, separate protected state |
|
||||
|
||||
The database cluster does not listen on TCP and does not replace the host's
|
||||
shared `postgresql.service`. It uses peer authentication, a non-superuser role
|
||||
and database named `affine-native`, and pgvector `0.8.7` from the pinned
|
||||
official release. PostgreSQL pre-creates `vector` and `pgcrypto` as its cluster
|
||||
administrator. The cluster locale matches the existing Docker database's
|
||||
`en_US.utf8`; do not silently substitute a different collation.
|
||||
|
||||
Both AFFiNE units are gated by `/var/lib/affine-native/environment`. Create that
|
||||
file only after staging the correct database/config/storage. It must be
|
||||
protected outside Git and the Nix store. Its required connection settings are:
|
||||
|
||||
```text
|
||||
DATABASE_URL=postgresql://affine-native@localhost:5433/affine-native?host=/run/affine-postgresql
|
||||
AFFINE_INDEXER_ENABLED=false
|
||||
```
|
||||
|
||||
The database URL contains no password because the Unix socket uses peer auth.
|
||||
The environment file may also carry secrets; treat the entire file as private.
|
||||
|
||||
## Docker-to-native migration procedure
|
||||
|
||||
1. Build the source package, exact pgvector version, native service units and
|
||||
targeted checks before scheduling an outage. Inspect the activation plan;
|
||||
do not restart the shared PostgreSQL cluster or unrelated Redis instances.
|
||||
2. Inventory the running AFFiNE revision, database extensions/locale, workspace
|
||||
and user counts, config/private key, storage file manifest and nginx route.
|
||||
Never print secret values or document contents.
|
||||
3. Make an owner-only custom-format PostgreSQL backup and config/storage
|
||||
snapshot. Verify `pg_restore --list`, archive readability and checksums.
|
||||
A listed archive is not a tested restore or an offsite backup.
|
||||
4. Start only the dedicated PostgreSQL and Redis units. Restore a rehearsal
|
||||
dump into their isolated database, preserving role ownership. Pre-created
|
||||
extensions avoid giving the application superuser privileges. Use
|
||||
`pg_restore --exit-on-error --no-owner --no-acl --no-comments
|
||||
--role=affine-native`; investigate any error instead of ignoring it.
|
||||
5. Copy the complete Docker config and storage to
|
||||
`/var/lib/affine-native/.affine/{config,storage}`. Preserve `private.key`
|
||||
byte-for-byte. Give the native account ownership and private permissions.
|
||||
Update copied server/listen/port and Redis settings for native paths;
|
||||
preserve authentication, external URL and all encryption material.
|
||||
6. Run migration/startup against the rehearsal database and copied storage
|
||||
only. Never point staging workers at the live Docker database/storage.
|
||||
Verify `/info` reports `selfhosted` and compatibility `0.27.4`, then test
|
||||
authenticated workspaces, representative documents and stored attachments.
|
||||
7. Announce the write freeze. Stop all Docker AFFiNE application/worker writers
|
||||
without deleting its PostgreSQL volume. Take a fresh final dump and final
|
||||
config/storage snapshot after the freeze. Restore that final snapshot into
|
||||
a clean native database; stop staging units before replacing state.
|
||||
8. Start native migration and application units. Verify entity counts,
|
||||
checksums, login, documents, attachments and readiness before switching
|
||||
`hectic.affineDeployment.nativeActive` to `true` and nginx from port 3010 to
|
||||
3011. Inspect the activation plan and test nginx configuration first.
|
||||
9. Confirm the public HTTPS route, WebSockets/live editing and signup policy.
|
||||
Confirm the cutover removed/disabled the old Docker `affine.service` and
|
||||
`affine-frontend.service`. Retain their image/config/data and final snapshot;
|
||||
do not delete old state as part of cutover.
|
||||
10. Configure the [native ChatGPT connector](./affine-chatgpt.md) through AFFiNE's
|
||||
administrator API/UI and verify an actual AFFiNE AI request, not only a
|
||||
direct upstream probe.
|
||||
|
||||
Before native production writes, rollback can return nginx/application to the
|
||||
frozen Docker state. After native writes begin, that state is stale: rollback
|
||||
requires a new consistent export and compatible restore, not a proxy flip to
|
||||
an old database. NixOS generation rollback alone does not restore application
|
||||
data.
|
||||
|
||||
If SSH, package copying, extension build, rehearsal restore or verification is
|
||||
blocked, leave the Docker production route intact. Do not create the runtime
|
||||
environment marker or activate a half-prepared native application.
|
||||
|
||||
## Completed hectic-lab cutover: 2026-10-31
|
||||
|
||||
Production now explicitly sets `hectic.affineDeployment.nativeActive = true`.
|
||||
The activated persistent NixOS generation is:
|
||||
|
||||
```text
|
||||
/nix/store/6vp7qb6id8krb9l5ff1dkdi7nzxifhwd-nixos-system-hectic-lab-26.05.20261006.b253099
|
||||
```
|
||||
|
||||
Final write-frozen backup:
|
||||
|
||||
```text
|
||||
/var/backups/affine/native-cutover-20261031T231824Z
|
||||
```
|
||||
|
||||
The backup directory is `0700`; database/config/storage archives are `0600`.
|
||||
It includes the final database dump, verified archive listings, config and
|
||||
storage snapshots, previous generation references, and matching before/after
|
||||
data fingerprints. Keep it private. It is local recovery material, not an
|
||||
offsite backup.
|
||||
|
||||
Cutover verification matched all rows/fingerprints in `users`, `workspaces`,
|
||||
`workspace_members`, `workspace_pages`, `snapshots`, `updates`, and `blobs`:
|
||||
5 users, 2 workspaces, 5 memberships, 44 pages, 53 snapshots, 0 pending update
|
||||
rows, and 49 blob records. All 98 storage files (19,341,496 bytes) and the
|
||||
original `private.key` were preserved. Rehearsal authenticated document bytes
|
||||
and a 3,049,505-byte attachment matched the Docker source; final HTTPS login,
|
||||
document reads, attachment retrieval and frontend assets passed.
|
||||
|
||||
The final `switch-to-configuration switch` completed successfully. The Docker
|
||||
AFFiNE application/PostgreSQL/Redis containers are gone; their original
|
||||
`/var/lib/affine` state remains retained. The host Docker daemon still serves
|
||||
unrelated applications and was not removed.
|
||||
|
||||
The staging `test` activation encountered a pre-existing D-Bus reload timeout
|
||||
(the journal also records it on 2026-10-10); the bus remained active and was
|
||||
not restarted. The final cutover activation did not reload D-Bus and completed
|
||||
successfully. Shared `postgresql.service` remained active throughout.
|
||||
|
||||
The native [ChatGPT connector](./affine-chatgpt.md) is enabled through the
|
||||
workspace's persistent BYOK profile `ChatGPT subscription`. Text and function
|
||||
probes were verified, and an actual AFFiNE SSE chat returned the expected
|
||||
response with both explicit and automatic provider selection. Two authenticated
|
||||
WebSocket connections joined the workspace and read identical document state
|
||||
without writing documents.
|
||||
|
||||
After restarting both native AFFiNE and the connector, public login, document
|
||||
and attachment reads, two-client WebSocket reads, and an automatic-routed AI
|
||||
chat associated with an existing document passed again. Local validation also
|
||||
passed 61 connector tests, Pyright with its Nix Python environment, and the
|
||||
runtime, typography, native-module, production and connector Nix checks.
|
||||
@@ -0,0 +1,75 @@
|
||||
# AFFiNE document typography
|
||||
|
||||
The frontend source patch in `package/affine/gitea-document-typography.patch`
|
||||
adopts Gitea README typography without replacing BlockSuite's document model.
|
||||
At the default 16px body size, H1-H6 use 32, 24, 20, 16, 14 and 13.6px. Headings
|
||||
use 1.25 line height, 24px/16px section spacing, and H1/H2 dividers. Body text
|
||||
uses 1.5 line height and 16px paragraph spacing; nested lists remain compact.
|
||||
Quotes and inline code retain native AFFiNE colors and formatting.
|
||||
|
||||
The scale and spacing are inspired by Gitea's MIT-licensed
|
||||
[README markup stylesheet](https://github.com/go-gitea/gitea/blob/v1.27.3/web_src/css/markup/content.css).
|
||||
This is an independently authored, scoped BlockSuite patch, not a wholesale
|
||||
copy of that stylesheet; no vendored Gitea source files are changed.
|
||||
|
||||
The patch is limited to page mode. Canvas notes, embedded canvas previews and
|
||||
database block trees retain their existing typography. Below 640px, page text
|
||||
reflows to its viewport instead of following the intrinsic width of a wide
|
||||
table. Tables and databases retain their native horizontal scrollers. The
|
||||
existing sidebar toggle can be used to give the document the full phone width.
|
||||
|
||||
## Build and verify
|
||||
|
||||
```sh
|
||||
nix build .#affine-frontend-static --option post-build-hook ''
|
||||
NIXPKGS_ALLOW_UNFREE=1 nix build --impure .#checks.x86_64-linux.affine-typography --option post-build-hook ''
|
||||
```
|
||||
|
||||
The browser check uses the real source-built frontend with an isolated backend
|
||||
and anonymous, browser-local example documents. It covers light/dark desktop
|
||||
and phone layouts, heading metrics, colored text/highlights, inline code,
|
||||
editing, rich blocks, native canvas sizing and nested selector boundaries.
|
||||
Screenshots and computed-size results are retained in the check output.
|
||||
Fixture writes are restricted to the isolated loopback test server; the harness
|
||||
does not accept a remote URL override.
|
||||
The backend used by that check still requires explicit unfree evaluation.
|
||||
|
||||
## Current hectic-lab rollout
|
||||
|
||||
Since 2026-10-31, hectic-lab runs the source-built backend and patched frontend
|
||||
together through `hectic.services.affine` and `affine-native.service`. Its
|
||||
dedicated PostgreSQL, Redis and ChatGPT connector are native services as well.
|
||||
There is no production AFFiNE container or `affine-frontend.service` mount.
|
||||
See [native deployment and migration](./affine-native.md) for the cutover,
|
||||
verification and backup record. The frontend patch remains part of the same
|
||||
pinned AFFiNE source package; a read-only browser check after migration confirmed
|
||||
the real document's H2 blocks retain the 24px scale.
|
||||
|
||||
## Historical Docker rollout
|
||||
|
||||
The following describes the earlier frontend-only rollout, retained for the
|
||||
staging/rollback configuration. It is not the current production topology.
|
||||
|
||||
`affine-frontend-static` contains regular, copied web assets, including admin
|
||||
and mobile directories and upstream license notices. It does not contain
|
||||
symlinks into store paths that would be unavailable inside a container.
|
||||
|
||||
The existing Docker backend, database, Redis instance, image digests and data
|
||||
paths remain unchanged. A companion `affine-frontend.service` applies a Compose
|
||||
override mounting the source-built assets read-only at `/app/static`. It uses
|
||||
`up --detach --no-deps --force-recreate affine`: only the application container
|
||||
is reconciled. The main `affine.service` keeps its existing start/stop behavior.
|
||||
|
||||
Changing the frontend reloads the companion unit. Stopping/removing that unit
|
||||
recreates the application from the base Compose configuration, restoring the
|
||||
stock frontend. A restart of the parent stack reapplies the frontend afterward.
|
||||
Database credentials and keys remain generated runtime state; no secret values
|
||||
are embedded in the Nix store or repository by this frontend change.
|
||||
Frontend and backend release versions must match; the NixOS configuration
|
||||
asserts this before deployment.
|
||||
|
||||
Take a database/state backup before applying the first rollout, and verify that
|
||||
PostgreSQL, Redis and migration container IDs remain unchanged. No database
|
||||
upgrade or native-backend migration is part of this change. Application startup
|
||||
may perform its usual background work; this is not a claim that the process
|
||||
never writes to its database.
|
||||
@@ -0,0 +1,205 @@
|
||||
# Minecraft backups
|
||||
|
||||
`services.minecraft-backups` adds scheduled S3 archives to the Minecraft module.
|
||||
Neuro enables it for `vanilla`, `createAeronautics`, `wowMineMap`, and Horizon.
|
||||
Enabled nix-minecraft servers are discovered automatically. Horizon is registered
|
||||
explicitly because it runs a separate native engine.
|
||||
|
||||
Each server has a `minecraft-backup-<name>.timer`, scheduled every six hours
|
||||
with up to ten minutes of jitter. S3 retains regular timestamped archives for
|
||||
14 days under `minecraft/neuro/<name>/` in `backup-hectic-lab`.
|
||||
Horizon also keeps its existing native backups.
|
||||
|
||||
Set `services.minecraft-backups.onCalendar` to change the schedule. Its default
|
||||
is `"*-*-* 00/6:00:00"` (00:00, 06:00, 12:00, and 18:00 in the host timezone).
|
||||
S3 retention is configured separately with `services.minecraft-backups.s3.retentionDays`.
|
||||
|
||||
## Shutdown warnings
|
||||
|
||||
wowMineMap broadcasts chat warnings five minutes before a backup stop, one
|
||||
minute before it, and immediately before stopping. The countdown starts after
|
||||
the maintenance lock is acquired and pending uploads have succeeded. It waits
|
||||
240 seconds between the first two messages, then 60 seconds before the last.
|
||||
The server remains playable during this interval.
|
||||
|
||||
`services.minecraft-backups.servers.<name>.announcementCommand` enables these
|
||||
warnings. Its executable receives one plain-text message argument; wowMineMap
|
||||
delivers it through its existing Minecraft console using `say`. Other servers
|
||||
retain their previous behavior unless this option is set. Inactive servers
|
||||
receive no warnings and incur no countdown. A failed announcement aborts that
|
||||
backup before stopping or copying the server.
|
||||
|
||||
## Snapshot and local storage
|
||||
|
||||
A running server is shut down through its normal systemd stop command while
|
||||
rsync copies its data to a private staging directory. A failed or forced
|
||||
shutdown prevents the snapshot. The server starts again before compression
|
||||
or upload. An already inactive server stays inactive.
|
||||
|
||||
An exit trap and the backup unit's `ExecStopPost` restore a server that the backup
|
||||
stopped if copying fails or the backup is terminated. A `restart-needed` marker
|
||||
persists until starting the server succeeds.
|
||||
|
||||
Staging and pending archives live in `/var/lib/minecraft-backups/<name>/`.
|
||||
Staging remains for the next incremental copy. A completed archive is removed
|
||||
locally only after a successful upload. Failed uploads leave it for the next
|
||||
run, which retries pending archives before taking another snapshot.
|
||||
|
||||
Archives contain server data, including worlds and runtime lists such as
|
||||
whitelists and operators. Regenerated mods, libraries, resources, caches,
|
||||
logs, existing backups, and secret-bearing `server.properties` are excluded.
|
||||
Reapply the matching Nix configuration when restoring.
|
||||
|
||||
S3 cleanup only deletes names matching that server's timestamped archive format.
|
||||
Manual archives and other prefixes are preserved. Cleanup uses the same helper
|
||||
as PZ: individual object deletions and explicit validation of S3 deletion errors.
|
||||
|
||||
## Clean shutdown verification, 2026-11-22
|
||||
|
||||
The deployed stop script sends Minecraft's `stop` command and waits until
|
||||
the server exits. Minecraft 1.21.1 `MinecraftServer.stopServer` saves all
|
||||
players, disconnects them, saves all levels with flushing enabled, closes
|
||||
the levels, and releases world storage. The backup waits for systemd stop
|
||||
to finish and requires `Result=success` before rsync starts.
|
||||
|
||||
The last inspected production shutdown logged `Saving players` followed by
|
||||
`Saving worlds` at 17:02:56 UTC, then all chunks and dimensions saved at
|
||||
17:02:57 UTC. Thus a normal backup copies the final stopped state rather
|
||||
than combining a live inventory with an older frozen map. Process crashes,
|
||||
power loss and save errors are separate failure cases; systemd success alone
|
||||
does not certify that every mod or storage operation saved without error.
|
||||
|
||||
## wowMineMap live-backup investigation, 2026-11-16
|
||||
|
||||
Read-only inspection through `ssh neuro` confirmed that wowMineMap is running
|
||||
Minecraft 1.21.1 / NeoForge 21.1.250 with Sable 2.0.5 and Distant Horizons 3.3.3.
|
||||
Its data resides on ext4 at `/dev/nvme0n1p2`; there is no configured snapshot
|
||||
backend for this mount.
|
||||
|
||||
The Java process has seven Distant Horizons SQLite databases open across the
|
||||
dimensions, including their WAL and shared-memory files. The Azeroth main
|
||||
database was about 2.2 GB with a separate nonempty WAL. Copying these files
|
||||
independently is not a database snapshot.
|
||||
|
||||
One component was verified without stopping the game: Python's SQLite Backup
|
||||
API copied `world/data/DistantHorizons.sqlite`, opened with `mode=ro`, into an
|
||||
in-memory database. The copy reported journal mode `wal`, 1286 pages, six tables,
|
||||
and `PRAGMA quick_check` returned `ok`. No backup file was written on neuro.
|
||||
This verifies that database-copy mechanism, not a full-world restore.
|
||||
|
||||
Inspection with `javap` of the deployed Minecraft server and Sable jars found:
|
||||
|
||||
- `MinecraftServer.saveEverything` calls `PlayerList.saveAll` before applying
|
||||
the chunk-saving flags.
|
||||
- `PlayerList.remove(ServerPlayer)` calls `save(player)` during logout without
|
||||
consulting the world's `noSave` flag.
|
||||
- `MinecraftServer.saveAllChunks` also writes the main world metadata using
|
||||
`LevelStorageAccess.saveDataTag` outside the per-level skip-save logic.
|
||||
- Sable's `sable$saveSubLevels` injection runs before `ServerLevel.saveLevelData`,
|
||||
inside the level's skip-save guard. That particular hook is not evidence that
|
||||
Sable ignores `save-off`.
|
||||
|
||||
Consequently, `save-off` plus `save-all flush` does not make the entire server
|
||||
directory immutable while players keep playing. A file copy can combine frozen
|
||||
chunks with later player inventories or world metadata. SQLite snapshots alone
|
||||
do not provide a common checkpoint for those different data stores.
|
||||
|
||||
No live mode with guarantees equivalent to an orderly stopped-server copy has
|
||||
been established for this pack. The stop-based implementation has therefore
|
||||
not been replaced or deployed. A full-world live restore test was not run,
|
||||
because there is not yet a coordinated snapshot mechanism to test.
|
||||
|
||||
The next implementation step would be an in-process NeoForge checkpoint that
|
||||
coordinates world, player, Sable, and SQLite persistence, followed by a restore
|
||||
test on a disposable wowmine instance. Production was not stopped,
|
||||
restarted, sent save commands, or deployed during this investigation; the
|
||||
six-hour schedule and fourteen-day retention remain unchanged.
|
||||
|
||||
## Credentials and deployment
|
||||
|
||||
Before enabling the timers on neuro, provision a root-owned file with mode 0600:
|
||||
|
||||
```text
|
||||
/var/lib/minecraft-backups/s3-credentials
|
||||
```
|
||||
|
||||
Its contents use the systemd environment-file format:
|
||||
|
||||
```sh
|
||||
AWS_ACCESS_KEY_ID=...
|
||||
AWS_SECRET_ACCESS_KEY=...
|
||||
```
|
||||
|
||||
The key must allow listing the bucket and uploading/deleting objects under
|
||||
`minecraft/neuro/`. Keep the file outside the repository and `/nix/store`.
|
||||
A missing file prevents the backup from starting, before it stops any server.
|
||||
|
||||
The committed configuration does not provision this secret. Apply the neuro
|
||||
configuration after the file exists, then check:
|
||||
|
||||
```sh
|
||||
systemctl list-timers 'minecraft-backup-*'
|
||||
systemctl start minecraft-backup-vanilla.service
|
||||
journalctl -u minecraft-backup-vanilla.service
|
||||
```
|
||||
|
||||
## Restore
|
||||
|
||||
Stop that server's backup timer and game service. Download the chosen
|
||||
`minecraft-<name>-<timestamp>.tar.zst` from its S3 prefix. Preserve the current
|
||||
data directory separately before replacing anything.
|
||||
|
||||
Extract the archive into the server's data directory while the game is stopped.
|
||||
Archives contain paths relative to that directory. Restore file ownership to the
|
||||
game service's user (`minecraft` for Java servers, `horizon` for Horizon),
|
||||
reapply the matching Nix configuration and runtime secrets, then start the game
|
||||
and its backup timer.
|
||||
|
||||
## Isolated wowMineMap restore test
|
||||
|
||||
Neuro declares `wowMineMapRestore` as a separate, manually started Minecraft
|
||||
instance. It reuses the production NeoForge package, pinned wowmine
|
||||
modpack import, and shared modpack adjustments. It uses an 8 GB heap and reduced
|
||||
view/simulation distances for the test. Its directory is
|
||||
`/srv/minecraft/wowMineMapRestore`; its game socket is `127.0.0.1:25568`.
|
||||
RCON, public firewall access, and scheduled backups of this copy are disabled.
|
||||
It does not use the production source-map importer or reset service.
|
||||
|
||||
After deploying the neuro NixOS configuration normally, start the copy:
|
||||
|
||||
```sh
|
||||
ssh neuro 'systemctl start minecraft-server-wowMineMapRestore.service'
|
||||
ssh neuro 'journalctl -u minecraft-modpack-import-wowMineMapRestore -u minecraft-backup-restore-wowMineMapRestore -u minecraft-server-wowMineMapRestore -n 100 --no-pager'
|
||||
ssh neuro 'tail -n 80 /srv/minecraft/wowMineMapRestore/logs/latest.log'
|
||||
```
|
||||
|
||||
The first start installs the matching modpack, then downloads this exact object:
|
||||
|
||||
```text
|
||||
s3://backup-hectic-lab/minecraft/neuro/wowMineMap/minecraft-wowMineMap-20261117T172531Z.tar.zst
|
||||
```
|
||||
|
||||
The restore uses the existing root-only S3 credentials file. The key needs
|
||||
`GetObject` access in addition to the backup permissions above. It checks the
|
||||
compressed size (9,206,330,929 bytes), zstd integrity, archive paths, and the
|
||||
configured world's `level.dat`. Backup data, including player and mod state,
|
||||
overrides bootstrap configuration; regenerated mods remain installed.
|
||||
It refuses to replace an existing world. A completion marker binds the
|
||||
restored directory to this S3 object, and subsequent starts skip both bootstrap
|
||||
and restoration so that restored configuration is preserved.
|
||||
|
||||
Connect using the matching wowmine client through an SSH tunnel:
|
||||
|
||||
```sh
|
||||
ssh -N -L 25568:127.0.0.1:25568 neuro
|
||||
```
|
||||
|
||||
Use `localhost:25568` in Minecraft. Confirm startup reaches `Done`, enter the
|
||||
restored Azeroth dimension, and inspect known builds, player inventory, and mod
|
||||
objects. A running systemd unit alone does not prove that the saved world
|
||||
loaded correctly. These real-world checks remain to be performed after deploy.
|
||||
Stop the test when finished:
|
||||
|
||||
```sh
|
||||
ssh neuro 'systemctl stop minecraft-server-wowMineMapRestore.service'
|
||||
```
|
||||
@@ -0,0 +1,212 @@
|
||||
# wowmine v16 Delight selection
|
||||
|
||||
Source: `minecraft/pack/wowmine-v16-delight-rules-r2.mrpack`.
|
||||
SHA-256: `a7f474f1431719c6b11707fec05db8b571cb4d1b84d58c20962e771881b0109e`.
|
||||
|
||||
The survival successor removes Afterlife's Delight from both sides. See
|
||||
[minecraft-survival-v16.md](minecraft-survival-v16.md) for the source pin,
|
||||
backup, player-state checks and deployment evidence. The inventory below
|
||||
records the original v16 selection.
|
||||
|
||||
The unbreakable netherite knife addon is required on both sides. Its upstream
|
||||
client-side metadata is incorrect: a real connection failed registry sync without
|
||||
the client JAR. The archive corrects that metadata; the JAR remains unmodified.
|
||||
|
||||
Minecraft remains 1.21.1; NeoForge remains 21.1.250. Existing base mods keep their versions.
|
||||
Selection covers dedicated Farmer's Delight addons and integrations for installed base mods,
|
||||
plus required libraries. Integrations requiring new large gameplay mods are excluded.
|
||||
Modrinth version metadata and actual JAR dependencies were checked; every downloaded JAR
|
||||
was verified against its published SHA-512. Native server boots and the actual Java packwiz
|
||||
installer were used to reject incompatible combinations.
|
||||
|
||||
The pack removes FTB Ultimine, Create Ultimine, and their now-unused FTB Library.
|
||||
Fresh clients hide the minimap. Updates preserve personal minimap, options and DH settings.
|
||||
The separate `wowmine-rules` world datapack enables `mobGriefing` on load and reapplies
|
||||
`xaerominimap:no_minimap` every second to everyone except Boss UUID
|
||||
`1c189af5-2713-3fa6-bcc4-893dfadedfa4`. Boss can enable the minimap personally.
|
||||
The same policy also applies `xaeroworldmap:no_world_map`, blocking the large
|
||||
map on M for everyone except that UUID. Both restriction effects are cleared
|
||||
from Boss. This server rule needs no new client archive.
|
||||
DH cache identities remain `wos` / `wos-w1`.
|
||||
|
||||
The same server datapack filters
|
||||
`cuttingdelight-dev:recipe/cutting/duplicate1.json` from lower-priority packs.
|
||||
Cutting Delight 1.1.1 ships that recipe, which turns raw beef into cooked beef
|
||||
on a cutting board with a knife. The normal Farmer's Delight beef-to-two-mince
|
||||
recipe and both cutting-board conversion recipes remain available. No JAR is
|
||||
modified, and this restriction needs no new client archive.
|
||||
The remaining duplication and balance candidates, exact recipe IDs, audit
|
||||
boundaries and runtime verification are recorded in
|
||||
[minecraft-recipe-audit.md](minecraft-recipe-audit.md).
|
||||
|
||||
## Added artifacts
|
||||
|
||||
| Project | Version |
|
||||
| --- | --- |
|
||||
| `afterlifes-delight` | `1.1.2` |
|
||||
| `algae-delight` | `0.2.1` |
|
||||
| `arbitrary-delight` | `1.2.1` |
|
||||
| `aures-farmers-structures` | `1.0.2` |
|
||||
| `autochefs-delight` | `2.0.3+neoforge` |
|
||||
| `bakersdelight` | `1.0.2` |
|
||||
| `baldej-delights` | `0.2.0` |
|
||||
| `barbeques-delight-forge` | `1.3.0` |
|
||||
| `blockdonalds` | `0.3-1.21.1` |
|
||||
| `bobo-lib` | `1.3.1-1.21.1` |
|
||||
| `bountifulharvest` | `1.0.0` |
|
||||
| `brewin-and-chewin` | `4.5.0+1.21.1-neoforge` |
|
||||
| `caves-delights` | `1.3.1` |
|
||||
| `chefs-delight` | `1.0.6-neoforge-1.21.1` |
|
||||
| `choppers-delight` | `1.2.2` |
|
||||
| `cocktails-delight` | `1.1.12` |
|
||||
| `coffee-delight` | `1.4.1` |
|
||||
| `cooksdelight` | `21.1.2` |
|
||||
| `corn-delight` | `1.2.10-1.21.1` |
|
||||
| `crabbers-delight` | `1.3.1` |
|
||||
| `create-fd-dough` | `1.0.0` |
|
||||
| `create-snickers` | `0.1.3` |
|
||||
| `cuisine-delight` | `1.2.10` |
|
||||
| `cultural-delights` | `0.19.8-1.21.1` |
|
||||
| `cutt_promix` | `1.0-relase` |
|
||||
| `cutting-delight` | `1.21.1-1.1.1` |
|
||||
| `delight-lib` | `26.05.18-1.21-neoforge` |
|
||||
| `delight-o-flight` | `1.21.1-1.4.3` |
|
||||
| `delta-delight` | `1.3.926` |
|
||||
| `display-delight` | `1.7.0` |
|
||||
| `doris-delight` | `1.0.0` |
|
||||
| `dough-slime-ball-recipe` | `1.0+mod` |
|
||||
| `dungeons_delight` | `1.5.3` |
|
||||
| `easters-delight` | `1.2.1` |
|
||||
| `egg-delight` | `1.2` |
|
||||
| `enders-delight` | `1.3.1` |
|
||||
| `ends-delight` | `2.6.1+neoforge.1.21.1` |
|
||||
| `even-more-delights` | `1.0.2` |
|
||||
| `expanded-delight` | `0.1.4-neoforge` |
|
||||
| `extradelight` | `2.7.2` |
|
||||
| `farmers-cutting-everything` | `1.21.1-1.0.1` |
|
||||
| `farmers-delight-contracts-feasts` | `1.0.3` |
|
||||
| `farmers-delight-extended` | `1.21.1-0.2.2` |
|
||||
| `farmers-delight-meal-mastery` | `1.1.2` |
|
||||
| `farmers-delight-x-create-unbrekable-netherite-knife` | `3` |
|
||||
| `farmers-knives` | `1.21.1-4.2.0` |
|
||||
| `farmers-respite-unofficial-port` | `3.0.1` |
|
||||
| `farmers-spell` | `1.0.7.1-1.21.1` |
|
||||
| `fast-delights` | `0.3.1` |
|
||||
| `fastfood-delight-unofficial` | `1.21.1-1.0.5` |
|
||||
| `festive-delight` | `2.0.0` |
|
||||
| `fizzy-delight` | `1.1` |
|
||||
| `frights-delight` | `neoforge-1.21.1-1.4.8` |
|
||||
| `fruits-delight` | `1.2.14` |
|
||||
| `fungi-delight` | `1.3` |
|
||||
| `hearth-and-harvest` | `1.4.3` |
|
||||
| `immortalers-delight` | `1.21.1-neoforge-1.0.10` |
|
||||
| `kazakh-delight` | `1.0.0` |
|
||||
| `kitchen-projectiles` | `1.0.11+mc1.21.1+neoforge` |
|
||||
| `korean-delight` | `1.0.0` |
|
||||
| `kvass-delight` | `1.0.0` |
|
||||
| `large-meals` | `1.21.1-1.0.1` |
|
||||
| `legume-delight` | `1.21.1-1.4.0` |
|
||||
| `luncheon-meat-s-delight` | `1.21.1-1.0.6` |
|
||||
| `mangos-compat-delight` | `1.0.0` |
|
||||
| `mexicans-delight` | `2.0.0` |
|
||||
| `millet-delight` | `0.0.3-beta` |
|
||||
| `mmlib` | `1.3.16-1.21.1` |
|
||||
| `more-delight` | `26.05.20a-1.21-neoforge` |
|
||||
| `my-nethers-delight` | `1.10.4.1` |
|
||||
| `nearby-delight` | `1.6.0` |
|
||||
| `new-years-delight-a-farmers-delight-add-on` | `nydelight-1.21.1-1.1.0` |
|
||||
| `nomads-delight` | `1.0.2` |
|
||||
| `oceans-delight` | `1.0.4` |
|
||||
| `onion-onion` | `3.1.0` |
|
||||
| `pantrywork` | `0.9.0+mc1.21.1` |
|
||||
| `peruvians-delight` | `1.21.1-1.3.0` |
|
||||
| `pizzadelight` | `1.21.1-2.0.2` |
|
||||
| `provisioners-delight` | `0.9.31` |
|
||||
| `ramadan-delight` | `1.7` |
|
||||
| `rhubarb-delights` | `0.2` |
|
||||
| `right-click-and-milk` | `1.0.3` |
|
||||
| `roll-delight` | `1.3.0` |
|
||||
| `runiclib` | `5.0.7` |
|
||||
| `rustic-delight` | `1.7.1` |
|
||||
| `seed-delight` | `1.0.1` |
|
||||
| `slavic-delight` | `0.3.2` |
|
||||
| `sniffers-sniffs-delights` | `neoforge-1.1+mc1.21` |
|
||||
| `sodd-delight-a-farmers-delight-add-on` | `1.0.0` |
|
||||
| `storage-delight` | `26.09.17-1.21-neoforge` |
|
||||
| `sunflower-delight` | `1.0.2n` |
|
||||
| `teyvats-delight` | `1.2.0` |
|
||||
| `trailtales-delight` | `2.4` |
|
||||
| `tweaks-delight` | `26.06.18-1.21-neoforge` |
|
||||
| `ubes-delight` | `neoforge-1.21.1-0.4.15` |
|
||||
| `valheim-delight` | `1.0.0` |
|
||||
| `vanilla-delights` | `1.21.1-1.0.6` |
|
||||
| `vintage-delight-kots` | `0.3.3` |
|
||||
| `yafda` | `0.21` |
|
||||
| `zena-desi-delight` | `1.21.1-0.2` |
|
||||
|
||||
## Rejected during runtime checks
|
||||
|
||||
These versions were not shipped. Existing base mods were not removed to accommodate them.
|
||||
|
||||
| Project | Observed reason |
|
||||
| --- | --- |
|
||||
| `bowling-bulb` | Native loader requires absent Nirvana and EMI; broken access transformer |
|
||||
| `compat-delight` | References missing FD ShepherdsPieBlock class |
|
||||
| `cooks-collection` | Native loader declares incompatibility with Cultural Delights |
|
||||
| `create-slice-and-dice-growth-accelerator` | References absent old SprinkleBehaviour class; installed4.3.3 uses new behaviour API |
|
||||
| `crockercorp-delight` | Requires absent Minestuck classes; dependency omitted by author |
|
||||
| `custombrewrecipes` | Unused after Vietnam addon exclusion |
|
||||
| `delightful-creators` | JDI captured crash in generated cooking_fallback/mooncake_delight/cooking/milk_tea_mooncake: empty Create sequence ingredients |
|
||||
| `delightful-fares` | Requires absent Bountiful Fares classes |
|
||||
| `dumplings-delight-rewrapped` | References missing celery_seeds, breaking global SereneSeasons autumn crop tag |
|
||||
| `engineers-delight` | Recipes require absent Immersive Engineering serializer; no supported base installed |
|
||||
| `farmers_attributes` | General farming attribute API; no selected addon requires it |
|
||||
| `farmers-cutting-collection` | Unconditional recipes for absent BetterEnd/BetterNether/Biomes O Plenty/Regions Unexplored bases |
|
||||
| `farmers-delight-kacchi` | Common setup loads client RenderType on dedicated server |
|
||||
| `farmers-heater` | Requires absent Central Heater gameplay mod |
|
||||
| `farmers-pizzeria` | Overrides Brewin and Chewin pizza recipe with zero-byte invalid JSON |
|
||||
| `froot-trees` | Malformed core berry tag JSON |
|
||||
| `gan_delight` | Invalid JSON in core steamed pork recipe |
|
||||
| `gensokyo-delight-youkais-feasts` | Creates c:butter -> c:foods/butter cycle with ExtraDelight, breaking shared butter tag |
|
||||
| `horizon-delight` | Brewin compat initializes BnC foods before effect registry, crashing registration |
|
||||
| `hybrid-api` | Unused after Hybrid addon exclusion |
|
||||
| `hybrid-delights` | Only integrates absent Hybrid Labs gameplay mods |
|
||||
| `lodestonelib` | Unused after Miners Delight rejection; Veil shader link failure |
|
||||
| `miners-delight` | Required Lodestone shaders fail to link with installed Veil renderer |
|
||||
| `mooncake-delight` | Core mooncake and pepper_salt tags reference dozens of missing own items |
|
||||
| `muffins-oven-api` | Same eager BlockEntityType mixin; only needed by rejected Thai addon |
|
||||
| `muffins-thais-delight` | BlockEntityType mixin eagerly reads unbound Apotheosis registry holder |
|
||||
| `oaks-delight` | Invalid JSON in core cleaver crafting recipes |
|
||||
| `sauce-delight` | Create6.0.10 fluid result codec incompatible |
|
||||
| `syals-delight` | Required tags reference absent UnusualFoodsDelight/ManorsBounty/LTC2/GTCEu items |
|
||||
| `touhoupixelcanteen` | Loads ClientTooltipEvent on dedicated server |
|
||||
| `vegan-delight` | Create6.0.10 integration fluid/item recipe codec incompatible |
|
||||
| `vietnams-delight-reborn` | Native loader discourages combination with Coffee Delight |
|
||||
| `wizardry-delight` | Real client title shows Sodium incompatibility: replaces unsupported terrain shaders |
|
||||
|
||||
Other exclusions include duplicate mod IDs, unsupported loader versions, and integrations
|
||||
for absent bases such as Aether, Alex's Mobs, Aquaculture, Croptopia, Goety, Immersive
|
||||
Engineering, Minestuck, and Twilight Forest. No dependency version validation was bypassed.
|
||||
|
||||
## Verification scope and upstream data warnings
|
||||
|
||||
Loader startup, real player login, registry synchronization, updater preservation,
|
||||
and the minimap rule are tested. These checks do not certify every recipe or loot
|
||||
rule supplied by the added projects.
|
||||
|
||||
The private runtime still reports nonfatal upstream data errors:
|
||||
|
||||
- Farmer's Knives emits recipes for knives from absent optional base mods.
|
||||
- Farmer's Spell includes Create fluid recipes using the old `neoforge:fluid`
|
||||
encoding and Botany Pots integration entries without that base mod.
|
||||
- Dungeons Delight has several loot modifiers using the removed
|
||||
`minecraft:random_chance_with_looting` condition; those modifiers are skipped.
|
||||
- Even More Delights references `c:mushrooms` as an item in one cod recipe.
|
||||
- Some addons emit unguarded optional recipes for Sawmill, Casualness Delight,
|
||||
Vegan Delight, and Kaleidoscope Cookery when those mods are absent.
|
||||
- Some recipe overrides use an unregistered `neoforge:never` condition.
|
||||
|
||||
The server and clients remain able to load and connect. These data errors were
|
||||
not hidden or repaired by modifying third-party JARs. The original base pack also
|
||||
reports unrelated Design n' Decor loot-table and class-selection function errors.
|
||||
|
||||
@@ -0,0 +1,138 @@
|
||||
# Immersive Portals v17
|
||||
|
||||
Original v17 source: `wowmine-v17-immersive-portals.mrpack`, SHA-256
|
||||
`f958597c4bed2da74d3e4c1d52b2773e2292fb9c3d1a4f42ccda76b9c620a9de`.
|
||||
The published upstream artifact is UpperMoon0 Community Edition6.1.3.1,
|
||||
SHA-256 `da2fa1d90eae031e34690a64c9cd75ed3b74d47325825f8f38c0419e1220bca2`.
|
||||
The older official NeoForge6.0.7 targets Sodium classes absent from this pack.
|
||||
|
||||
The release adds exactly one JAR to both sides. Minecraft1.21.1,
|
||||
NeoForge21.1.250, all old mod downloads and all override payloads remain
|
||||
unchanged except client version metadata. Cloth Config15.0.140 already exists
|
||||
on both sides. Expected counts are238client and230server JARs, including the
|
||||
existing server-only World Policy and Sleep Time Skip.
|
||||
|
||||
## Routing and existing worlds
|
||||
|
||||
World Policy1.1.0 handles IP's own intrinsic portal generation rather than
|
||||
relying only on vanilla `NetherPortalBlock.getPortalDestination`. Its mixin
|
||||
rewrites the two forward generators and their source selection to
|
||||
`crafting_azeroth:azeroth` and `wowmine:void`, with both ratios1. Reverse
|
||||
generations inherit these keys and ratios. Normal/adaptive mode dispatch and
|
||||
the built-in portal-helper generation remain in place.
|
||||
|
||||
The server selects normal Nether portal mode and disables the crouch-to-vanilla
|
||||
shortcut. End portal mode remains vanilla, preserving the existing Azeroth
|
||||
return policy. The old Nether, End, Outland, player data and map are retained.
|
||||
No alternative worlds are enabled by this CE artifact.
|
||||
|
||||
Existing vanilla purple portal fields do not automatically become IP entities.
|
||||
To reuse an old pair, extinguish both fields by briefly breaking/replacing one
|
||||
frame block at each end, then reignite. IP can then match empty frames; an
|
||||
occupied vanilla destination instead causes a warning and new-frame placement.
|
||||
|
||||
## Frameless spaces and rendering
|
||||
|
||||
The built-in Portal Wand item is `immersive_portals:portal_wand`. An operator
|
||||
can obtain it with `/give @s immersive_portals:portal_wand` and configure
|
||||
frameless openings. The existing void dimension can hold rooms linked through
|
||||
these openings. Portal commands also include `create_scaled_box_view`.
|
||||
The release does not grant commands, change player game modes, or add an
|
||||
automatic personal-room survival recipe.
|
||||
|
||||
Sodium0.8.13, Iris1.8.14-beta.1, Distant Horizons3.3.3 and Pehkui3.8.3 remain
|
||||
installed. DH deliberately cancels LOD rendering inside portal views; ordinary
|
||||
nearby Minecraft geometry is used there. Main-view DH cache identities remain
|
||||
`wos` and `wos-w1`. A software OpenGL test establishes rendering functionality,
|
||||
not performance on a player's GPU.
|
||||
|
||||
## Release checks
|
||||
|
||||
The source builder verifies every old downloaded-file entry and override byte.
|
||||
Actual Java packwiz fresh installation and v16 upgrade both installed238JARs,
|
||||
verified the new mod, retained every old mod hash and preserved personal options,
|
||||
DH settings and minimap configuration.
|
||||
|
||||
Native build/copy/dry-activation succeeded. Isolated real-client/server QA passed
|
||||
24 checks on the exact tall Azeroth type: real player round trip, active cow and
|
||||
arrow crossings, new-frame fire ignition, four intrinsic/adaptive routes, and
|
||||
frameless views from two angles. NeoOrigins Tiny retained native scale0.5,
|
||||
width0.3 and height0.9. Main inspected all four final screenshots, including
|
||||
the unchanged published Bliss2.1.2 shader through Iris. DH remained active.
|
||||
Software OpenGL establishes functionality; no GPU performance claim is made.
|
||||
Evidence is retained under `/tmp/wowmine-immersive-qa`.
|
||||
|
||||
Native profile:
|
||||
`/nix/store/814f6qg1alfj72h55wqgsqjnc4hndsw2-nixos-system-neuro-26.05.20261006.b253099`.
|
||||
Original immutable public pack release:
|
||||
`e969385695e6baa55961b6e45d5e69b24fc152de8a691df2a71af5c791d9e382`.
|
||||
The client channel was switched after direct server checks passed. Installed
|
||||
230JARs match the pinned source and two server-only additions; all228 unrelated
|
||||
old JARs,20 player/stat/advancement records,7255 region files,23 datapack files
|
||||
and access lists are preserved. Seed, spawn, world name and hardcore flag match
|
||||
the cold copy. Sleep remains100%, eight selective Create types and DH identities
|
||||
remain unchanged. No project commit is part of this change.
|
||||
|
||||
The aggregate NixOS activation returned4 because the unchanged
|
||||
`ollama-model-loader.service` failed. Minecraft itself passed direct integrity,
|
||||
RCON dimension/sleep and backup-timer checks. Ollama was not modified.
|
||||
|
||||
The deployment uses the shared backup lock and a verified cold recovery copy
|
||||
on the workstation under
|
||||
`/home/yukkop/.local/share/hearth-backups/wowmine-before-v17-20261123`.
|
||||
An online rsync pre-seed avoids transferring the whole map during downtime.
|
||||
After stopping the server, every copied file is checked against a fresh source
|
||||
SHA-256 manifest before native activation. This retains neuro's10GiB reserve.
|
||||
The verified recovery copy contains9376files. It must not be removed with
|
||||
temporary QA runtimes. Sources, JSON receipts, logs and four inspected screenshots
|
||||
remain under `/tmp/wowmine-immersive-qa`; disposable game runtimes are removed.
|
||||
|
||||
## Client culling hotfix
|
||||
|
||||
Client revision `v17-ip-culling-fix` preserves Sodium's original cave-culling
|
||||
argument outside portal rendering. Upstream CE6.1.3.1 replaced it with `false`
|
||||
even in the ordinary main view. The portal-specific branch remains unchanged:
|
||||
|
||||
```java
|
||||
boolean doUseOcclusionCulling = PortalRendering.isRendering()
|
||||
? PortalRendering.shouldEnableSodiumCaveCulling() : originalValue;
|
||||
```
|
||||
|
||||
Only `MixinSodiumOcclusionCuller.class` changes in the upstream JAR. The complete
|
||||
source diff, attribution and original license are retained inside the artifact.
|
||||
Its SHA-256 is
|
||||
`6a686c51e13cec7620964861c3bc6572019e5a08b7aadf3530b5cef56ff6fc1f`.
|
||||
The mod and network protocol version remain6.1.3.1.
|
||||
|
||||
Source `wowmine-v17-ip-culling-fix.mrpack` has SHA-256
|
||||
`ad9b753d59517483341a66cd1a5beca93310a938b99c4059bd97c1069df35d90`.
|
||||
It retains the original server download and supplies the patched JAR only through
|
||||
`client-overrides`. Existing server activation, worlds, routing, sleep, Create
|
||||
rules and DH identities are unchanged. Client JAR count remains238.
|
||||
The immutable client pack release is
|
||||
`9ed30864f882c3fd5b17003f1638b59b1f865e90dd6b5b8798ceaa88449e8d92`.
|
||||
|
||||
A component probe failed on the original argument handling, passed with the fix,
|
||||
and failed again after restoring the original. Actual NVIDIA RTX3050Ti captures
|
||||
with Bliss, view distance18 and window2560x1369 measured17.23FPS before,
|
||||
38.18FPS after, and33.52FPS in a repeat after restoring this fix. Rendered sections
|
||||
fell from2077 to approximately1080. The player confirmed destination visibility
|
||||
and a successful portal round trip on the restored fix.
|
||||
|
||||
These captures establish an improvement; they do not establish restoration of
|
||||
the reported earlier60FPS. The repeat began shortly after world entry, and a
|
||||
requested warmed capture was not supplied before the game closed. Remaining
|
||||
frame cost has not been attributed to a particular IP hook. An additional
|
||||
framebuffer-preparation experiment did not demonstrate benefit and is excluded.
|
||||
Flywheel's shader-related backend warning also occurs without IP and does not
|
||||
prove a new global backend regression.
|
||||
|
||||
The final local Java packwiz upgrade passed with the exact patched JAR,
|
||||
all237 unrelated old mod hashes, and personal options, DH and minimap settings
|
||||
preserved. All682 public managed payloads, archives, checksums and the download
|
||||
page matched the staged release. Actual HTTPS fresh installation and the public
|
||||
updater on the already-fixed client both passed with238JARs and exact old mod
|
||||
hashes; the existing client's personal options, DH and minimap bytes remained
|
||||
unchanged. The original-v17-to-hotfix transition was exercised locally with the
|
||||
same payloads. These are delivery checks, not additional performance measurements.
|
||||
Evidence and recovery copies are retained under `/tmp/wowmine-ip-fps`.
|
||||
@@ -4,7 +4,10 @@ This file records only observed evidence, actions, and verification results.
|
||||
An entity appearing in a stack trace is a trigger-path observation, not a
|
||||
proven root cause.
|
||||
|
||||
## 2026-09-19 — WorldOfSosal crashes in Sable block-change handling
|
||||
Current player address: `wowmine.bfs.band` (no port). Addresses inside dated
|
||||
incidents below record the endpoints used at the time.
|
||||
|
||||
## 2026-09-19 — wowmine crashes in Sable block-change handling
|
||||
|
||||
### Impact
|
||||
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
# Craftable Loot Chests recipes
|
||||
|
||||
`wowmine-rules/pack.mcmeta` filters recipe resources in the
|
||||
`craftable_loot_chests` namespace with the unique `recipe/recipe_sealed_`
|
||||
prefix. Installed version1.0.0 contains18matching files for coal, diamond,
|
||||
food, gold, iron, lapis, netherite and village chests, including alternatives.
|
||||
The original server loads16of those recipes; both coal recipes are already
|
||||
unloaded. All18resource files are covered by the filter.
|
||||
|
||||
The mod stays installed. Item/block registrations, loot resources, existing
|
||||
placed chests and inventory items are not removed.
|
||||
|
||||
Keep the path prefix narrow. Minecraft1.21.1 ResourceFilterSection tests
|
||||
namespace and path independently across its block list. A broad `recipe/.*`
|
||||
path in this shared pack would also filter recipes from other namespaces
|
||||
already listed there. Validation must compare all other RecipeManager IDs,
|
||||
not only check that this mod's recipes disappeared.
|
||||
|
||||
Verification uses separate cold starts of a matching disposable server and
|
||||
compares RecipeManager IDs, item/block registrations, loot resources and a
|
||||
chest saved before applying the filter. Native deployment likewise restarts
|
||||
the server. A hot-reload trial failed on a separate duplicate
|
||||
`mango_compat_delight:cutting/stripped_cinnamon_log` registration; this change
|
||||
does not attempt to fix that mod's reload behavior.
|
||||
|
||||
Cold-start comparisons also exposed a generated Create Dragons Plus polishing
|
||||
recipe occasionally missing. Its provider asynchronously saves resources into
|
||||
an unsynchronized HashMap. QA uses `-Dmax.bg.threads=1` for both baseline and
|
||||
filtered starts to keep the generated data stable while retaining the strict
|
||||
all-other-recipe comparison. This JVM setting is test-only.
|
||||
|
||||
The final strict comparison passed: 21,528 recipes became21,512, with exactly
|
||||
the16loaded Craftable Loot Chests recipes removed and no other recipe IDs
|
||||
added or lost. All25registered mod items,16blocks and28loot resources remained
|
||||
equal. A placed sealed diamond chest survived the filtered cold restart with
|
||||
the same block state. Existing live rules were copied into the native snapshot
|
||||
before adding the filter, preserving all six prior restrictions.
|
||||
@@ -0,0 +1,99 @@
|
||||
# wowmine live 3D map
|
||||
|
||||
The wowmine runtime rename was deployed on 2026-11-18. Renderer, space-guard
|
||||
timer are active under their canonical names. Moving all
|
||||
73,667 state entries preserved contents, inodes, ownership and modes; tile,
|
||||
data and render-checkpoint files were retained. One renderer is active.
|
||||
The public settings endpoint returns HTTP 200 with both map IDs. Initial
|
||||
rendering continues; full coverage is not claimed. Evidence:
|
||||
`/tmp/wowmine-rename/runtime-result.md` and `runtime-evidence/`.
|
||||
The initial rollout below predates this rename; old evidence paths and
|
||||
immutable store basenames remain historical.
|
||||
|
||||
The website links to `https://wowmine.bfs.band:8443/wowmine/map/` on neuro.
|
||||
BlueMap 5.29 CLI reads the running server's saved world on neuro:
|
||||
|
||||
- `crafting_azeroth:azeroth`, displayed as **Азерот**.
|
||||
- `crafting_azeroth:outland`, displayed as **Запределье**.
|
||||
|
||||
Only these dimensions are published. This is saved block geometry, not a
|
||||
static illustration. Unsaved changes cannot appear until Minecraft writes
|
||||
them. The standalone renderer does not publish live player locations.
|
||||
|
||||
Open **Menu → Maps** to switch dimensions. Drag to move, rotate the camera,
|
||||
and use zoom controls to inspect terrain. Unrendered areas initially remain
|
||||
empty; vertical walls can appear along incomplete coverage boundaries.
|
||||
|
||||
## Services and limits
|
||||
|
||||
`nixos/system/neuro/minecraft/bluemap.nix` defines
|
||||
`wowmine-bluemap.service`. It uses Java 25, a pinned CLI JAR, two render
|
||||
threads, a 3 GiB Java heap, 200% CPU quota, low CPU/I/O priority, and a 5 GiB
|
||||
cgroup memory limit. Minecraft's server directory is mounted read-only in
|
||||
the renderer's namespace. Its writable state lives exclusively under
|
||||
`/var/lib/wowmine-bluemap`, with separate private data and public web roots.
|
||||
|
||||
The renderer watches region files, with a 60-second update cooldown and a
|
||||
five-minute periodic region check. A full rescan is scheduled every 1440
|
||||
minutes. These settings do not promise a fixed end-to-end delay during the
|
||||
initial render or a large update backlog.
|
||||
|
||||
A separate timer checks free disk space each minute and stops only BlueMap
|
||||
below 20 GiB free. Free space must be restored before manually starting
|
||||
BlueMap again. Minecraft is not stopped by this guard.
|
||||
|
||||
`nixos/system/neuro/wowmine-web.nix` serves the map through local nginx.
|
||||
The former hectic-lab SSH proxy is retired:
|
||||
|
||||
```text
|
||||
HTTPS :8443 /wowmine/map/
|
||||
→ neuro nginx :443
|
||||
→ neuro 127.0.0.1:8100
|
||||
```
|
||||
|
||||
No new public renderer port is opened. Nginx streams map events without proxy
|
||||
buffering. Only GET/HEAD are permitted. The Minecraft endpoint remains
|
||||
`wowmine.bfs.band:35565`.
|
||||
|
||||
## Initial rollout, November 18, 2026
|
||||
|
||||
Both maps were seeded with actual bounded renders around their starting
|
||||
coordinates, then unrestricted initial rendering was started in the managed
|
||||
service. The initial full render is **not complete**. Its early estimate was
|
||||
several days; the estimate changes with terrain density and server load.
|
||||
The presence of both map names does not establish full-world coverage.
|
||||
|
||||
Scoped runtime units were installed in `/etc/systemd/system.control` on both
|
||||
hosts, with their store dependencies GC-rooted under
|
||||
`/nix/var/nix/gcroots/worldofsosal-bluemap`. The Nix modules reproduce the
|
||||
configuration on a future normal deployment. No system-wide activation or
|
||||
Minecraft restart was performed for this rollout.
|
||||
|
||||
The existing deployed website, including its theme controls, was preserved.
|
||||
Only two links and the map proxy locations were added. The scoped Nginx unit
|
||||
points to `/nix/store/rj30dz9g052fa0044m6ran5wdfjlji8c-nginx.service/nginx.service`.
|
||||
Map state is persistent and intentionally outside Git.
|
||||
|
||||
## Operations and verification
|
||||
|
||||
```sh
|
||||
ssh neuro systemctl status wowmine-bluemap --no-pager
|
||||
ssh neuro journalctl -u wowmine-bluemap -n 30 --no-pager
|
||||
ssh neuro systemctl status wowmine-bluemap-space-guard.timer --no-pager
|
||||
ssh neuro df -h /var/lib/wowmine-bluemap
|
||||
ssh neuro du -sh /var/lib/wowmine-bluemap/web
|
||||
curl -fsS https://wowmine.bfs.band:8443/wowmine/map/settings.json
|
||||
```
|
||||
|
||||
Actual geometry for both dimensions was inspected in a WebGL browser at phone
|
||||
and desktop sizes. Automatic updating was tested separately on a copied region:
|
||||
after adding a gold-block section to that isolated copy, the continuously
|
||||
running watcher regenerated mesh geometry within 6.142 seconds with a two-second
|
||||
test cooldown. Vertex count changed from 136368 to 145584 and maximum vertex
|
||||
height from 122 to 144. No manual rerender or process restart triggered it.
|
||||
This demonstrates the mechanism, not production latency with its larger queue.
|
||||
|
||||
Rollout evidence and reproducible isolated test scripts are retained locally
|
||||
under `/tmp/worldofsosal-bluemap/`; raw update evidence is
|
||||
`update-artifacts.tar.gz`. These temporary artifacts are not needed to run
|
||||
the persistent services.
|
||||
@@ -0,0 +1,82 @@
|
||||
# wowmine player visibility
|
||||
|
||||
Applied on neuro on November 22, 2026. Scope: hide overhead player names and
|
||||
ordinary world-coordinate displays. Names in Tab, chat and Jade's targeted
|
||||
entity tooltip remain available.
|
||||
|
||||
## Server rules
|
||||
|
||||
`wowmine-rules` sets `reducedDebugInfo=true` on load. This removes absolute
|
||||
XYZ, block and chunk location lines from vanilla F3. Reduced F3 still shows
|
||||
chunk-relative offsets; it does not remove every diagnostic value.
|
||||
|
||||
The datapack creates `wowmine_hidden` with `nametagVisibility=never`.
|
||||
`player_visibility.mcfunction` assigns unteamed online players every tick,
|
||||
including players joining later. There were no existing teams before rollout.
|
||||
Existing team members are never moved. If administrators later introduce
|
||||
custom teams, those teams need their own hidden-name setting.
|
||||
|
||||
Friendly fire stays enabled and friendly invisible players stay hidden.
|
||||
The team has no custom prefix, suffix or color.
|
||||
|
||||
## Xaero profiles
|
||||
|
||||
The installed Xaero Minimap 26.4.2 renders coordinates independently of
|
||||
`reducedDebugInfo`. Server profiles therefore also enforce:
|
||||
|
||||
- Minimap `coords`, `overworld_coords` and `chunk_coords` displays: false.
|
||||
- World Map `display_coordinates`: false.
|
||||
- Waypoint coordinate fields: hidden by default.
|
||||
|
||||
Source files live under
|
||||
`nixos/system/neuro/minecraft/wowmine-server-config/xaero/`.
|
||||
Minecraft's NixOS `preStart` copies them into its configuration directory.
|
||||
The large `info_display_config` value has its own
|
||||
`server_profiles/info_display_config/default.cfg.txt` file.
|
||||
|
||||
Both profiles enforce `ignore_enforcement_if_edit_permission=false`.
|
||||
Other client HUD preferences remain local. Boss retains the existing minimap
|
||||
and World Map access exception, with coordinate displays suppressed too.
|
||||
|
||||
These are display controls for the installed clients, not position secrecy.
|
||||
Clients still receive positions to render the world. Xaero's waypoint editor
|
||||
also offers a manual show/hide button for coordinate fields. No new client
|
||||
archive or mod download is needed.
|
||||
|
||||
## Verification and operations
|
||||
|
||||
Native system:
|
||||
`/nix/store/7rpz3mij1c049i8risqy1mxmaz6hpps1-nixos-system-neuro-26.05.20261006.b253099`.
|
||||
Build, transfer, dry activation and native activation succeeded. Only Minecraft
|
||||
was selected for restart. It reached readiness at 09:11:47 UTC with the same
|
||||
18443 recipes.
|
||||
|
||||
Two actual matching clients were connected to an isolated server. A positive
|
||||
control showed the other player's overhead name and absolute F3 coordinates.
|
||||
Applying the real load function removed both. A separate normal HUD capture
|
||||
showed the visible player without a name or coordinate HUD. Boss's large map
|
||||
still opened without its coordinate readout. Reapplying the load function
|
||||
worked with the existing team.
|
||||
|
||||
Screenshots under `/tmp/wowmine-visibility/`:
|
||||
|
||||
- `origin-human.png`: positive overhead-name control.
|
||||
- `visible-control-f3.png`: absolute F3 coordinate control.
|
||||
- `hidden-names-reduced-f3.png`: reduced F3 after policy application.
|
||||
- `hidden-name-hud.png`: hidden overhead name and minimap coordinate HUD.
|
||||
- `worldmap-no-coordinates.png`: Boss map access retained.
|
||||
|
||||
The live check reads persisted gamerules and scoreboard properties, checks
|
||||
both server profiles and all three HUD display states, and compares previous
|
||||
recipe/map rules against their snapshot. The modpack archive remains
|
||||
`v16-survival-r1` with unchanged SHA-256
|
||||
`a74f1b121d888247ce0fb8951d21a8c389eecd138f7b1e078430f27c6034261b`.
|
||||
|
||||
Previous settings and the old system reference are preserved in neuro's
|
||||
private `/var/tmp/wowmine-visibility/`; the result is recorded in
|
||||
`live-integrity.json` there. World identity and previous recipe/map rule files
|
||||
are preserved. No player inventory, experience, class or game-mode records
|
||||
were manually rewritten.
|
||||
|
||||
Gamerules and teams persist in world data. Reverting service files alone does
|
||||
not undo those stored values. No project Git commit was created.
|
||||
Executable → Regular
+781
-40
@@ -1,13 +1,198 @@
|
||||
# WorldOfSosal: Prism automatic updates
|
||||
# wowmine: Prism automatic updates
|
||||
|
||||
The published client entry points are:
|
||||
- https://store.bfs.band/minecraft/ (BFS / Element host)
|
||||
- https://store.hectic-lab.com/minecraft/world-of-sosal/ (hectic-lab)
|
||||
On 2026-11-19, explicit8443 was accepted as the canonical website and updater
|
||||
port. Complete publication history and private backups are copied to neuro;
|
||||
its trusted certificate and native NixOS services are active. Public HTTPS8443
|
||||
passed from two networks. The real Java updater passed with personal options
|
||||
and DH settings preserved; the new Prism ZIP and its checksums are verified.
|
||||
The installed Windows instance now uses the same explicit8443 updater URL;
|
||||
every other byte of its instance configuration was preserved.
|
||||
The DNS HTTPS record `1 . port=8443` remains published, but the website does not
|
||||
rely on it. Chromium rejects service ports different from the URL port.
|
||||
No external proxy or provider443 change is part of this deployment.
|
||||
The hectic-lab website, map proxy and game relay are retired. The user chose
|
||||
to remove its old download URLs without redirects; existing clients must use
|
||||
the canonical neuro updater URL.
|
||||
|
||||
Each site provides its own Prism ZIP with that site's update URL and matching
|
||||
server address. Both installs use the same Minecraft world and modpack release.
|
||||
## Active client: v17-immersive-portals
|
||||
|
||||
Players import `WorldOfSosal-Prism.zip` into Prism once and approve its pre-launch
|
||||
Published on2026-11-23 through the canonical neuro HTTPS8443 updater. Source:
|
||||
`minecraft/pack/wowmine-v17-immersive-portals.mrpack`, SHA-256
|
||||
`f958597c4bed2da74d3e4c1d52b2773e2292fb9c3d1a4f42ccda76b9c620a9de`.
|
||||
Immutable pack release:
|
||||
`e969385695e6baa55961b6e45d5e69b24fc152de8a691df2a71af5c791d9e382`.
|
||||
Prism ZIP SHA-256:
|
||||
`78b92397562f5d85616dba11e14642fa6dd10d088f78710b1f1db583befd53e2`.
|
||||
|
||||
Adds Immersive Portals CE6.1.3.1 to the previous v16-survival-r1 source; all237
|
||||
old client JAR hashes remain identical. Fresh installation and actual public
|
||||
v16-to-v17 upgrade produce238JARs and preserve personal options, DH settings and
|
||||
minimap configuration. Close Minecraft and relaunch the existing Prism instance
|
||||
to update. Existing vanilla purple portal fields need relighting; frameless
|
||||
portals use the built-in Portal Wand/commands. Routes remain Azeroth↔wowmine:void,
|
||||
scale1:1. See [minecraft-immersive-portals.md](minecraft-immersive-portals.md)
|
||||
for real-client QA, native deployment and recovery details.
|
||||
|
||||
## Previous client: v16-delight-rules-r2
|
||||
|
||||
Published on 2026-11-21 to the canonical neuro HTTPS8443 updater. Source:
|
||||
`minecraft/pack/wowmine-v16-delight-rules-r2.mrpack`, SHA-256
|
||||
`a7f474f1431719c6b11707fec05db8b571cb4d1b84d58c20962e771881b0109e`.
|
||||
Public immutable pack release:
|
||||
`88dbb0bdb753f2de48cf7eb5e8a29d409e754edd8dbcb07a0ab9a086e96994bf`.
|
||||
Published Prism ZIP SHA-256:
|
||||
`5ee04475836833313f910a96a012edffdd5d4af7a98fd6be1c5210bbac5a714d`.
|
||||
|
||||
The release adds 96 Delight addons/integrations and four required libraries.
|
||||
FTB Ultimine, Create Ultimine and their exclusive FTB Library are removed.
|
||||
The server has 228 checksum-verified JARs; a fresh client has 238. Minecraft
|
||||
1.21.1 and NeoForge 21.1.250 remain pinned. Full selection, exclusions and known
|
||||
upstream recipe/loot warnings: [minecraft-delight-v16.md](minecraft-delight-v16.md).
|
||||
|
||||
Fresh clients default to a hidden minimap. Existing personal minimap preferences,
|
||||
options and DH settings survive updates. The independent `wowmine-rules`
|
||||
datapack enables `mobGriefing` and restricts both the minimap and World Map on M
|
||||
to Boss's UUID. Real
|
||||
private clients verified the ordinary-player restriction, Boss's visible map,
|
||||
and map hiding when the restriction effect is present.
|
||||
|
||||
Storage Box upload/full readback, all 682 public managed files, published
|
||||
archives/checksums, fresh installation, upgrade, and the actual public HTTPS
|
||||
Java updater passed. The public publisher rebuilds Prism ZIP timestamps, so
|
||||
archive checks use the published checksum and compare every extracted payload
|
||||
byte with the tested export.
|
||||
|
||||
Native NixOS deployment retained 20 player/advancement/stat files byte-for-byte
|
||||
and all 6809 original region files, world seed, spawn, name and access records.
|
||||
The verified private cold backup is
|
||||
`/srv/minecraft/backups/wowMineMap-before-v16-delight-rules-20261121/`
|
||||
with `sha256.json` covering 8610 files. DH cache identities remain `wos` / `wos-w1`.
|
||||
The modpack importer now assigns group `minecraft` and mode 0770 to every managed
|
||||
ancestor directory, fixing AttributeFix's inability to create new mod namespaces.
|
||||
The backup timer is active again.
|
||||
|
||||
NixOS activation returned status 4 because the existing unrelated
|
||||
`ollama-model-loader.service` fails. The new system profile, wowmine importer and
|
||||
Minecraft server are active; the model loader was not changed.
|
||||
|
||||
## Previous client: v15-wowmine
|
||||
|
||||
The landing address is `https://wowmine.bfs.band:8443/wowmine/`.
|
||||
Published downloads and updater URLs use
|
||||
`https://wowmine.bfs.band:8443/minecraft/wowmine/` on neuro. Import
|
||||
`wowmine-Prism.zip` (suggested download filename `wowmine.zip`). The new managed
|
||||
release `v15-wowmine` was published on 2026-11-18. Source archive SHA-256:
|
||||
`6c97a4b3c5f82c055b7de4ebfbda84ab941a55128753485eadd47e8266ec3b43`.
|
||||
Storage Box upload and full readback passed. Public immutable pack release:
|
||||
`4d464abe433b37c91c093657fb97c08bbe53baef9f99f227661931137d87f61f`.
|
||||
Client metadata uses `config/wowmine-version.json` and
|
||||
`script/wowmine-client-info/`. Repository server importer attribute is
|
||||
`wowmine`, unit `minecraft-modpack-import-wowmine`, cache
|
||||
`/var/lib/minecraft-modpacks/wowmine/wowmine.mrpack`. Runtime adoption completed
|
||||
without executing a real modpack or world import. UID/GID, cache inode,
|
||||
588 protected file hashes and all player-file bytes were preserved.
|
||||
Only the spawn datapack namespace and its level.dat registration changed
|
||||
offline; every other NBT field matched. Legacy initialized-player tags are
|
||||
recognized to prevent another first-spawn teleport.
|
||||
|
||||
All 595 public managed files, source archive, ZIP and checksum bytes matched
|
||||
the local export. Real packwiz upgraded the public immutable v14 release
|
||||
through the legacy current URL to v15, then accepted the canonical current URL.
|
||||
Personal options and Medium DH choices survived both paths. Independent fresh
|
||||
and v14-upgrade checks retained 142 unrelated mods and 448 configurations.
|
||||
Real private Minecraft displayed the wowmine title and login metadata and
|
||||
joined a matching 132-mod server. Live production's 132 JAR hashes match the
|
||||
new source; this client release changes no server payload.
|
||||
|
||||
Landing deployment preserved every existing asset byte. Desktop and phone
|
||||
light/dark captures show wowmine, unchanged design and no horizontal overflow.
|
||||
The installed Windows instance also updated through the canonical public URL.
|
||||
Exactly the old addon and version metadata were replaced by the renamed pair;
|
||||
only updater bookkeeping changed otherwise. Every other game file, personal
|
||||
option and DH cache byte was preserved. Display name and saved server label
|
||||
are wowmine. Windows denied physical folder rename, so the internal directory
|
||||
still uses `WorldOfSosal-Prism (1)`; the user accepted retaining this internal
|
||||
compatibility path. This does not change the displayed name.
|
||||
Windows Prism GUI state itself remains unverified.
|
||||
Evidence: `/tmp/wowmine-rename/{public-result.json,qa-evidence.md,runtime-result.md,installed-update-result.json}`
|
||||
and `site-*.png`.
|
||||
|
||||
All 21 historical Storage Box targets were verified against original size,
|
||||
SHA-256 and mode. New sidecars point to canonical archive/parent names;
|
||||
their original bytes remain in content-addressed history objects. The generic
|
||||
`minecraft/pack/wowmine.mrpack` now contains v15; its original first release
|
||||
is preserved as `wowmine-v1.mrpack`. Following current-session approval, all
|
||||
21 original old keys were deleted after a live 46-object SHA-256 preflight
|
||||
proved every original byte retained and current canonical aliases correct.
|
||||
At the rename, public old update URLs redirected to the canonical channel
|
||||
and returned identical v15 bytes. Those hectic-lab routes were subsequently
|
||||
retired during the neuro migration. Evidence: `/tmp/wowmine-rename/storage-copy-safe-results.tsv`,
|
||||
`storage-metadata-result.json`, `retirement-preflight-result.json` and
|
||||
`retirement-result.json`. Historical
|
||||
evidence paths, immutable store basenames, and observed old labels below retain
|
||||
their original spelling. They are historical records, not current naming advice.
|
||||
|
||||
Compatibility redirects for installed clients only: `/minecraft/world-of-sosal/`
|
||||
and `/world-of-sosal/` on the canonical neuro host redirect to `/minecraft/wowmine/`,
|
||||
preserving suffixes such as `current/pack.toml`. Legacy BFS download URLs are
|
||||
retired; installed clients must use the canonical host.
|
||||
|
||||
## Client installation
|
||||
|
||||
The active client entry point is
|
||||
https://wowmine.bfs.band:8443/minecraft/wowmine/.
|
||||
Existing instances using a former download host must switch their pre-launch
|
||||
URL to `https://wowmine.bfs.band:8443/minecraft/wowmine/current/pack.toml`, or import
|
||||
the canonical site's Prism ZIP. The former BFS mirror is retired.
|
||||
|
||||
The active Prism ZIP includes the matching update URL and server address.
|
||||
The game address is `wowmine.bfs.band:35565` (explicit port). Existing profiles must
|
||||
change their saved server entry manually; packwiz does not replace personal
|
||||
`servers.dat`. The former `store.hectic-lab.com:25568` SSH-relay address is retired.
|
||||
|
||||
Earlier on 2026-11-18 the explicit port was restored in the saved client entries,
|
||||
published ZIP, download page, landing-page copy control and active examples.
|
||||
The ZIP SHA-256 is
|
||||
`e10e79a49c58cd17787b54b15c85ec36627f487d0f996354f65a12266352ed63`.
|
||||
Only its server-list payload changed; the v14 managed release, source archive,
|
||||
High/Medium choices and all other ZIP payloads were retained. Real Minecraft
|
||||
status on `wowmine.bfs.band:35565` passed. Three known local aliases were updated
|
||||
without changing other server-list data; the original list is backed up at
|
||||
`/tmp/worldofsosal-explicit-port-20261118/servers.dat.before`.
|
||||
|
||||
The exact deployed landing design was retained. Its current Nginx control unit
|
||||
is `/nix/store/9hhqyc6hrmy3hlh0ganww8i7as293n6d-nginx.service`, GC-rooted at
|
||||
`/nix/var/nix/gcroots/worldofsosal-explicit-port-nginx`. The user approved one
|
||||
unsigned import for this specific local build; global trust settings were not
|
||||
changed. Reconcile the scoped override on the next generated Nginx deployment.
|
||||
Visible address, successful native clipboard write and layout were checked in
|
||||
a real browser at desktop/mobile widths. Minecraft was not restarted.
|
||||
Public backups are under hectic-lab:/var/tmp/worldofsosal-explicit-port-20261118.
|
||||
|
||||
DNS uses an A record pointing to `95.31.254.84` and
|
||||
`_minecraft._tcp.wowmine.bfs.band` SRV `0 0 35565 wowmine.bfs.band.` (TTL 600).
|
||||
This keeps the existing direct TCP 35565 connection. Download and update URLs
|
||||
now use `wowmine.bfs.band`; the earlier `store.hectic-lab.com` deployment
|
||||
details below are historical records.
|
||||
|
||||
On 2026-11-17 the public Prism ZIP, download page and `/wowmine/` copy-address
|
||||
control were changed to `wowmine.bfs.band`. Only `servers.dat` changed inside the
|
||||
ZIP; its SHA-256 is
|
||||
`af5093ecbc59c51b94f3efcef978dbf9a9fc85efdad66c3144418b2949af5b15`.
|
||||
The checksum manifest was updated. The managed pack and source archive were
|
||||
unchanged. Initial A/status checks passed on TCP 35565; the SRV record was still
|
||||
absent from authoritative DNS during publication, so portless entry was not
|
||||
yet verified.
|
||||
|
||||
The live landing page has theme controls that differ from the current source
|
||||
tree. Publication preserved its exact deployed design and assets, replacing
|
||||
only the address. A scoped Nginx unit was built and activated through
|
||||
`/etc/systemd/system.control/nginx.service`, GC-rooted at
|
||||
`/nix/var/nix/gcroots/worldofsosal-domain-nginx`. Reconcile this override when
|
||||
deploying the next generated Nginx configuration. Nginx configuration validation
|
||||
and public desktop/mobile address and copy checks passed.
|
||||
|
||||
Players import `wowmine-Prism.zip` into Prism once and approve its pre-launch
|
||||
command. Before each launch, packwiz-installer reconciles the client with the
|
||||
published pack: it adds, replaces, and removes managed files, checking hashes.
|
||||
`options.txt` is seeded once and preserved. Pack configuration files are managed
|
||||
@@ -17,22 +202,182 @@ Minecraft 1.21.1, NeoForge 21.1.250, Java 21; the instance reserves up to 8 GiB.
|
||||
The original `.mrpack` alone does not provide this automatic update mechanism.
|
||||
Official workflow: https://packwiz.infra.link/tutorials/installing/packwiz-installer/
|
||||
|
||||
## Historical short runtime names: 2026-11-17
|
||||
|
||||
At that time DH used server key `wos` and map prefix `wos-w1`. The Azeroth level key is
|
||||
`wos-w1@crafting_azeroth:azeroth`; `w1` identifies the current winter-biome map.
|
||||
Dimension IDs were unchanged. These short keys and the observed labels below
|
||||
record that rollout; they do not define the planned wowmine release.
|
||||
|
||||
The historical server MOTD was `WoS | Warcraft`. Prism imports and their saved
|
||||
server entry were named `WoS`; downloads suggested `WoS.zip` at that time.
|
||||
The managed pack remained v13 with 595 files. Historical ZIP SHA-256:
|
||||
`48b101f0b363c3e223d0adae5283f2b5b9e4688870ff06d89b0c199c19b69c7c`.
|
||||
|
||||
The Windows log reports `SQLITE_CANTOPEN` for a 260-character cache path.
|
||||
The saved Cyrillic server label expands to 46 URL-encoded characters, and the
|
||||
old map revision adds a 72-character level folder. Short keys remove that
|
||||
inflation independently of each client's saved server label. Existing instances
|
||||
benefit after reconnecting; reimport is not required. Old client caches and
|
||||
server LOD data are retained. Arbitrarily deep launcher directories may still
|
||||
require a shorter installation path.
|
||||
|
||||
The settings helper has a naming-only startup mode; the importer retains its
|
||||
existing mod/JEI behavior. Production appends `80-short-names.conf` after the
|
||||
existing 50/60/70 hooks, using GC root
|
||||
`/nix/var/nix/gcroots/worldofsosal-short-names-pre-start`. One ordinary restart
|
||||
followed an empty-server check and a player-state backup under
|
||||
`/var/tmp/worldofsosal-short-names/`. All 132 JAR hashes, OP data, world
|
||||
inode/source marker and importer InvocationIDs were preserved. Only the two DH
|
||||
values and MOTD changed among input settings.
|
||||
|
||||
The live landing's filename-only update uses Nginx GC root
|
||||
`/nix/var/nix/gcroots/worldofsosal-short-names-nginx`; reconcile its
|
||||
`system.control` override on the next generated Nginx deployment.
|
||||
Public ZIP/checksum, actual builder output, hook idempotence, preservation and
|
||||
Minecraft status checks passed. After reconnecting, the user confirmed the
|
||||
error disappeared. The actual Windows log records `Started DHLevel` for the
|
||||
short key, successful SQLite schema updates and no cache-open errors. The new
|
||||
database exists at a 189-character path, versus the original 260 characters,
|
||||
and contains 6,819,840 bytes. Its server folder is `-1885210281_wos`: DH retains
|
||||
the server ID before the short key. Old cache folders remain present.
|
||||
|
||||
Automated Windows Java interop and private Linux graphics QA were unavailable;
|
||||
the real Windows reconnect supplies the runtime verification. DH logged a
|
||||
five-second request-queue shutdown warning on logout; that behavior was not
|
||||
investigated in this naming change.
|
||||
Evidence: `/tmp/worldofsosal-short-names/windows-client-result.json`.
|
||||
|
||||
## Direct game access: 2026-11-17
|
||||
|
||||
The user selected the existing MikroTik TCP 35565 forward. Minecraft Java status
|
||||
requests from hectic-lab to `95.31.254.84:35565` returned WorldOfSosal 1.21.1,
|
||||
including after retiring both SSH tunnels and the public relay. The incoming
|
||||
address is the SSH endpoint, not the rotating outbound HTTP proxy address.
|
||||
|
||||
Neuro's game `server-port` and allowed TCP port are now 35565. Requested UDP 36565
|
||||
is also allowed on IPv4/IPv6; an external UDP echo round trip passed. UDP is not
|
||||
the Java login protocol. Sable's separate UDP transport follows the game port;
|
||||
this change does not claim Sable uses 36565 or configure another router forward.
|
||||
RCON 25575 remains outside the allowed TCP list.
|
||||
|
||||
Only wowMineMap was restarted. All 132 JAR hashes, actual configuration bytes,
|
||||
OP data, world directory/source marker and both importer InvocationIDs were
|
||||
preserved. The generated `rpg_series/loot_fallback_report.json` refreshed at boot;
|
||||
it labels itself as an output report whose edits have no effect. The initial
|
||||
byte-wide config check therefore reported that difference; the scoped audit
|
||||
verified it was the only difference, rather than restoring or hiding the report.
|
||||
Player data, advancements, stats and level data were backed up before startup
|
||||
under `/var/tmp/worldofsosal-direct/player-state-backup/`.
|
||||
|
||||
The legacy 50/60 pre-start overrides are retained. The new
|
||||
`70-direct-port.conf` runs the GC-rooted port hook after them; it changes only
|
||||
`server-port`. The selectively activated firewall unit is also GC-rooted.
|
||||
These `/etc/systemd/system.control` overrides must be reconciled if the generated
|
||||
Nix properties/firewall are changed in a future deployment.
|
||||
|
||||
The neuro `minecraft-wow-tunnel` and `minecraft-wow-tunnel-bfs` services and
|
||||
hectic-lab `minecraft-wow-proxy` socket/service are stopped and persistently
|
||||
masked. Their Nix definitions are disabled. Administrative SSH is unchanged.
|
||||
|
||||
The Prism ZIP and download page now contain the direct address. Only the ZIP's
|
||||
`.minecraft/servers.dat` entry changed; all 595 managed pack files and the source
|
||||
archive/version remain unchanged. New ZIP SHA-256:
|
||||
`1bf95be58de679490806776dbfe7a941577f9cd8926d58591e55f563e9bcdd53`.
|
||||
Public ZIP/checksum/page readback passed. The separate `/wowmine/` landing-page
|
||||
template was corrected by one address-line edit, preserving unrelated in-progress
|
||||
design edits; that immutable live landing page was not republished in this network
|
||||
task. Use the direct address above rather than its previous copy-IP text.
|
||||
Evidence and helper scripts: `/tmp/worldofsosal-direct/` and
|
||||
`/var/tmp/worldofsosal-direct/`. No project Git commit.
|
||||
|
||||
## Publishing a tested update
|
||||
|
||||
Keep the authoritative `.mrpack` in Storage Box at
|
||||
`minecraft/pack/WorldOfSosal.mrpack`. For a server update, replace that archive,
|
||||
set its new SHA-256 in `nixos/system/neuro/minecraft/world-of-sosal.nix`,
|
||||
Keep authoritative `.mrpack` revisions as separate files in Storage Box.
|
||||
The pre-rename client baseline was v14, named
|
||||
`minecraft/pack/wowmine-v14-lod512-high60.mrpack` under the rename contract,
|
||||
SHA-256 `8ff5feb41531e965f0fb8cd8661e3ff8331e62a7f2cc24e906a2b4908f228184`.
|
||||
V14 gives fresh installations the exact DH 3.3.3 High preset, retaining radius
|
||||
512, BLOCK resolution and the 60 FPS cap. Horizontal and vertical quality are
|
||||
HIGH; cave culling is disabled. Its other graphics values match the built-in
|
||||
High preset. Players can select Medium in DH's quality-preset menu.
|
||||
Both `options.txt` and `config/DistantHorizons.toml` have `preserve = true` in
|
||||
the packwiz index. Existing profiles keep their current DH settings, including
|
||||
LOW or Medium; High is not forced onto existing users.
|
||||
|
||||
During the v14 rollout, the server stayed on the unchanged v13 archive,
|
||||
SHA-256 `e5895994e95a4df476d7da00b53c39d0372885265acb6cf9b5a9647a015db5f7`,
|
||||
without a restart. All mod entries and embedded JARs are unchanged. V13 removed
|
||||
Loot Plus and its obsolete configuration, retaining Craftable Loot Chests,
|
||||
Iris and Bliss; those changes remain in v14.
|
||||
Server LOD data is shared across client quality presets; separate High/Medium
|
||||
server databases are unnecessary.
|
||||
The GC warning remains hidden in chat.
|
||||
It retains v7's Distant Horizons
|
||||
3.3.3 on client and server and v6's client-only
|
||||
version indicator. The game window and local login chat show the manifest version;
|
||||
the server MOTD shows its activated server configuration. A client-only release
|
||||
can retain the previous MOTD without restarting the server. Downloads from the page use
|
||||
`wowmine-<version>.mrpack`, while `latest.mrpack` remains a compatibility URL.
|
||||
V5 added five optimizers and Nowheel, with separate client/server Lithium
|
||||
compatibility settings. V4's removal of Dynamic Height and its Sable addon is
|
||||
retained. Minecraft/NeoForge versions are unchanged. For a server update, upload a new
|
||||
revision and set its path and SHA-256 in `nixos/system/neuro/minecraft/wowmine.nix`,
|
||||
and rebuild/switch neuro before publishing the corresponding client export. The server importer and the
|
||||
client export must consume the same archive; publishing only the client can make
|
||||
it incompatible with the running server.
|
||||
client export must consume the same archive when shared mods or loader versions
|
||||
change; publishing only the client can make it incompatible with the running
|
||||
server. A client-configuration-only release such as v14 can retain the previous
|
||||
server archive after verifying that shared mod entries and JAR bytes are identical.
|
||||
|
||||
V14's real packwiz installer checks covered a fresh High install and an existing
|
||||
Medium profile upgrading from the previous policy. Medium remained byte-identical.
|
||||
The same scenario with the old builder overwrote Medium and failed the original
|
||||
assertion. All 595 managed paths remain; only DH configuration/preservation and
|
||||
client version metadata differ. Storage Box full archive readback passed, and the
|
||||
historical v14 public client release is
|
||||
`edc23c0d038baeca246fea7be5b12eaf4882f09f0ec58d87d4cec866011cf320`.
|
||||
V15 retains those High defaults while preserving existing personal choices.
|
||||
Evidence: `/tmp/worldofsosal-v14-high/`. The prior public files and current-link
|
||||
target are backed up on hectic-lab under `/var/tmp/worldofsosal-v14-high-web/`.
|
||||
|
||||
The publisher now streams its generated archive through its existing SSH
|
||||
connection. The prior SCP transport failed because hectic-lab has no SFTP
|
||||
subsystem; that failure occurred before changing the public release.
|
||||
|
||||
```sh
|
||||
# Use the verified v15 source whose SHA-256 is recorded above.
|
||||
# Test the client and deploy the matching server release first.
|
||||
python3 script/publish-prism-mirrors.py WorldOfSosal.mrpack
|
||||
python3 script/build-prism-pack.py wowmine-v15-wowmine.mrpack \
|
||||
prism-export --server wowmine.bfs.band:35565
|
||||
python3 script/publish-prism-pack.py prism-export
|
||||
```
|
||||
|
||||
The mirror publisher creates temporary build directories and sets each server
|
||||
address and update URL automatically. The builder downloads a SHA-256-pinned bootstrap from the
|
||||
The publisher defaults to SSH alias `neuro`, which must support remote shell
|
||||
commands and stdin upload; SFTP is not required. An optional second positional
|
||||
argument selects another SSH alias for the same production root.
|
||||
The builder defaults to the explicit-port HTTPS updater URL above, so the
|
||||
updater does not depend on DNS HTTPS-record support. `--base-url` remains
|
||||
available for an explicitly separate test export.
|
||||
|
||||
The legacy command name remains as a compatibility wrapper:
|
||||
|
||||
```sh
|
||||
python3 script/publish-prism-mirrors.py wowmine-v15-wowmine.mrpack
|
||||
```
|
||||
|
||||
It checks that `minecraft-server-wowMineMap` is active on neuro and that
|
||||
`/var/lib/minecraft-modpacks/wowmine/wowmine.mrpack` has exactly the supplied
|
||||
archive's SHA-256, then delegates one build and publication to the active tools.
|
||||
It never contacts hectic-lab or the former BFS mirror. `--bootstrap` still
|
||||
accepts a local checksum-pinned bootstrap JAR.
|
||||
|
||||
The exact-archive guard can reject a client-only release even when its shared
|
||||
server mods are unchanged. Coordinate the deployed server archive pin/cache
|
||||
before using the wrapper; do not bypass a mismatch by inventing a gameplay
|
||||
version. The direct export publisher does not perform this server check.
|
||||
Moving the download URL changes no v15 managed pack/index bytes or server mods.
|
||||
|
||||
The builder downloads a SHA-256-pinned bootstrap from the
|
||||
packwiz project's release, or accepts it via `--bootstrap /path/to/file.jar`.
|
||||
External mods retain their original URLs and SHA-512 checksums. Embedded mods and
|
||||
configuration are hosted with the release. Both required and optional client mods
|
||||
@@ -44,9 +389,12 @@ Do not remove a release while clients may still be reading it. Hash checks cause
|
||||
an overlapping update to fail safely rather than silently accept mixed contents;
|
||||
retry the launch if a publication overlapped a download.
|
||||
|
||||
The files live under `/var/www/store/minecraft/world-of-sosal` on `hectic-lab`,
|
||||
served by the existing `store.hectic-lab.com` nginx virtual host. No nginx reload
|
||||
is needed for pack updates. Keep `current/pack.toml` as the stable client URL.
|
||||
The production root is `/var/www/wowmine/public/minecraft/wowmine` on `neuro`,
|
||||
served by the `wowmine.bfs.band` nginx virtual host. Initial host deployment and
|
||||
copying every prior release/archive into this root are separate deployment
|
||||
steps; these tools do not migrate old host data. Publication preserves all
|
||||
existing release directories and immutable named archives. No nginx reload is
|
||||
needed for pack updates. Keep `current/pack.toml` as the stable client URL.
|
||||
The index must be alongside pack.toml: putting a release prefix in `[index].file`
|
||||
also prefixes client installation paths with that directory in packwiz-installer.
|
||||
|
||||
@@ -54,6 +402,397 @@ If Minecraft/NeoForge versions change, update and test both the server pin and
|
||||
client pack. packwiz-installer 0.5.14 understands NeoForge components in Prism's
|
||||
`mmc-pack.json`; a launcher restart/relaunch may be necessary after changing them.
|
||||
|
||||
## Client version information
|
||||
|
||||
Source and build instructions: `script/wowmine-client-info/README.md`.
|
||||
The addon version is 1.0.0; it is independent of the pack release.
|
||||
`config/wowmine-version.json` is generated from the mrpack's `name`,
|
||||
`versionId`, and Minecraft/NeoForge dependencies. An existing metadata override
|
||||
must match that manifest or the builder rejects the release. When preparing
|
||||
a new source archive, regenerate its client metadata from its updated manifest.
|
||||
|
||||
The title appears before login and remains on connection failures. After each
|
||||
successful multiplayer login, `CLIENT: wowmine <version> | Minecraft
|
||||
<version> | NeoForge <version>` is added only to that client's chat. Dimension
|
||||
changes do not add another line. The early NeoForge bootstrap window is
|
||||
separate from the Minecraft game window.
|
||||
|
||||
The immutable download name and its checksum are included in publication;
|
||||
previous named archives are retained. The selected release's MOTD is declared
|
||||
in `wowmine.nix` alongside its archive path.
|
||||
|
||||
## Loot Plus cleanup: v13 on 2026-11-16
|
||||
|
||||
V13 removes `Loot Plus V1.1.3-neoforge-1.21.1 (FIXED).jar` from both client
|
||||
and server, its `config/LootPlusConfig.toml`, the six `config/mlb/*.json` files,
|
||||
and `config/lootbundles-common.toml`. Craftable Loot Chests is retained unchanged.
|
||||
Other RPG loot configuration, all remaining mods, Iris/Bliss/DH, client presets,
|
||||
and player options are retained. This release has 143 client JARs, 132 server JARs,
|
||||
and 595 managed client files.
|
||||
|
||||
Source: `minecraft/pack/wowmine-v13-lootplus-cleanup.mrpack`, 8,728,272 bytes,
|
||||
SHA-256 `e5895994e95a4df476d7da00b53c39d0372885265acb6cf9b5a9647a015db5f7`.
|
||||
Storage Box staging, full final readback, hash comparison, and immutable rename
|
||||
passed. The old sources and named cache versions remain available. The two earlier
|
||||
client-only cleanup candidates were never published.
|
||||
|
||||
Although upstream marked Loot Plus optional, an actual client without it failed
|
||||
to connect to the unchanged server because of unknown `lootboxesplus` registry
|
||||
entries. After removing it from both sides, the real client joined the private
|
||||
Azeroth server and displayed the existing Origins selection interface. Every
|
||||
retained JAR hash, Bliss ZIP, and DH configuration matched v12. Actual fresh and
|
||||
v12-upgrade packwiz runs removed all nine selected files; personal `options.txt`
|
||||
and shader choices in `config/iris.properties` stayed byte-identical. The final
|
||||
client export is byte-identical to that tested candidate.
|
||||
|
||||
The user approved server removal with a backup and ordinary restart. The full
|
||||
stopped-state backup is at
|
||||
`u664722@u664722.your-storagebox.de:minecraft/backups/wowMineMap-before-lootplus-removal-20261116/`.
|
||||
All 6,753 selected world/mod/config/root-JSON/property files passed independent
|
||||
SHA-256 verification on Storage Box. The nine removed files are also retained
|
||||
under `/srv/minecraft/backups/wowMineMap-before-lootplus-removal-20261116/`.
|
||||
All 6,153 world files were byte-identical after offline removal; no map import,
|
||||
reset, player-data edit, or world replacement occurred. No player data file
|
||||
contained the removed mod namespace.
|
||||
|
||||
The first autonomous deployment attempt could not find SSH in systemd's PATH;
|
||||
it made no removals and restarted the original server. Absolute executable paths
|
||||
fixed that cause. The subsequent transaction completed with full backup checking
|
||||
and automatically started the cleaned server. The active 132-JAR server passed
|
||||
RCON health checks; all remaining JAR/config hashes, OP data, and parsed server
|
||||
properties were preserved. Distances remain 32/32, command blocks remain enabled,
|
||||
and `doFireTick` remains false. Both importer InvocationIDs were unchanged.
|
||||
The source pin/cache activation used the same archive and required no additional
|
||||
restart or importer execution.
|
||||
|
||||
The web release is
|
||||
`fcb95a325ca33e7be53ecf550e01b86e97fd1b4a48b215787707bb0547aded69`.
|
||||
The ordinary publisher payload was staged and SHA-256 checked before the restart,
|
||||
then its immutable release and `current` symlink were activated after server health
|
||||
checks. Public HTTPS readback matched all 595 index files and hashes, pack/index
|
||||
metadata, named/latest source archives, Prism ZIP, SHA256SUMS, and page bytes.
|
||||
A real v12 profile updated through the public `current/pack.toml`: all nine files
|
||||
were removed, all 143 retained JAR hashes matched, and personal options, shader
|
||||
selection, and DH configuration were preserved.
|
||||
The legacy runtime MOTD still names v11; its properties generator was
|
||||
deliberately retained. Client version metadata names v13. Existing recipe/function
|
||||
warnings from the retained mods were outside this cleanup.
|
||||
|
||||
The server root had only about 7.7 GiB free for a roughly 15 GiB world, so the
|
||||
full backup used Storage Box directly. The incomplete workstation copy is retained
|
||||
as an additional partial artifact and is not the verified backup. Evidence,
|
||||
scripts, and runtime screenshot: `/tmp/worldofsosal-v13-lootplus-final/`;
|
||||
server reports: `/var/tmp/worldofsosal-v13-lootplus-deploy/`.
|
||||
No project Git commit was created.
|
||||
|
||||
## Bliss: v12 on 2026-11-15
|
||||
|
||||
V12 adds Iris `1.8.14-beta.1+mc1.21.1` for NeoForge and Bliss `2.1.2`.
|
||||
This Iris build matches the existing Sodium `0.8.13`; DH remains `3.3.3`.
|
||||
Both additions are required on clients and marked unsupported on servers.
|
||||
Bliss is referenced by its original Modrinth CDN URL and SHA-512 rather than
|
||||
redistributed inside the archive. Every old archive entry is byte-identical
|
||||
except the manifest and client version metadata.
|
||||
|
||||
After the normal Prism update, open Iris's shader-pack menu and select
|
||||
`Bliss_v2.1.2_(Chocapic13_Shaders_edit).zip`. Shader selection is not forced:
|
||||
the release does not manage `config/iris.properties`, so personal enable/disable
|
||||
choices survive updates. LOW/BLOCK/512 and the fresh-install 60 FPS limit remain.
|
||||
Shaders add rendering cost; the 60 FPS setting is a cap, not a measured result.
|
||||
|
||||
Source: `minecraft/pack/wowmine-v12-bliss.mrpack`, 8,731,511 bytes,
|
||||
SHA-256 `f82bac94ae3d38076db81458ea04c2b6e1abed49900186073b33d104fdedafc9`.
|
||||
Immutable Storage Box upload, full readback, hash check, and rename passed.
|
||||
The server cache and importer pin use this same source; filtered server files
|
||||
still match all 133 running JARs. The importer was not executed, the main
|
||||
server process and configuration stayed unchanged, and the map was not reset.
|
||||
The live server MOTD therefore still names v11; this does not prevent v12 clients
|
||||
from connecting. The Nix configuration names v12 for a later configuration
|
||||
activation.
|
||||
|
||||
Real packwiz installs passed for a fresh client and a v11 upgrade. SHA-512 and
|
||||
sizes of both additions matched; custom render/simulation/FPS options were
|
||||
preserved byte for byte. An isolated client connected to a private copy of
|
||||
Azeroth with Bliss enabled. Shader pipelines, DH event binding and renderer
|
||||
setup completed, with 2,778 populated DH rows observed and a largest data payload
|
||||
of 62,430 bytes. Spawn and elevated north/south views were inspected, including
|
||||
distant terrain beyond the QA-only native render distance of two chunks.
|
||||
|
||||
QA used llvmpipe/OpenGL 4.5, not a player GPU benchmark. Bliss emitted existing
|
||||
option/block-alias warnings, and Iris logged one nonrepeating opaque/translucent
|
||||
initialization message. No shader compile/pipeline failure or DH binding NPE
|
||||
was reproduced. The initial Xvfb launch lacked GLX; supplying the existing Mesa
|
||||
driver environment fixed the private test display without changing the pack.
|
||||
The 604-file web release is
|
||||
`244ec93f1bc456927bcb9a154c632eccde6d8d9f9bac48a67eb6560bc13fb9a8`.
|
||||
Public HTTPS byte comparisons passed for pack/index metadata, Iris and Bliss
|
||||
download records, presets, named/latest archives, Prism ZIP and the download
|
||||
page. The real installer also accepted the published `current/pack.toml` URL
|
||||
and retained the custom options byte for byte.
|
||||
|
||||
## LOW/BLOCK and 60 FPS preset: v11 on 2026-11-13
|
||||
|
||||
V11 keeps horizontal LOW and radius 512, restores BLOCK resolution, and changes
|
||||
the preset `options.txt` limit from 120 to 60 FPS. Other options, vertical quality,
|
||||
hidden GC chat warning, thread defaults, Java and all JARs remain unchanged.
|
||||
Source: `minecraft/pack/wowmine-v11-lod512-low60.mrpack`,
|
||||
SHA-256 `0498c7064586c4377db8c6668ccc6c2e6afca19c44463b981d4f560cdf339c99`.
|
||||
Storage Box upload and reverse-download verification passed after replacing a
|
||||
stalled TCP session with a new connection with bounded SSH timeouts.
|
||||
|
||||
Actual installer checks passed for both a clean preset with `maxFps:60` and a
|
||||
v10 update preserving custom `renderDistance:4`, `simulationDistance:2` and
|
||||
`maxFps:144`. Existing profiles keep their own options; users wanting the new
|
||||
cap there must select 60 FPS in video settings. The publisher's preserve policy
|
||||
for `options.txt` remains unchanged.
|
||||
|
||||
A real client accepted LOW/BLOCK/512/60 and automatic eight threads at ratio
|
||||
1.0. The clean preset's render distance 12 exceeded the private QA server's
|
||||
limit 2, causing a gap between native chunks and LODs. Matching the QA-only
|
||||
client distance to 2 removed the gap, with continuous Azeroth terrain visible
|
||||
from both directions. The distributed preset stays at its original distance 12.
|
||||
This was a software OpenGL 4.5 functional check, with no measured player GPU gain.
|
||||
After the server was empty, the stopped backup was created at
|
||||
`/srv/minecraft/backups/wowMineMap-before-lod512-low60-20261113T134243Z`, with
|
||||
sibling `-mods` and `-config` copies. Targeted activation retained the original
|
||||
Java command, using importer `8c552by89dk8zngxcjn9wxlwf9f4dvmm` and pre-start
|
||||
`bmqyiyjbc3wl47m7x9rakg1nraysfags-worldofsosal-v11-start-pre`.
|
||||
The server was ready at 13:46:22 UTC. All 133 server JARs matched the source;
|
||||
existing-only generation, threads 2/0.5 and normal distances 32/32 were retained.
|
||||
No full 512-radius precomputation was started.
|
||||
The 2,063,716 populated Azeroth chunk positions, datapacks and playerdata
|
||||
matched the stopped backup; no heightmap warnings appeared. The retained DH
|
||||
database contained 70,041 rows. The server remained active with zero automatic
|
||||
restarts. No temporary verification force-load tickets were needed.
|
||||
The immutable web release on hectic-lab is
|
||||
`1910d85189aad1667ab03a209ede057acb11b7b0784901c50905bf622a9e7658`.
|
||||
Public HTTPS checks passed for the 602-entry index, DH configuration, 60 FPS
|
||||
preset, metadata, archives and Prism ZIP. Public Minecraft status reports v11.
|
||||
|
||||
## LOD 512 lite: v10 on 2026-11-13
|
||||
|
||||
V10 changes only client `horizontalQuality = "LOW"` and
|
||||
`maxHorizontalResolution = "TWO_BLOCKS"` plus release metadata. Radius 512,
|
||||
vertical quality, hidden GC chat warning, automatic client threads, server
|
||||
settings and all JARs remain unchanged. It aims to reduce LOD rendering work;
|
||||
no performance gain on the player's GPU has been measured.
|
||||
Source: `minecraft/pack/wowmine-v10-lod512-lite.mrpack`,
|
||||
SHA-256 `8b368b2d690dfbf199f65d554ffeba0b3d2f6a163b1a2abcf132e3bec9628277`.
|
||||
Storage Box upload and reverse-download verification passed.
|
||||
|
||||
The actual v9-to-v10 updater preserved custom options. A real client connected
|
||||
through QuickPlay and rendered Azeroth from two directions with runtime radius
|
||||
512, horizontal LOW, TWO_BLOCKS resolution, vertical MEDIUM and eight automatic
|
||||
threads at ratio 1.0. The populated LOD cache had 1,145 rows and a largest data
|
||||
payload of 63,683 bytes. No DH missing-buffer errors or GC chat warning appeared.
|
||||
QA used llvmpipe/OpenGL 4.5, so this is a functional check rather than a hardware
|
||||
GPU benchmark.
|
||||
|
||||
After players left, the stopped backup was created at
|
||||
`/srv/minecraft/backups/wowMineMap-before-lod512-lite-20261113T125559Z`, with
|
||||
sibling `-mods` and `-config` copies. Targeted activation preserved the original
|
||||
JVM and uses importer `3i6p37b7lwr75jhfhbgladkx7a143b7h` and pre-start
|
||||
`spiv6zdjkk88sj0gd08wzlzzdq3sifhf-worldofsosal-v10-start-pre`.
|
||||
All 133 server JARs matched the source, with existing-only generation, server
|
||||
threads 2/0.5, request limit 4096 and normal distances 32/32. The 2,063,716
|
||||
populated chunk positions and datapacks matched the stopped backup, with no
|
||||
heightmap warnings. The retained LOD database contained 62,775 rows; no full
|
||||
512-radius precomputation was started.
|
||||
The client publication on hectic-lab uses immutable web release
|
||||
`260ffe1fedd8a434364efe23cb03b2be05431a583dd3426cd0746f8380ed686a`.
|
||||
Public HTTPS checks passed for the 602-entry index, lite DH configuration,
|
||||
metadata, archives and Prism ZIP; public Minecraft status reports v10.
|
||||
The native-height comparison passed for 81 chunks and 12,798 block samples,
|
||||
including the spawn anchor, `yPos=-32` and 52-long heightmaps. All 81 temporary
|
||||
verification tickets were removed; the server was active with zero automatic
|
||||
restarts.
|
||||
|
||||
## LOD radius 512: v9 on 2026-11-13
|
||||
|
||||
V9 sets the client LOD radius to 512 chunks and sets
|
||||
`common.logging.warning.showGarbageCollectorWarning = false` in the client
|
||||
override. The GC warning remains enabled in the log; Java, GC, JARs, thread
|
||||
defaults and 32/32 distances remain unchanged.
|
||||
Source: `minecraft/pack/wowmine-v9-lod512.mrpack`,
|
||||
SHA-256 `485e9e92eae00a7c978fb1f116ef8b63cb79df922965aca8cb05055d3b290b53`.
|
||||
Storage Box upload and reverse-download verification passed.
|
||||
|
||||
A real v8-to-v9 updater preserved custom options. The actual client accepted
|
||||
512, retained eight automatic threads at ratio 1.0, connected and rendered
|
||||
Azeroth LODs from two directions. Its GC warning appeared in the log and was
|
||||
absent from chat. The populated client cache had 265 rows, with a largest data
|
||||
payload of 63,683 bytes. No missing-buffer errors appeared during the session.
|
||||
This does not precompute the whole 512 radius: the existing production cache
|
||||
remains at 256 and farther existing terrain is requested on demand. The QA
|
||||
client queued about one million requests; initial loading can take substantial
|
||||
time.
|
||||
|
||||
After players left, the stopped backup was created at
|
||||
`/srv/minecraft/backups/wowMineMap-before-lod512-20261113T094343Z`, with sibling
|
||||
`-mods` and `-config` copies. Targeted activation kept the original JVM, using
|
||||
importer `zvbj8hhp7n8zlwj49b0jz9lzif82f4g0` and pre-start
|
||||
`q7vs3y5wn2w4b5fbxsh535yfh7xw0g4v-worldofsosal-v9-start-pre`.
|
||||
All 133 server JARs matched the source, with existing-only generation, server
|
||||
threads 2/0.5, request limit 4096 and normal distances 32/32.
|
||||
The 2,063,716 populated chunk positions and the 81-chunk / 12,798-block
|
||||
native-height comparison matched the backup. Datapacks and the spawn anchor
|
||||
were unchanged; heightmap warnings were absent. The retained server LOD database
|
||||
contained 31,062 rows. Existing recipe and class-selection datapack errors were
|
||||
also present in the previous logs and were left unchanged.
|
||||
The client publication on hectic-lab uses immutable web release
|
||||
`2f0dcf6061dc32efb53a27fad6472e7bf60a6a783f44924c323f5f6ed84fb7ae`.
|
||||
That host rejected SFTP; the publication archive was transferred over SSH stdin,
|
||||
then the same atomic activation script was used.
|
||||
Public HTTPS verification passed for the 602-entry index, DH configuration,
|
||||
version metadata, archives and Prism ZIP; public Minecraft status reports v9.
|
||||
All 81 temporary verification tickets were removed. The server remained active
|
||||
with zero automatic restarts.
|
||||
|
||||
The QA wrapper's old `/run/opengl-driver` path disappeared from the workstation.
|
||||
Use the installed Mesa library and DRI paths directly, with private Xvfb and
|
||||
llvmpipe; `glxinfo -B` must confirm OpenGL 4.5 before launching the client.
|
||||
|
||||
## LOD radius 256: v8 on 2026-11-13
|
||||
|
||||
V8 changes only the two DH radius values from 128 to 256 and the release
|
||||
metadata. All JARs, Minecraft/NeoForge versions, generation safety settings,
|
||||
client thread defaults, server thread limit and normal 32/32 distances remain
|
||||
unchanged. A real v7-to-v8 packwiz update preserved custom `options.txt`.
|
||||
The actual client accepted 256, connected, received populated Azeroth LOD data,
|
||||
and rendered terrain from two angles without missing-buffer errors.
|
||||
|
||||
The source archive was uploaded to Storage Box and verified by downloading it.
|
||||
The stopped backup is
|
||||
`/srv/minecraft/backups/wowMineMap-before-lod256-20261113T012021Z`, with sibling
|
||||
`-mods` and `-config` copies. Targeted activation preserves the original JVM and
|
||||
uses importer `c9gm28drindq1dypib4dygdl86m52zmg` and pre-start
|
||||
`fwq9fsavmpzyf5sp96ivjd9vr9kpkvc2-worldofsosal-v8-start-pre`.
|
||||
Existing-only import at block origin `3742,8891`, radius 256 chunks, completed
|
||||
at 01:44:28 UTC on 2026-11-13. The completed cache covers the requested area;
|
||||
it does not mean the entire Azeroth map has been precomputed.
|
||||
Public HTTPS checks passed for the 602-entry index, the DH configuration and
|
||||
metadata, named source archive, latest alias and Prism ZIP. Public Minecraft
|
||||
status reports `WorldOfSosal v8-lod256`. Immutable web release:
|
||||
`9ab159a65647f19b964624bfaed0a8c0584df84a7698a069806a1a6eb7aa5710`.
|
||||
After completion, all 2,063,716 populated Azeroth chunk positions matched the
|
||||
stopped backup. The native-height comparison passed for 81 chunks and 12,798
|
||||
block samples, with `yPos=-32`, 52-long heightmaps and no heightmap warnings.
|
||||
Datapacks and the spawn anchor remained unchanged. The LOD database contained
|
||||
22,109 rows; the server was active with zero automatic restarts. All 81 temporary
|
||||
verification tickets were removed.
|
||||
|
||||
QA copies must take `dimensions/crafting_azeroth/azeroth/region/r.7.17.mca`
|
||||
from the backup. The identically named file under `world/region` belongs to the
|
||||
ordinary overworld. Copying that file does not provide Azeroth terrain.
|
||||
|
||||
## Distant Horizons and verification: v7 on 2026-11-13
|
||||
|
||||
Both sides use `DistantHorizons-3.3.3-1.21.1-fabric-neoforge.jar`.
|
||||
`CHUNKS_ONLY` and `PRE_EXISTING_ONLY` are both required: DH reads the imported
|
||||
Azeroth terrain instead of reconstructing it from the seed. No additional
|
||||
network port is used. Native dimension bounds remain `min_y=-512`, `height=2544`.
|
||||
Server view and simulation distances remain 32; the client LOD radius is 128.
|
||||
|
||||
The shared server configuration limits DH to two threads at a 0.5 runtime ratio.
|
||||
A client override keeps DH's automatic thread budget and 1.0 ratio. Applying
|
||||
the server limit to clients starved the shared network decoding queue during
|
||||
cold loading: completed buffers expired after 30 seconds. A cold-cache A/B
|
||||
test with the client defaults completed 336 payload deliveries in 120 seconds
|
||||
with zero DH errors. A populated distant row matched server data byte-for-byte.
|
||||
The actual client rendered Azeroth from several angles; disabling DH removed
|
||||
the distant geometry. Tests used software rendering, not an FPS benchmark.
|
||||
|
||||
- Real packwiz v6-to-v7 update passed with 602 managed entries and preserved
|
||||
modified `options.txt`. Client/server configuration separation was verified.
|
||||
- All 133 live server JARs matched the archive; original Java/start command
|
||||
remained in place. Server reached `Done`; public status reports v7.
|
||||
- Existing-only LOD import completed at block origin `3742,8891`, radius
|
||||
64 chunks. The database contained 1,440 rows. The remainder of the 128-chunk
|
||||
client radius fills from existing terrain as requested; the whole map has
|
||||
not been precomputed.
|
||||
- Production comparison with the stopped backup passed for 81 chunks and
|
||||
12,798 block samples: `yPos=-32`, 52-long heightmaps, no heightmap warnings.
|
||||
World datapacks and the spawn anchor remained unchanged.
|
||||
- Storage Box upload/readback, public manifest/index checksums, DH metadata,
|
||||
named archive, latest alias, Prism ZIP and desktop/mobile page checks passed.
|
||||
- Immutable web release:
|
||||
`7fe95d9b696d0b601688d8eecef7efd890b3d113d3848234ea0627bfdf7b3a6d`.
|
||||
- Stopped backup: `/srv/minecraft/backups/wowMineMap-before-dh-20261113T001417Z`,
|
||||
with sibling `-mods` and `-config` copies.
|
||||
|
||||
Targeted activation uses importer unit `1kl0ca17k46iiqdm8v8ri2w7lmgl069p` and
|
||||
pre-start file `gm0yv2p7913yw4kh0jwgw7mkgcw1gkxj-worldofsosal-v7-start-pre`.
|
||||
Reconcile the persistent `50-distances.conf` override before a future full
|
||||
system activation. Older source archives and web releases remain available.
|
||||
|
||||
## Verification: v6 on 2026-11-12
|
||||
|
||||
- Java 21 addon build passed against NeoForge 21.1.250, with no extra runtime
|
||||
libraries and no server installation.
|
||||
- The actual game window showed v6 before joining and after whitelist denial;
|
||||
the rejected login added no success message.
|
||||
- Successful multiplayer login showed the full local chat line. Dimension
|
||||
change kept one line; disconnect/reconnect produced exactly one new line.
|
||||
- A real packwiz update from the published 598-entry v5 snapshot to the
|
||||
600-entry v6 snapshot installed the addon and metadata and preserved custom
|
||||
`options.txt`. A mismatched manifest/metadata release was rejected.
|
||||
- Chromium downloaded `WorldOfSosal-v6-version-display.mrpack`; its bytes matched
|
||||
the source archive. Desktop and phone-width page captures were inspected.
|
||||
- Public Minecraft status returned `WorldOfSosal v6-version-display`; live
|
||||
view and simulation distance remained 32, with the previous Java/start command.
|
||||
- Storage Box upload/download comparison passed; older versions remain.
|
||||
|
||||
One additional Quick Play QA startup failed in existing Puffish Skills 0.19.0:
|
||||
`ConcurrentModificationException` in `RewardRegistry.register`, followed by a
|
||||
secondary Sodium configuration error. Normal menu-based startups and joins
|
||||
worked. That startup failure was not repaired by this version-display change;
|
||||
reproduction without the addon has not been established.
|
||||
|
||||
Targeted server activation preserves the current platform: the existing
|
||||
`50-distances.conf` pre-start override now uses the v6 properties template.
|
||||
Reconcile that override on a future full server configuration activation.
|
||||
|
||||
## Verification: v5 on 2026-11-12
|
||||
|
||||
- Published `v5-optimizations` on hectic-lab; immutable web release
|
||||
`b8416b890f24578dbaeabd2b2bede19ca8a1e01f9e2b532b04023188fa407c30`.
|
||||
- Public HTTPS checks passed for the 598-entry index, the index hash,
|
||||
client Lithium settings, archive SHA-256, and Prism's NeoForge 21.1.250 pin.
|
||||
- Real packwiz transition from v4 to v5 passed and preserved modified
|
||||
`options.txt`.
|
||||
- Verified all 132 production server JARs against the same archive; no extra
|
||||
JARs were present. The server started normally with the expected server
|
||||
Lithium settings and the existing spawn datapack.
|
||||
- Compared the production region against its fresh pre-update backup:
|
||||
81 chunks and 12,798 sampled blocks were unchanged, with `yPos=-32`,
|
||||
52-long heightmaps, and no heightmap-size warnings.
|
||||
- The actual client entered an isolated Azeroth server and rendered the spawn
|
||||
from multiple angles. This used software rendering, not an FPS benchmark.
|
||||
- See `wowmine-optimizations.md` for versions, compatibility rules,
|
||||
accepted warnings, and remaining limitations.
|
||||
|
||||
## Verification: v4 on 2026-11-12
|
||||
|
||||
- Published `v4-native-height` on hectic-lab. Source archive SHA-256 is
|
||||
`4a197bc039d6684fa1e652e1242b15d87bd8758de895ea8c4f8455ce6a712df1`;
|
||||
the immutable web release is
|
||||
`1abb0ff1a737f426c8e0cf3cd521875e32e06d9fe4582b8d78ea807ca87f2008`.
|
||||
- Verified all 129 server mod files against the new archive before publication.
|
||||
The running server already had the same mod set, so updating its source pin
|
||||
and cache required no game restart or world changes.
|
||||
- Public HTTPS checks passed for the manifest, index checksum, and Prism ZIP.
|
||||
The ZIP pins Minecraft 1.21.1 and NeoForge 21.1.250.
|
||||
- A real packwiz-installer upgrade from v3 to v4 in an isolated Prism directory
|
||||
removed Dynamic Height and `sable_dynamicheight_compat`, preserved modified
|
||||
`options.txt`, and corrected an intentionally mismatched NeoForge 21.1.249
|
||||
component to 21.1.250. All 121 downloaded client files and 470 overrides matched
|
||||
the new archive, except the intentionally preserved options.
|
||||
- The installer test served byte-identical published release snapshots over
|
||||
loopback HTTP: neuro's HTTPS route stalled on the public index, while public
|
||||
HTTPS checks from the workstation succeeded. A full Minecraft GUI login was
|
||||
not observed in this update.
|
||||
- BFS publication is excluded because that mirror is unavailable.
|
||||
|
||||
## Verification on 2026-09-18
|
||||
|
||||
- Source archive SHA-256:
|
||||
@@ -74,10 +813,13 @@ client pack. packwiz-installer 0.5.14 understands NeoForge components in Prism's
|
||||
- Automatic updater add/remove/config-update and options-preservation behavior
|
||||
tested with an actual packwiz-installer run against a controlled update fixture.
|
||||
|
||||
## WoW server and public entry point
|
||||
## Historical WoW relay entry point (retired 2026-11-17)
|
||||
|
||||
The WoW map and WorldOfSosal mods share the `wowMineMap` server on neuro,
|
||||
listening on 25567. There is no separate WorldOfSosal world/server on 25568.
|
||||
The following records the original relay deployment. Current connections use
|
||||
`wowmine.bfs.band:35565` directly, as described above.
|
||||
|
||||
The WoW map and wowmine mods share the `wowMineMap` server on neuro,
|
||||
listening on 25567. There is no separate wowmine world/server on 25568.
|
||||
The client pack and server both pin Minecraft 1.21.1 / NeoForge 21.1.250.
|
||||
Map import runs before mod import, and both finish before Minecraft starts.
|
||||
|
||||
@@ -119,7 +861,7 @@ Useful checks:
|
||||
|
||||
```sh
|
||||
ssh neuro systemctl status minecraft-world-import-wowMineMap \
|
||||
minecraft-modpack-import-worldOfSosal minecraft-server-wowMineMap \
|
||||
minecraft-modpack-import-wowmine minecraft-server-wowMineMap \
|
||||
minecraft-wow-tunnel --no-pager
|
||||
ssh hectic-lab systemctl status minecraft-wow-proxy.socket --no-pager
|
||||
ssh neuro journalctl -u minecraft-server-wowMineMap -n 80 --no-pager
|
||||
@@ -154,7 +896,10 @@ SHA-256 was verified before extraction.
|
||||
options.txt retained its checksum. The production pack contents were unchanged.
|
||||
- Restored the instance's regular current/pack.toml update URL.
|
||||
|
||||
## Independent BFS entry point (2026-09-19)
|
||||
## Historical independent BFS entry point (2026-09-19, retired)
|
||||
|
||||
These deployment and verification notes describe the former BFS relay.
|
||||
Current connections use `wowmine.bfs.band:35565`; the active download URL is above.
|
||||
|
||||
- Server: `wow.bfs.band`; downloads: https://store.bfs.band/minecraft/.
|
||||
- BFS is `bfs.poland.xray` (91.198.166.181), the host of Element.
|
||||
@@ -164,18 +909,14 @@ SHA-256 was verified before extraction.
|
||||
Host settings remain in `minecraft-wow-proxy.nix` (hectic-lab) and
|
||||
`minecraft-wow.nix` (BFS). A dedicated HTTPS virtual host serves `store.bfs.band`. The legacy
|
||||
`bfs.band/minecraft/` URLs remain available for already imported instances.
|
||||
- Downloaded BFS ZIP seeds `wow.bfs.band` and uses the stable manifest
|
||||
`https://store.bfs.band/minecraft/world-of-sosal/current/pack.toml`. It does not
|
||||
redirect installation metadata to hectic-lab. Upstream mod and Java/loader
|
||||
downloads still use their original providers (e.g. Modrinth, GitHub, Mojang).
|
||||
- Existing hectic-lab instances can be migrated without reinstalling mods:
|
||||
in Edit / Settings / Custom commands, replace only the manifest URL in
|
||||
Pre-launch command with the BFS URL above. Change the multiplayer server
|
||||
address to wow.bfs.band. New users should import the ZIP from BFS.
|
||||
- `script/publish-prism-mirrors.py` builds host-specific ZIPs from one archive
|
||||
and publishes both mirrors. It checks that the running neuro server's cached
|
||||
archive has the same SHA-256. Each host's switch is atomic; publication across
|
||||
two hosts is sequential, so rerun the command if it exits unsuccessfully.
|
||||
- The historical BFS ZIP seeded `wow.bfs.band` and its own stable manifest.
|
||||
Upstream mod and Java/loader downloads used their original providers
|
||||
(e.g. Modrinth, GitHub, Mojang). BFS is retired; use the canonical client
|
||||
entry point above when migrating an installed profile.
|
||||
- At that time `script/publish-prism-mirrors.py` built host-specific ZIPs from
|
||||
one archive and published both mirrors after checking neuro's cached archive
|
||||
SHA-256. It now delegates only canonical publication on neuro, as described
|
||||
above.
|
||||
- Both configurations were deployed; public Minecraft status/ping succeeds
|
||||
on BFS (~125 ms), HTTPS serves the pack, and Element/Matrix HTTP checks pass.
|
||||
|
||||
@@ -184,7 +925,7 @@ all overrides match the source archive. A second updater run performed no
|
||||
downloads and preserved options.txt. The public BFS login protocol reached
|
||||
online authentication; the earlier full GUI login used hectic-lab.
|
||||
|
||||
## BFS DNS and dedicated download site (2026-09-19)
|
||||
## Historical BFS DNS and download site (2026-09-19)
|
||||
|
||||
Porkbun DNS, TTL 600:
|
||||
|
||||
@@ -196,12 +937,12 @@ Porkbun DNS, TTL 600:
|
||||
|
||||
Players enter `wow.bfs.band` without a port in Minecraft Java. In Porkbun,
|
||||
SRV Priority is `0`, and Target is `0 25568 wow.bfs.band` (weight, port, host).
|
||||
The root download URL https://store.bfs.band/ redirects to the WorldOfSosal page.
|
||||
The root download URL https://store.bfs.band/ redirects to the wowmine page.
|
||||
The NixOS virtual host obtains and renews its HTTPS certificate automatically.
|
||||
The publication script now seeds this update URL and the port-free game address.
|
||||
Existing BFS instances retain working legacy update URLs; switching their
|
||||
pre-launch manifest to the new store host is optional. Root bfs.band remains
|
||||
the existing Element entry point.
|
||||
Those legacy BFS update URLs are now retired. Installed clients must switch
|
||||
their pre-launch manifest to the canonical host. Root bfs.band was the
|
||||
existing Element entry point.
|
||||
|
||||
## RCON and authentication (2026-09-19)
|
||||
|
||||
|
||||
@@ -0,0 +1,338 @@
|
||||
# wowmine recipe audit — 2026-11-21
|
||||
|
||||
## Scope and evidence
|
||||
|
||||
All 228 live server JAR SHA-256 hashes matched the v16 QA fixture. The audit
|
||||
covered 18,868 packaged recipe declarations, including embedded JARs and optional
|
||||
built-in datapacks. Vanilla recipes were also inspected to check conversion
|
||||
costs. Live filesystem world datapacks contained no recipe JSONs.
|
||||
|
||||
These are static findings from recipe JSON, ingredient tags, and the installed
|
||||
Farmer's Delight implementation. Duplication cycles below are arithmetic proofs
|
||||
of the declared recipes, not live crafting trials. Runtime-generated recipes,
|
||||
conditional loading, tag replacement, loot, custom machine behavior, and item
|
||||
remainders limit completeness. Packaged declarations are not necessarily loaded
|
||||
recipes. Ordinary raw foods such as sushi, tartare and ceviche, vanilla food
|
||||
crafting, agriculture, and normal ore processing were not automatically called
|
||||
exploits.
|
||||
|
||||
Fixture JAR names below are audit aliases. Production filenames differ, but
|
||||
their hashes match. Recipe IDs identify the resources independently of names.
|
||||
|
||||
## Initial beef recipe removal
|
||||
|
||||
Only `cuttingdelight-dev:cutting/duplicate1` was disabled. Cutting Delight 1.1.1
|
||||
ships it in `data/cuttingdelight-dev/recipe/cutting/duplicate1.json`:
|
||||
|
||||
- Input: one `minecraft:beef`; tool: `#c:tools/knife`.
|
||||
- Output: one `minecraft:cooked_beef`; no heat.
|
||||
- Existing `wowmine-rules/pack.mcmeta` now filters that exact resource from
|
||||
lower-priority packs. No JAR or client release was changed.
|
||||
- `farmersdelight:cutting/beef`, producing two `farmersdelight:minced_beef`,
|
||||
and both cutting-board conversion recipes are outside the filter.
|
||||
|
||||
NixOS build, closure transfer and activation exited zero. Dry activation changed
|
||||
only Minecraft. Native profile:
|
||||
`/nix/store/bzn51xx459gwf7f8akgply0gdchabdmf-nixos-system-neuro-26.05.20261006.b253099`.
|
||||
Server startup loaded **18,470 recipes**, down from **18,471**, and reached
|
||||
`Done`. RCON returned `Unknown recipe: cuttingdelight-dev:cutting/duplicate1`.
|
||||
Live metadata SHA-256 matched source:
|
||||
`b0c73f88b0d52310ffb574e65637ac0e0a0df179b4cf2a55c8aebaac77f5f8ef`.
|
||||
|
||||
An earlier live `/reload` failed and retained old data. Its cause was a duplicate
|
||||
`mango_compat_delight:cutting/stripped_cinnamon_log` registration in Mango's Compat
|
||||
Delight. A normal NixOS Minecraft restart applied the filter successfully. The
|
||||
Mango reload defect remains; it was not changed as part of this removal.
|
||||
|
||||
## Selected dismantling corrections
|
||||
|
||||
The first table's deterministic over-refunds are corrected through the same
|
||||
server datapack, under their original `farmerscuttingeverything:cutting/` IDs:
|
||||
|
||||
| ID suffix | Corrected return |
|
||||
| --- | --- |
|
||||
| `iron_door` | One door -> two iron ingots; exact original material cost. |
|
||||
| `iron_bars` | One bar -> three iron nuggets; 16 bars return 48 nuggets against a 54-nugget crafting cost. |
|
||||
| `armor_stand` | One stand -> six sticks and one smooth stone slab; exact cost. |
|
||||
| `bowl` | Four bowls -> three oak planks; shapeless crafting, exact cost. |
|
||||
| `firework_rocket` | Three rockets -> one gunpowder; shapeless crafting, paper is lost. |
|
||||
| `copper_grate`, `exposed_copper_grate`, `weathered_copper_grate`, `oxidized_copper_grate` | One grate -> two copper ingots; four return eight ingots against the cheapest nine-ingot stonecutting route. |
|
||||
|
||||
Single-item bowl and rocket cutting cannot express the required fractional
|
||||
material returns without adding probabilities. Their batch crafting recipes
|
||||
replace those cutting recipes instead.
|
||||
|
||||
The erroneous `honeycomb` self-duplication recipe is filtered; the existing
|
||||
`honeycomb_block` recipe still returns four honeycombs from one block, exactly
|
||||
matching its cost. No no-op honeycomb-to-itself recipe is added.
|
||||
|
||||
Fortune behavior and `spectral_arrow` are deferred and unchanged. Normal
|
||||
manufacturing recipes, other audit findings and mod JARs are unchanged. The
|
||||
tables below document the original audited recipes, not these corrected returns.
|
||||
|
||||
The corrected profile was built, copied and activated successfully:
|
||||
`/nix/store/wk8ffl2jhwmdbpmp66pirvyxzcijl2yc-nixos-system-neuro-26.05.20261006.b253099`.
|
||||
Only Minecraft was restarted. The server loaded 18,469 recipes and reached
|
||||
`Done`; none of the nine overrides produced recipe-load errors. Live hashes
|
||||
of all nine recipe files and `pack.mcmeta` matched the built source. Metadata
|
||||
SHA-256 is `8b01b777bee79852582e9e6b05bfafb308772b7756856fdf82779b04e0cd5de7`.
|
||||
Material-budget checks passed for every changed return. These checks verify
|
||||
JSON, costs, deployment and loading; manual in-game dismantling was not run.
|
||||
|
||||
## Rotten flesh fermentation removal — 2026-11-22
|
||||
|
||||
The server datapack filters only
|
||||
`vintagedelight:fermenting/leather_from_fermenting`, supplied by
|
||||
`vintagedelight-kots-0.3.3.jar`. It converts four rotten flesh into one leather
|
||||
in a Fermenting Jar, with a base processing time of 4000 ticks.
|
||||
|
||||
The exact filter uses namespace `^vintagedelight$` and resource path
|
||||
`^recipe/fermenting/leather_from_fermenting\.json$`. The previous beef and
|
||||
honeycomb filters remain intact. The other 196 Vintage Delight recipe
|
||||
resources are outside this filter; the jar, station, other leather recipes
|
||||
and client release are unchanged.
|
||||
|
||||
Native profile:
|
||||
`/nix/store/gbzgzm80srgksaq9v3pkrxr7w5w37h0h-nixos-system-neuro-26.05.20261006.b253099`.
|
||||
Build, copy, dry activation and switch exited zero; only Minecraft restarted.
|
||||
It reached `Done` at 13:32:51 UTC. Live metadata matches source SHA-256
|
||||
`be49e0f020988fef98a5d77e1bfe0accbed1446e4ae118417f9224ef854b283b`.
|
||||
|
||||
A standalone probe used the installed Minecraft 1.21.1
|
||||
`MultiPackResourceManager`, the identical Vintage JAR and the before/after
|
||||
datapacks. The positive control exposed 197 Vintage recipe resources; applying
|
||||
the new filter exposed 196, excluding exactly the requested resource. The
|
||||
remaining resource-ID sets were identical. Probe code:
|
||||
`/tmp/wowmine-leather-filter/ResourceFilterProbe.java`.
|
||||
|
||||
The general startup count remained 18442 and was not used as proof of this
|
||||
specific removal. No players were online for a brewing trial, and no recipe
|
||||
book, inventory or player-state operations were performed. Activation held
|
||||
the existing maintenance/backup lock and preserved the old metadata under
|
||||
neuro's `/var/tmp/wowmine-leather-filter/`.
|
||||
|
||||
## Packed and blue ice cutting removal — 2026-11-22
|
||||
|
||||
The server datapack now filters all four audited ice-unpacking recipes:
|
||||
|
||||
- `farmerscuttingeverything:cutting/packed_ice`
|
||||
- `farmerscuttingeverything:cutting/blue_ice`
|
||||
- `extradelight:cutting/packed_ice_axe`
|
||||
- `extradelight:cutting/blue_ice_axe`
|
||||
|
||||
The first pair uses a pickaxe; the second uses an axe. Each unpacked one
|
||||
packed ice into nine ice, or one blue ice into nine packed ice. These
|
||||
reverse recipes are disabled; machine freezing/washing recipes, snow
|
||||
recipes and ordinary ice crafting are unchanged.
|
||||
|
||||
Both audited JARs match production SHA-256: Farmer's Cutting Everything
|
||||
`3c8c9681bc4b7d9f2882d0df3dabdd44cb78c2c4930b4603c8436fbb383e86c4`,
|
||||
Extra Delight `5a26dcd540efdba068894e27a3b4d5663e29e236aff948215f4919684bb3cffd`.
|
||||
An installed Minecraft `MultiPackResourceManager` probe compared the
|
||||
previous and new rules: 724 -> 722 Farmer's Cutting Everything recipe
|
||||
resources and 2030 -> 2028 Extra Delight resources. Both positive controls
|
||||
contained their two targets; each resulting resource set equals its
|
||||
original set minus exactly those targets. Probe:
|
||||
`/tmp/wowmine-ice-filter/IceFilterProbe.java`.
|
||||
|
||||
Native NixOS profile:
|
||||
`/nix/store/dr2ng9cyag3qadr3lg420brnjfrdllpp-nixos-system-neuro-26.05.20261006.b253099`.
|
||||
Build, closure copy, dry activation and switch exited zero. Activation held
|
||||
the existing maintenance/backup lock and restarted Minecraft. Live metadata
|
||||
SHA-256 matches source:
|
||||
`0054e20934eb834823f8da0a0a50afca3c3bb55b8f34c7f1e7699d0a0674319c`.
|
||||
All 14 rules-pack file paths remain; only `pack.mcmeta` changed. Previous
|
||||
rules are saved at neuro `/var/tmp/wowmine-ice-filter/rules-before/`.
|
||||
Backup timer is active. No mod/client release or player NBT was edited.
|
||||
No manual in-game ice-cutting trial was performed.
|
||||
|
||||
The historical tables below still show the original recipes, including
|
||||
already corrected or disabled entries; consult the removal sections above.
|
||||
|
||||
## One-string wool cutting — 2026-11-22
|
||||
|
||||
The server datapack filters `rusticdelight:wool`, whose cutting recipe uses
|
||||
`#minecraft:wool` and shears to return two string. The exact resource filter
|
||||
is namespace `^rusticdelight$`, path `^recipe/wool\.json$`.
|
||||
|
||||
All 16 Farmer's Cutting Everything color-specific wool recipes remain:
|
||||
each returns exactly one string using shears. Rustic Delight's separate
|
||||
carpet recipe, also returning one string, remains unchanged.
|
||||
|
||||
An installed Minecraft `MultiPackResourceManager` probe exposed 282 Rustic
|
||||
Delight recipe resources before the filter and 281 afterward, excluding
|
||||
exactly `recipe/wool.json` while retaining `recipe/wool_carpet.json`.
|
||||
Farmer's Cutting Everything's 722 resources were identical before and after;
|
||||
the probe parsed all 16 wool outputs and verified one string per recipe.
|
||||
Production Rustic Delight SHA-256 matches the probe fixture:
|
||||
`ad3d796132984a8d06184d7c9543d6f8b87df4dac33a5dd9b8f124e95afe6801`.
|
||||
Probe: `/tmp/wowmine-wool-filter/WoolFilterProbe.java`.
|
||||
|
||||
Native NixOS profile:
|
||||
`/nix/store/p03f64gvyg48jpwgck1kj24ssrf7qnwr-nixos-system-neuro-26.05.20261006.b253099`.
|
||||
Build, copy, dry activation and switch exited zero. Activation held the
|
||||
existing maintenance/backup lock and restarted Minecraft. All 14 rules-pack
|
||||
file paths remain; only `pack.mcmeta` changed. Live/source metadata SHA-256:
|
||||
`02d10042f637d43fba1c1e282a4bed68246a509a888d0ccc50a4d9448ee9498d`.
|
||||
Prior rules are saved at neuro `/var/tmp/wowmine-wool-filter/rules-before/`;
|
||||
backup timer is active. No mod/client release or player NBT was edited.
|
||||
No manual in-game wool-cutting trial was performed.
|
||||
|
||||
Scope is the reported cutting-board conflict. Inspection also found
|
||||
`create:milling/wool` (one string), `create:crushing/wool` (two string plus
|
||||
a 50% third), and `minecraft:string` from Peruvian's Delight (four string).
|
||||
Those machine/crafting routes are unchanged; broader scope was asked about
|
||||
separately and had no answer when this change was applied.
|
||||
|
||||
## Direct duplication and mismatched conversion ratios
|
||||
|
||||
Unless noted, cutting IDs have prefix `farmerscuttingeverything:cutting/` and
|
||||
come from `farmers-cutting-everything.jar`. Cutting consumes one ordinary tool
|
||||
durability per operation; this cost does not correct the material ratios.
|
||||
|
||||
| Cutting ID suffix | Input and output | Loop or issue |
|
||||
| --- | --- | --- |
|
||||
| `honeycomb` | 1 honeycomb -> 4 honeycomb; knife | Direct self-duplication. |
|
||||
| `iron_door` | 1 iron door -> 6 iron doors; pickaxe | Direct self-duplication; output really is doors. |
|
||||
| `iron_bars` | 1 bar -> 5 iron nuggets; pickaxe | Vanilla `minecraft:iron_bars`: 6 ingots -> 16 bars. 54 nuggets become 80. |
|
||||
| `armor_stand` | Stand -> 7 sticks + smooth stone slab; axe | Vanilla stand costs 6 sticks + same slab. Gain one stick. |
|
||||
| `bowl` | Bowl -> oak plank; axe | Vanilla `minecraft:bowl`: 3 planks -> 4 bowls. 3 oak planks become 4. |
|
||||
| `firework_rocket` | Rocket -> paper + guaranteed gunpowder + another gunpowder at 75%; knife | Vanilla `minecraft:firework_rocket_simple`: paper + gunpowder -> 3 rockets. At least triple both inputs. |
|
||||
| `copper_grate` | Grate -> copper block; pickaxe | Vanilla `minecraft:copper_grate_from_copper_block_stonecutting`: block -> 4 grates. Fourfold copper. |
|
||||
| `exposed_copper_grate` | Grate -> exposed copper block; pickaxe | Same cycle using `minecraft:exposed_copper_grate_from_exposed_copper_stonecutting`. |
|
||||
| `weathered_copper_grate` | Grate -> weathered copper block; pickaxe | Same cycle using `minecraft:weathered_copper_grate_from_weathered_copper_stonecutting`. |
|
||||
| `oxidized_copper_grate` | Grate -> oxidized copper block; pickaxe | Same cycle using `minecraft:oxidized_copper_grate_from_oxidized_copper_stonecutting`. |
|
||||
| `spectral_arrow` | Arrow -> 2 glowstone dust + arrow at 95%; axe | Vanilla recipe: 4 dust + arrow -> 2 spectral arrows. Fortune I guarantees arrow recovery: retain dust, double arrows. |
|
||||
|
||||
Additional cross-mod cycles:
|
||||
|
||||
| Mod / exact IDs | Cycle |
|
||||
| --- | --- |
|
||||
| Ramadan Delight: `ramadandelight:stonecutting/mosaic_tiles` or `ramadandelight:mosaic_tiles`, then `ramadandelight:cutting/cutting/calcite_from_mosaic_tiles` | One calcite becomes one tile; one tile returns four calcite with a pickaxe. Fourfold gain. |
|
||||
| Immortalers Delight: `immortalers_delight:sniffer_fur_half_tatami_mat`, then `immortalers_delight:sniffer_fur_full_tatami_mat2` | One full mat -> two half mats -> two full mats. No tool or machine required. |
|
||||
| Ice conversions listed below | Ninefold gain per packing/unpacking tier. |
|
||||
| DnDesires `dndesires:freezing/snow_block_from_snowball`, then Farmer's Cutting Everything `farmerscuttingeverything:cutting/snow_block` | One snowball -> one snow block -> four snowballs; shovel required for cutting. |
|
||||
|
||||
Every combination of a forward and reverse recipe in each following row
|
||||
produces the indicated amplification:
|
||||
|
||||
| Tier | Forward: one item -> one compressed item | Reverse: one compressed item -> nine inputs |
|
||||
| --- | --- | --- |
|
||||
| Ice -> packed ice | `create:splashing/ice`; `dndesires:freezing/packed_ice_from_ice`; `create_dragons_plus:freezing/packed_ice_from_ice` | `farmerscuttingeverything:cutting/packed_ice` (pickaxe); `extradelight:cutting/packed_ice_axe` (axe) |
|
||||
| Packed ice -> blue ice | `create_ultimate_factory:splashing_packed_ice`; `dndesires:freezing/blue_ice_from_packed_ice`; `create_dragons_plus:freezing/blue_ice_from_packed_ice` | `farmerscuttingeverything:cutting/blue_ice` (pickaxe); `extradelight:cutting/blue_ice_axe` (axe) |
|
||||
|
||||
Create, DnDesires and Create Dragons Plus require their processing machinery.
|
||||
These are cross-mod ratio mismatches, not instantaneous crafting-only loops.
|
||||
|
||||
## Probabilistic salvage amplification
|
||||
|
||||
All cutting IDs here have prefix `farmerscuttingeverything:cutting/`.
|
||||
Installed FD config sets `cuttingBoardFortuneBonus = 0.1`: Fortune adds
|
||||
0.1 per level to result probability, with effective cap 100%. Probability
|
||||
applies per output item. Expected values below use Fortune III.
|
||||
|
||||
| Suffix | Cost of crafting one batch | Expected recovered batch |
|
||||
| --- | --- | --- |
|
||||
| `activator_rail` | 6 iron + 2 sticks + redstone torch -> 6 rails | 6 iron, 3.9 sticks, 2.7 torches |
|
||||
| `detector_rail` | 6 iron + stone pressure plate + redstone -> 6 rails | 6 iron, 2.7 plates, 2.7 redstone |
|
||||
| `powered_rail` | 6 gold + stick + redstone -> 6 rails | 6 gold, 2.7 sticks, 2.7 redstone |
|
||||
| `rail` | 6 iron + stick -> 16 rails | 8 iron, 16 sticks |
|
||||
| `andesite` | Diorite + cobblestone -> 2 andesite | 1.6 diorite, 2 cobblestone |
|
||||
| `coarse_dirt` | 2 dirt + 2 gravel -> 4 coarse dirt | 4 dirt, 3.2 gravel |
|
||||
| `arrow` | Flint + stick + feather -> 4 arrows | 2.2 flint, 4 sticks, 2.2 feathers |
|
||||
| `torch` | Coal + stick -> 4 torches | 2.2 coal, 4 sticks |
|
||||
| `soul_torch` | Coal + stick + soul sand -> 4 torches | 2.2 coal, 4 sticks, 2.2 soul sand |
|
||||
| `tripwire_hook` | Iron + stick + oak plank -> 2 hooks | 1.6 iron, 2 sticks, 2 oak planks |
|
||||
| `fire_charge` | Gunpowder + blaze powder + coal -> 3 charges | 1.89 gunpowder, 1.89 blaze powder, 3 coal |
|
||||
| `lead` | 4 string + slime ball -> 2 leads | 4 string, 1.6 slime balls |
|
||||
| `scaffolding` | 6 bamboo + string -> 6 scaffolding | 6 bamboo, 2.52 string |
|
||||
| `tinted_glass` | 4 amethyst shards + glass -> 2 tinted glass | 4 shards, 1.6 glass |
|
||||
|
||||
All counterpart crafting IDs are `minecraft:<suffix>`. Scaffolding also has
|
||||
`mynethersdelight:crafting/scaffolding_alt`, whose bamboo/string alternatives
|
||||
reach the same cycle. Pickaxe is required except shovel for coarse dirt, axe
|
||||
for arrows/torches/soul torches/scaffolding, and knife for leads.
|
||||
|
||||
Even without Fortune, andesite, arrows, coarse dirt, torches, soul torches and
|
||||
tripwire hooks return their consumed resources in expectation plus surplus
|
||||
other material. Expected-value cycles can fail individual batches; they are
|
||||
not guaranteed perpetual loops from a tiny starting stock.
|
||||
|
||||
## Strong resource conversions and balance choices
|
||||
|
||||
These are not all bugs. Some intentionally add resource-production routes.
|
||||
|
||||
| Source / recipe ID | Exact conversion and qualification |
|
||||
| --- | --- |
|
||||
| Farmer's Cutting Everything `farmerscuttingeverything:cutting/copper_bulb` | Vanilla crafting spends 3 copper blocks + blaze rod + redstone for 4 bulbs. Cutting returns 4 copper blocks, expected 1 redstone and 2 blaze powder without Fortune. Gains copper but spends fuel material and tool wear. |
|
||||
| Same: `cutting/exposed_copper_bulb`, `cutting/weathered_copper_bulb`, `cutting/oxidized_copper_bulb` | Each aged bulb also returns the corresponding full copper block, redstone at 25%, blaze powder at 50%. |
|
||||
| Same: `cutting/nether_gold_ore` | Nether gold ore + pickaxe -> 2 gold nuggets, another 4 nuggets at 75%, 2 gold ingots at 50%, netherrack at 25%; no smelting. |
|
||||
| Same: `cutting/bell` | Bell + pickaxe -> stick + gold block. Strong trade/loot-to-gold conversion. |
|
||||
| Same: `cutting/enchanted_golden_apple` | Enchanted golden apple + pickaxe -> apple + 8 gold blocks. Consumes valuable food. |
|
||||
| Same: `cutting/trident` | Trident + pickaxe -> stick, 3 prismarine shards at 50%, heart of sea at 10%. |
|
||||
| Same: `cutting/nether_star` | Nether star, using clock -> 3 wither-skeleton skulls. Consumes star and permits another Wither fight. |
|
||||
| Same: `cutting/campfire` | Campfire + axe -> 3 sticks, guaranteed charcoal, 2 more charcoal at 50%, another at 25%. No heating operation. |
|
||||
| DnDesires `dndesires:seething/magma_block_from_netherrack` + FCE `farmerscuttingeverything:cutting/magma_block` | One netherrack -> magma block -> 2 magma cream + two netherrack rolls at 75% each. Fortune III guarantees both: net gain one netherrack and two cream. Requires seething setup and pickaxe wear. |
|
||||
| DnDesires `dndesires:seething/diamond_shard_from_coal_block` | Coal block -> diamond shard at 25%; 4 shards -> diamond via `dndesires:crafting/diamond_from_diamond_shard`. Expected 16 coal blocks per diamond; seething required. |
|
||||
| DnDesires `dndesires:seething/diamond_shard_from_deepslate_coal_ore` | Deepslate coal ore -> diamond shard at 75%; expected 5 1/3 ore per diamond. |
|
||||
| Create Ultimate Factory `create_ultimate_factory:crushing_netherite` | Nether-bricks block -> nether brick, another at 25%, netherite scrap at 0.5%; crushing time 350. Expected 200 consumed blocks per scrap. |
|
||||
| Same: `create_ultimate_factory:crushing_blackstone` | Blackstone -> wither-skeleton skull at 1%, blackstone returned at 25%; condition requires absent `wstweaks`. |
|
||||
| Same: `create_ultimate_factory:crushing_coral` | Coral-tag item -> heart of sea at 1%; crushing time 250. |
|
||||
| Same: `create_ultimate_factory:compacting_coalblock` | 9 coal blocks + 100 mB lava -> diamond at 30%; heated compacting. Expected 270 coal per diamond. |
|
||||
| Create New Age `create_new_age:sequenced_assembly/enchanted_golden_apple` | Apple + total 8 gold blocks + 8,000,000 energy -> enchanted golden apple. Not an apple-only recipe. |
|
||||
| Apothic Enchanting `apothic_enchanting:infusion/echo_shard` | Echo shard -> 4 shards through advanced enchanting; Eterna 70, Quanta 50, Arcana 50 required. Intended gated infusion. |
|
||||
| Same: `apothic_enchanting:infusion/carrot` | Carrot -> golden carrot through enchanting; Eterna 20, Quanta 10–30. |
|
||||
| Iron's Spellbooks `irons_spellbooks:ancient_debris_from_pyrium` | Pyrium ingot -> 5 ancient debris. No cheap pyrium-producing recipe was established. |
|
||||
|
||||
DnDesires seething is not heatless crafting: its implementation requires
|
||||
seething catalysts and the appropriate heated setup. Ordinary Create washing
|
||||
of crushed metals is intended timed machinery processing and was not counted
|
||||
as a cutting-board exploit.
|
||||
|
||||
## Food preparation without heat
|
||||
|
||||
These are the full food candidates found by the instant-processing checks.
|
||||
They include possible mistakes and deliberate recipe abstractions; they are
|
||||
not all equivalent to raw beef becoming a cooked steak.
|
||||
|
||||
| Source / recipe ID | Input -> output |
|
||||
| --- | --- |
|
||||
| Fast Delights `fastdelights:bacon_cheeseburger` | 2 buns + **raw FD bacon** + cooked beef patty + flaxen cheese wedge + sliced pickles -> bacon cheeseburger |
|
||||
| Same: `fastdelights:chicken_bacon_cheeseburger` | 2 buns + **raw FD bacon** + chicken patty + cheese wedge + sliced pickles -> chicken bacon cheeseburger |
|
||||
| Same: `fastdelights:crafting/bacon_cheeseburger_from_cheeseburger` | Cheeseburger + **raw FD bacon** -> bacon cheeseburger |
|
||||
| Same: `fastdelights:crafting/chicken_n_cheeseburger_from_cheeseburger` | Chicken-and-cheese burger + **raw FD bacon** -> chicken bacon cheeseburger |
|
||||
| Hearth and Harvest `hearthandharvest:meat_pizza` | 3 raw-meat-tag items + 3 cheese + 2 FD wheat dough + tomato sauce -> meat pizza |
|
||||
| Same: `hearthandharvest:meat_pizza_from_cheese_pizza` | 3 raw-meat-tag items + cheese pizza -> meat pizza |
|
||||
| Same: `hearthandharvest:pizza` | Raw meat + vegetable + mushroom + 3 cheese + 2 dough + tomato sauce -> pizza |
|
||||
| Same: `hearthandharvest:pizza_from_cheese_pizza` | Raw meat + vegetable + mushroom + cheese pizza -> pizza |
|
||||
| Slavic Delight `slavic_delight:crab_sticks` | Minced cod + red dye -> crab sticks |
|
||||
| Roll Delight `roll_delight:nether_roll_recipe` | 2 raw porkchops + cooked nether wart -> 2 nether rolls |
|
||||
| Valheim Delight `valheim_delight:fish_wrap_crafting` | Bread + safe-raw-fish-tag item + cabbage + onion -> fish wrap |
|
||||
| Same: `valheim_delight:jerky_recipe` | Raw-meat-tag item + onion + honey bottle -> 3 jerky |
|
||||
| Arbitrary Delight `arbitrarydelight:cutting/pepperonis` | FD minced beef + knife -> 2 pepperoni |
|
||||
| Baldej Delights `baldejdelights:crafting/egg_barbecue` | Stick + 2 eggs -> egg barbecue |
|
||||
|
||||
Raw-meat and raw-fish tags admit multiple installed ingredients; these rows
|
||||
represent each recipe with all its tag alternatives, not only beef or cod.
|
||||
The four bacon recipes are especially plausible wrong-ingredient errors.
|
||||
Pizzas bypass baking. Cured meat and raw-fish wraps may be intentional.
|
||||
|
||||
## Packaged examples and cases not established as usable
|
||||
|
||||
- `cutt_promix:ex`, in legacy `data/cutt_promix/recipes/ex.json`:
|
||||
cabbage + knife -> 2 raw gold, plus 2 wheat seeds at 50%. It uses the old
|
||||
plural directory, an unresolved knife tag and an obsolete result encoding.
|
||||
No evidence established this as an active 1.21.1 recipe.
|
||||
- YAFDA contributes optional raw empowered-meat/venison slices to the cooked-meat
|
||||
tag. This could affect `farmersdelight:barbecue_stick` and
|
||||
`vintagedelight:meat_pizza`, but availability of those optional meat items was
|
||||
not established; relevant base mods are absent.
|
||||
- `farmers_spell:cutting/mithril_scrap`: mithril cheese -> 4 mithril scraps.
|
||||
Its source recipe already spends 4 scraps + foodgeist cheese, so this refunds
|
||||
a paid material rather than generating mithril.
|
||||
- Golden apple cutting refunds its normal eight gold ingots; golden carrot
|
||||
cutting refunds its normal eight nuggets. These are not free-gold cycles.
|
||||
- No definite zero-input recipe was found. Empty crafting declarations examined
|
||||
were explicitly disabled or produced air. No cheap diamond/netherite/emerald
|
||||
self-amplification or over-refunding diamond/netherite armor dismantling was
|
||||
established by the checks.
|
||||
@@ -0,0 +1,69 @@
|
||||
# wowmine respawn and Overworld access
|
||||
|
||||
The server-only `wowmine-world-policy` mod is built from source by Nix and
|
||||
installed by the Minecraft service's `preStart`. Clients need no additional
|
||||
mod. It targets Minecraft 1.21.1 and NeoForge 21.1.250.
|
||||
|
||||
Valid beds keep their normal respawn behavior. Missing or destroyed beds
|
||||
fall back to Azeroth at `3742.5 89 8891.5`, matching the existing first-join
|
||||
spawn. Login records and player dimension transfers targeting the Overworld
|
||||
also resolve to this Azeroth spawn. Nether portals returning from the Nether
|
||||
resolve their destination in Azeroth, preserving portal coordinate scaling.
|
||||
Other dimension destinations remain unchanged.
|
||||
|
||||
The Overworld stays registered because Minecraft requires it internally.
|
||||
This policy prevents normal player entry; it does not delete world files or
|
||||
unregister the engine dimension.
|
||||
|
||||
## Why the race could disappear after a destroyed bed
|
||||
|
||||
Production tests on November 22, 2026 confirmed that valid-bed deaths kept
|
||||
Tiny's scale at 0.5. Destroying the bed caused vanilla fallback to the
|
||||
Overworld and scale 1.0, despite the saved Tiny selection remaining intact.
|
||||
Reconnecting restored the abilities.
|
||||
|
||||
The Overworld's shared spawn, at `3742 89 8891`, is above ocean water.
|
||||
An isolated reproduction with the same 227 mod JARs traced the failure:
|
||||
|
||||
1. `PlayerList.respawn` constructs the replacement `ServerPlayer`.
|
||||
2. Its constructor searches for a collision-free spawn over water.
|
||||
3. NeoOrigins' fluid-collision hook queries `ActiveOriginService` before the
|
||||
old player's origin attachment has been copied.
|
||||
4. The resulting empty cache has data version 0. The copied, serialized
|
||||
attachment also has version 0, so the cache remains valid even though the
|
||||
origin selection changed from empty to populated.
|
||||
5. The respawn grant sees no powers. Later cache rebuilding does not grant
|
||||
the missing permanent attribute modifiers; login does.
|
||||
|
||||
The world policy selects Azeroth in `PlayerRespawnPositionEvent`, before
|
||||
Minecraft constructs the replacement player. This avoids the ocean spawn
|
||||
initialization path. It does not reset races or repeatedly rewrite player
|
||||
attributes.
|
||||
|
||||
## Verification
|
||||
|
||||
Use a disposable matching server and real client, never production test
|
||||
deaths or player-data edits. The regression fixture needs water beneath the
|
||||
Overworld spawn; an ordinary flat-world spawn does not expose the cache bug.
|
||||
Load the selected race from a saved player record rather than selecting it
|
||||
again before each death.
|
||||
|
||||
Checks exercised during development:
|
||||
|
||||
- A real bed click saves the Azeroth point; death returns beside that bed.
|
||||
- Death in the Nether with the bed chunk unloaded still returns to the bed.
|
||||
- A destroyed bed without the policy reproduces Overworld fallback, an
|
||||
unchanged Tiny selection, an empty power cache, and scale 1.0.
|
||||
- Missing-bed fallback with the policy selects the Azeroth spawn.
|
||||
- With the ocean fixture unchanged, two consecutive missing-bed deaths with
|
||||
the policy retain Tiny's scale 0.5 and resolved powers. Disconnecting and
|
||||
rejoining preserves the race, class, background, and Azeroth location.
|
||||
- A saved Overworld login and an explicit Overworld teleport resolve to
|
||||
Azeroth.
|
||||
- A real Nether return portal resolves in Azeroth.
|
||||
- Outland and End entry remain available; a real End exit portal and its
|
||||
credits return to the selected Azeroth bed.
|
||||
|
||||
The production artifact is compiled against the pinned NeoForge server SDK.
|
||||
Its class files were compared with the runtime-tested prototype. NixOS
|
||||
activation must use the existing Minecraft maintenance/backup lock.
|
||||
@@ -0,0 +1,65 @@
|
||||
# wowmine sleep
|
||||
|
||||
The server installs Sleep Time Skip 1.1.0 for NeoForge 1.21.1 from a pinned
|
||||
CurseForge artifact. Clients need no additional mod.
|
||||
|
||||
`wowmine-rules` sets `playersSleepingPercentage` to 100, so all players
|
||||
counted by Minecraft's sleep rules must sleep. The normal bed and
|
||||
monster-proximity checks remain.
|
||||
|
||||
Azeroth uses Minecraft's shared world clock through `DerivedLevelData`.
|
||||
That wrapper reads the clock but ignores `setDayTime`, so ordinary sleep
|
||||
could wake players without advancing the night. The server's world-policy
|
||||
mod forwards Azeroth's time writes to the shared clock. Respawn and dimension
|
||||
access behavior remain unchanged.
|
||||
|
||||
Sleep Time Skip measures the time change before players wake and queues
|
||||
catch-up work in the dimension where they slept. Its defaults cover animal
|
||||
aging, breeding cooldowns, chicken eggs, random block ticks, and selected
|
||||
machines: furnaces, blast furnaces, smokers, brewing stands, campfires, and
|
||||
hoppers. Furnaces use their actual tickers, inputs, and fuel.
|
||||
|
||||
Only active chunks receive catch-up. The declarative configuration explicitly
|
||||
allows stationary Create millstones, saws, mechanical presses, depots, mixers,
|
||||
basins, creative motors and basic shafts/cogwheels. This covers processing
|
||||
through depots and unheated basin mixing, not universal Create simulation.
|
||||
Moving contraptions, trains, loose-item physics, belt/funnel networks and
|
||||
crushing wheels are outside this selected set. Existing machine speed, power,
|
||||
recipe filters and inventory limits still apply; bulk cutting and pressing
|
||||
remain disabled.
|
||||
Simulation is budgeted across server ticks, so some results can appear
|
||||
shortly after waking. The default cap is 24,000 simulated ticks per skip.
|
||||
|
||||
Runtime settings come from the NixOS-managed
|
||||
`wowmine-server-config/sleeptimeskip-common.toml` and are installed at
|
||||
`config/sleeptimeskip-common.toml`.
|
||||
The default 10 ms budget per server tick and two-chunk immediate radius are
|
||||
retained; the server does not globally accelerate entity AI or player combat.
|
||||
|
||||
Verification used a real client sleeping in Azeroth with the matching mod
|
||||
set. Dawn advanced from 13,000 to 24,003 while only 107 ordinary server ticks
|
||||
passed. A calf's age advanced by 11,003 ticks. A furnace smelted 55 iron
|
||||
ingots from 64 ore, consuming seven coal; both dimensions reported identical
|
||||
shared clocks. No production player was used as a test fixture.
|
||||
|
||||
Create integration uses real blocks, physical creative-motor power, the
|
||||
installed recipe manager and actual inventories on a disposable matching
|
||||
server. It invokes the public `SleepHook.markSkip(level, 11000)` entry used by
|
||||
the wake hook and lets the normal simulation job run; it does not call machine
|
||||
tickers or recipe application itself. The real-client bed/clock test above
|
||||
covers that unchanged entry path. Vanilla-only and Create-enabled runs use
|
||||
clean worlds and a 30-ordinary-tick observation window, with recipe choices
|
||||
made explicit where addons offer multiple outputs.
|
||||
|
||||
With Create types enabled, all four fixtures completed after two ordinary
|
||||
ticks: 64 cobblestone became 64 gravel, one andesite alloy became six shafts
|
||||
on a depot, one iron ingot became one sheet on a depot, and a basin's andesite
|
||||
plus iron nugget became one alloy. The vanilla furnace simultaneously produced
|
||||
55 ingots using seven coal, and the calf aged by 11,002 ticks. With the same
|
||||
inputs, speeds and filters but the vanilla-only list, 30 ordinary ticks
|
||||
produced one gravel and no Create saw/press/mixer output.
|
||||
|
||||
The test copy once failed before world startup with a Pufferfish's Skills
|
||||
`RewardRegistry.register` / `HashMap.compute` concurrent-modification error.
|
||||
Its loader was serialized for QA (`fml.toml maxThreads=1`); that test-only
|
||||
change is not part of the production configuration.
|
||||
@@ -0,0 +1,96 @@
|
||||
# wowmine v16 survival revision
|
||||
|
||||
Deployed on neuro on November 22, 2026 after approval to remove Afterlife's
|
||||
Delight and restart Minecraft.
|
||||
|
||||
Subsequent overhead-name and coordinate-display rules are documented in
|
||||
[minecraft-player-visibility.md](minecraft-player-visibility.md).
|
||||
|
||||
## Release
|
||||
|
||||
- Version: `v16-survival-r1`.
|
||||
- Source: `minecraft/pack/wowmine-v16-survival-r1.mrpack`.
|
||||
- Source SHA-256: `a74f1b121d888247ce0fb8951d21a8c389eecd138f7b1e078430f27c6034261b`.
|
||||
- NixOS system: `/nix/store/l0x0bys8y8w6y88x3b9c8mh244h48b3k-nixos-system-neuro-26.05.20261006.b253099`.
|
||||
- Public packwiz release: `037c3b3cefef2bdb57bc8c3bd73fe1ae71b63a024d175b262860a9cba30818a7`.
|
||||
- Prism ZIP SHA-256: `cb7ff5ca7ffac63f54af36cfd448e2c7a790c959d413d0b0e775c344bef2358f`.
|
||||
- Minecraft 1.21.1 and NeoForge 21.1.250 remain unchanged.
|
||||
|
||||
The source removes exactly `mods/afterlifes_delight-1.1.2.jar` from
|
||||
`v16-delight-rules-r2`. Every other downloaded-file entry and override payload
|
||||
remains identical, except client version metadata. There are 227 server JARs
|
||||
and 237 client JARs. Other installed mod metadata declares no dependency on
|
||||
Afterlife's Delight. Existing source archives and updater releases remain
|
||||
available.
|
||||
|
||||
## Cause and player state
|
||||
|
||||
Installed Afterlife's Delight 1.1.2 bytecode confirms that
|
||||
`GhostEvents.onConfirmedLivingDeath` records ordinary player deaths when
|
||||
HardcoreLite is absent. Vanilla `hardcore=false` does not disable this
|
||||
handler. Its configuration provides no global switch.
|
||||
|
||||
The mod persists `ghost_data` and `ghost_visual_state` under
|
||||
`neoforge:attachments`, using the `afterlifes_delight` namespace. The optional
|
||||
`ghost` field defaults to false. Its creative-flight attribute modifier is
|
||||
transient. Resurrection through the mod's food calls `GhostManager`,
|
||||
clearing ghost state and restoring flight and collision behavior.
|
||||
|
||||
After the approved cold stop, all five saved players already had no active
|
||||
ghost state, pending resurrection food, gravity override or ghost-flight
|
||||
modifier. Four players were in survival; the existing creative player kept
|
||||
creative mode. No player NBT edits, inventory resets, teleports or game-mode
|
||||
changes were needed. All 20 original player, statistics and advancement
|
||||
records retained their exact SHA-256 values after activation.
|
||||
|
||||
Afterlife owns no corpse entity or corpse inventory. Its Sable and Gravestone
|
||||
hooks restrict interaction; they do not own ordinary equipment. Corpses,
|
||||
graves, other mod attachments and `.sable` data were not deleted.
|
||||
|
||||
Removing the mod also removes its 22 item IDs: pestles, ingredients, stews,
|
||||
pie slices and pies, plus four placed pie block IDs. These removed items can
|
||||
be discarded when inventories or containers load. The full original world
|
||||
was backed up before activation.
|
||||
|
||||
## Backup and verification
|
||||
|
||||
Cold backup:
|
||||
`/srv/minecraft/backups/wowMineMap-before-v16-survival-r1-20261122`.
|
||||
Its private `sha256.json` covers 9331 files, each checked against the stopped
|
||||
source. World, player data, mods, configuration, access records and importer
|
||||
cache are included. The generated credential-bearing `server.properties`
|
||||
was excluded; NixOS retains its declaration. Scheduled backups resumed after
|
||||
server readiness and integrity checks.
|
||||
|
||||
Verified:
|
||||
|
||||
- Native NixOS build and closure transfer succeeded.
|
||||
- Importer completed successfully; all 227 live JAR hashes match the pinned
|
||||
archive. Only the Afterlife JAR was removed from the previous inventory.
|
||||
- Minecraft reached `Done` and loaded 18443 recipes, 26 fewer than before.
|
||||
- All 7235 original region files remain. World name, seed, spawn and
|
||||
`hardcore=false` match the cold backup.
|
||||
- All 13 `wowmine-rules` files match the backup, preserving recipe fixes and
|
||||
Boss map restrictions. RCON reports `mobGriefing=true`.
|
||||
- Distant Horizons identities remain `wos` and `wos-w1`.
|
||||
- A disposable server without the mod booted and stopped successfully.
|
||||
- Actual Java packwiz fresh and v16 upgrade runs installed 237 client JARs,
|
||||
removed Afterlife and preserved personal options, DH and minimap settings.
|
||||
- A separate v16 instance upgraded through the published HTTPS endpoint:
|
||||
237 JARs, Afterlife removed and all three personal settings files preserved.
|
||||
- RCON's selector for connected players with `ghost:1b` found no matches.
|
||||
|
||||
Evidence: neuro `/var/tmp/wowmine-survival/live-integrity.json`,
|
||||
`cold-state.json`, `players-before.json` and `backup-complete.json`;
|
||||
workstation `/tmp/wowmine-survival/`.
|
||||
|
||||
No graphical client session or in-game death/respawn trial was performed
|
||||
for this revision. Removal of the owning JAR removes its death handlers;
|
||||
saved player checks cover all five existing players.
|
||||
|
||||
NixOS activation returned status 4 because the pre-existing
|
||||
`ollama-model-loader.service` could not complete TLS connections to its
|
||||
registry. Its failures predate this activation. The Minecraft importer and
|
||||
Minecraft service both report success. Existing upstream optional
|
||||
recipe/loot warnings and the Mango's Compat `/reload` defect remain outside
|
||||
this change; this deployment used a restart.
|
||||
@@ -0,0 +1,36 @@
|
||||
# Void portals
|
||||
|
||||
The rules datapack registers `wowmine:void`: an empty flat generator with no
|
||||
layers, lakes, features or structures and the vanilla Overworld dimension type.
|
||||
It has ordinary daylight, water and working beds. Its shared sleep clock is
|
||||
forwarded to the same clock used by Azeroth.
|
||||
|
||||
World Policy1.0.2 routes Nether portals to this dimension and returns from it
|
||||
to `crafting_azeroth:azeroth`. All three vanilla Nether-key reads inside
|
||||
`NetherPortalBlock.getPortalDestination` are redirected: source detection,
|
||||
destination selection and portal search mode. The existing Overworld-key
|
||||
redirect to Azeroth remains.
|
||||
|
||||
`PortalIgnitionMixin` also permits the vanilla fire/portal checks in Azeroth
|
||||
and the void. Without this, vanilla only ignites frames in Overworld/Nether;
|
||||
testing a directly created portal would miss this boundary.
|
||||
|
||||
Coordinates use scale1:1. Vanilla portal search and construction remain in
|
||||
charge, including their small obsidian support in an otherwise empty world.
|
||||
Existing portals in Azeroth may be used. The old Nether remains registered
|
||||
and its files are retained; End and Outland are not replaced.
|
||||
|
||||
This change requires a server restart for dimension registration and a server
|
||||
policy update. No client mod update is required.
|
||||
|
||||
Isolated matching-server QA passed real portal-triggered cow travel from Azeroth
|
||||
to the void and back, and both ServerPlayer destination APIs. The generated
|
||||
portal had solid obsidian support and clear exits; its24non-air blocks did not
|
||||
grow on reuse. A distant chunk was entirely air, used the void biome and had
|
||||
no structures. The original Nether type remained registered. Actual client
|
||||
crossing was not run.
|
||||
|
||||
The final run also ignited ordinary frames by vanilla fire placement in both
|
||||
Azeroth and the void. This check failed on the artifact without the ignition
|
||||
mixin, then passed with it; both real entity crossings and player destination
|
||||
APIs still passed.
|
||||
@@ -7,7 +7,8 @@ or pausing the server. The default schedule is every 30 minutes. Each run:
|
||||
period;
|
||||
2. rsyncs `Zomboid/Saves/Multiplayer/<serverName>` and non-secret server
|
||||
settings (`SandboxVars`, spawn-points, and spawn-regions) from
|
||||
`Zomboid/Server` into a private staging tree;
|
||||
`Zomboid/Server`, together with local `Zomboid/mods`, into a private staging
|
||||
tree;
|
||||
3. waits five seconds and repeats the rsync to narrow the live-write window;
|
||||
4. publishes a timestamped `tar.zst` archive; and
|
||||
5. uploads it to S3 when enabled, then applies local retention.
|
||||
@@ -33,9 +34,9 @@ host-generated password files, or the S3 credentials file. The server INI is
|
||||
generated again during service startup; provision secret-backed values separately
|
||||
after a restore.
|
||||
|
||||
## hectic-lab
|
||||
## neuro
|
||||
|
||||
hectic-lab runs the timer every 30 minutes and stores timestamped backups in
|
||||
neuro runs the timer every 30 minutes and stores timestamped backups in
|
||||
S3 for 14 days. It keeps no regular timestamped backup archives locally:
|
||||
|
||||
```text
|
||||
@@ -83,7 +84,7 @@ available; it remains the stronger recovery and cleanup control.
|
||||
Restoring must be done while the server is stopped so it cannot modify files
|
||||
during extraction:
|
||||
|
||||
On hectic-lab, regular timestamped archives are retained only in S3. With
|
||||
On neuro, regular timestamped archives are retained only in S3. With
|
||||
valid S3 credentials, download the chosen archive before restoring it:
|
||||
|
||||
```sh
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
# Project Zomboid on neuro
|
||||
|
||||
The native NixOS service is `project-zomboid.service`. Its configuration lives
|
||||
in `nixos/system/neuro/project-zomboid.nix`; the effective non-secret INI and
|
||||
sandbox settings are captured in the adjacent JSON files. Runtime state lives
|
||||
in `/var/lib/project-zomboid`, owned by UID 988 and GID 985.
|
||||
|
||||
Players connect to `95.31.254.84:36565`. The server uses UDP 36565 for
|
||||
discovery and UDP 36566 for game traffic. Existing MikroTik rules forward
|
||||
both ports unchanged to `192.168.88.10`. RCON TCP 27015 is not forwarded.
|
||||
|
||||
The port change was deployed through NixOS after a graceful save and shutdown.
|
||||
External A2S_INFO on UDP 36565 succeeded; independent external probes reached
|
||||
both 36565 and 36566. Minecraft, BlueMap and nginx retained their processes.
|
||||
|
||||
The migrated installation is Build 42.21.0, Steam build 25485538.
|
||||
`updateOnStart = false` prevents an incidental SteamCMD upgrade. A deliberate
|
||||
version upgrade must include a stopped-server backup and client compatibility
|
||||
check before changing this setting.
|
||||
|
||||
The installed LuaDigitalWatchUI 1.0 and RC_RealisticColdMod 2.2.0 snapshots
|
||||
are copied into `Zomboid/mods/LuaDigitalWatch` and
|
||||
`Zomboid/mods/RealisticTemperature`. Their `common` and `42` directories remain
|
||||
intact. Their mod IDs remain enabled; `WorkshopItems` is empty because the
|
||||
game otherwise automatically replaces the temperature mod with a newer
|
||||
published version on startup. Clients need matching mod files; automatic
|
||||
Workshop provisioning is no longer advertised by this server. Preserve these
|
||||
local copies during updates and restores.
|
||||
|
||||
The save remains `servertest`, with the original world identities, account
|
||||
database, player database, vehicle database and passwords. S3 credentials are
|
||||
provided by `sus/neuro-project-zomboid.yaml`. Never put runtime passwords or
|
||||
decrypted SOPS contents in the Nix store.
|
||||
|
||||
Backups retain the existing bucket `backup-hectic-lab`, prefix
|
||||
`project-zomboid`, half-hour schedule and 14-day remote retention.
|
||||
Local mods are included. See [backup and restore instructions](project-zomboid-backups.md).
|
||||
|
||||
Migration recovery copies live under the private directory
|
||||
`/var/backups/project-zomboid/migration-20261120` on neuro. The former neuro
|
||||
installation must remain separate from the authoritative hectic-lab save.
|
||||
Do not restore either copy over a running server.
|
||||
|
||||
## Cutover evidence, 2026-11-20
|
||||
|
||||
The old server was saved and gracefully stopped with no connected players.
|
||||
The final offline rsync used content checksums. Independent SHA-256 inventories
|
||||
matched for all 718,669 regular files (15,939,182,014 bytes), including file
|
||||
paths, modes and symlink targets:
|
||||
|
||||
```text
|
||||
11082cc5c3386ae591ffe8ce67d8dec57d1f2d53a66fe17fdbee54cc6df84167
|
||||
```
|
||||
|
||||
All three account/player/vehicle databases passed SQLite `quick_check` and
|
||||
matched byte-for-byte before startup. Counts were two network players, 1,009
|
||||
vehicles and three whitelist records. Both local mod copies matched their
|
||||
installed Workshop originals, and startup logs confirmed both loaded.
|
||||
All 140 captured INI settings matched after the intentional Workshop and
|
||||
announced-IP changes. All 191 sandbox settings, including nested mod settings,
|
||||
also matched the original Lua values after startup.
|
||||
|
||||
Native NixOS activation on neuro succeeded. External A2S_INFO returned the
|
||||
server on UDP 16261; independent probes also reached UDP 16262. Authenticated
|
||||
local RCON succeeded, and external TCP 27015 was unreachable. A full game
|
||||
client join was not tested.
|
||||
|
||||
The first native backup completed successfully and its S3 object was checked:
|
||||
|
||||
```text
|
||||
project-zomboid/project-zomboid-servertest-20261120T123322Z.tar.zst
|
||||
149420409 bytes
|
||||
```
|
||||
|
||||
The local mod files were verified in backup staging. Regular local archive
|
||||
retention remains zero after successful upload.
|
||||
|
||||
The hectic-lab service and backup timer are absent from the active system.
|
||||
The original data remains in its private
|
||||
`/var/backups/project-zomboid/retired-20261120` recovery directory.
|
||||
Temporary migration masks were removed. The old host's existing D-Bus reload
|
||||
timeout caused activation to return exit 4; the new system profile, Zomboid
|
||||
removal, firewall changes and shared nginx/SSH were verified separately.
|
||||
|
||||
BlueMap and nginx kept their processes. Minecraft recorded a clean restart at
|
||||
12:24:30 UTC, before Zomboid activation at 12:31:10 UTC; its cause was not
|
||||
investigated. No kernel OOM event was found.
|
||||
|
||||
The `migration-20261120/cold` directory on neuro is an incomplete copy from an
|
||||
interrupted transfer and must not be used for recovery. Use the verified
|
||||
`hectic-lab` snapshot instead. Rolling back an entire old host configuration
|
||||
can re-enable its former server; restore game data deliberately to one host.
|
||||
@@ -0,0 +1,114 @@
|
||||
# wowmine v5 optimization compatibility
|
||||
|
||||
Historical release evidence below is unchanged. The source filename uses the
|
||||
wowmine Storage Box naming contract; its hash identifies the verified v5 bytes,
|
||||
not a newly verified upload of a renamed object.
|
||||
|
||||
Published on 2026-11-12 for Minecraft 1.21.1 / NeoForge 21.1.250.
|
||||
Sodium 0.8.13, Create 6.0.10, Sable 2.0.5, and all existing mod versions
|
||||
remain unchanged.
|
||||
|
||||
| Component | Version | Side |
|
||||
| --- | --- | --- |
|
||||
| ImmediatelyFast | 1.6.15+1.21.1 | Client |
|
||||
| Entity Culling | 1.11.3 | Client |
|
||||
| Create: Nowheel | 2.1.1+1.21.1neoforge | Client compatibility fix |
|
||||
| FerriteCore | 7.0.3 | Both |
|
||||
| ModernFix | 5.27.27+mc1.21.1 | Both |
|
||||
| Lithium | 0.15.4+mc1.21.1 | Both |
|
||||
|
||||
More Culling is deferred: all 11 stable NeoForge artifacts advertised for
|
||||
1.21.1 through 1.0.11 require Minecraft `[1.21,1.21.1)`, excluding 1.21.1.
|
||||
No JAR metadata was patched or dependency check bypassed. Distant Horizons
|
||||
and spark were not added.
|
||||
|
||||
Nowheel addresses Entity Culling hiding entities on Sable sublevels. The
|
||||
conservative pairing is Entity Culling 1.11.3 with Nowheel 2.1.1, rather than
|
||||
the newly released Entity Culling 1.12.0.
|
||||
|
||||
## Lithium compatibility
|
||||
|
||||
Common `config/lithium.properties` disables:
|
||||
|
||||
```properties
|
||||
# Retained game-event dispatchers, issue 783.
|
||||
mixin.world.game_events.dispatch=false
|
||||
# Iron's Spellbooks multipart shields, issue 723.
|
||||
mixin.entity.collisions.intersection=false
|
||||
```
|
||||
|
||||
Client overrides retain both rules and additionally disable:
|
||||
|
||||
```properties
|
||||
# Create Ponder fake-level collisions, issue 771.
|
||||
mixin.entity.collisions.movement=false
|
||||
# Create Ponder identification raycasts, issue 663.
|
||||
mixin.world.raycast=false
|
||||
```
|
||||
|
||||
Sable automatically disables Lithium's unpushable cramming, chunk access,
|
||||
chunk ticking, and tick scheduler optimizations. Runtime confirmed four
|
||||
automatic rules plus two manual server rules. Existing ModernFix configuration
|
||||
is unchanged.
|
||||
|
||||
Two method-overwrite warnings are accepted overlap: ModernFix wins over Lithium
|
||||
for biome temperature and sorted chunk-ticket removal. Temperature implementations
|
||||
compute the same result; both ticket implementations retain linear compaction.
|
||||
Disabling the skipped Lithium implementations would only remove warnings.
|
||||
No warning suppression was added.
|
||||
|
||||
## Deployment and checks
|
||||
|
||||
Source: `minecraft/pack/wowmine-v5-optimizations.mrpack`.
|
||||
SHA-256: `d3ec9d8725fbaaaa1e14ced3404a1fb904417ab45b1f632861d8e495e7846211`.
|
||||
Parent v4: `4a197bc039d6684fa1e652e1242b15d87bd8758de895ea8c4f8455ce6a712df1`.
|
||||
All previous archive entries and indexed mods are unchanged; only six JAR
|
||||
entries and the two Lithium configuration files were added.
|
||||
|
||||
All prior Storage Box versions and web releases remain available. Fresh
|
||||
production backups are under
|
||||
`/srv/minecraft/backups/wowMineMap-before-optimizations-20261112T190256Z`,
|
||||
with sibling `-mods` and `-config` copies. The working world was not reset.
|
||||
The existing Azeroth spawn datapack and source-map pin were preserved.
|
||||
|
||||
An isolated server loaded, saved, restarted, and reloaded native Azeroth chunks.
|
||||
Both comparisons passed: 81 chunks, 12,798 control blocks unchanged,
|
||||
`yPos=-32`, 52-long heightmaps, and cobblestone below spawn unchanged.
|
||||
The independent comparison after production deployment passed the same checks
|
||||
against the fresh production backup. All 132 production JAR hashes matched the
|
||||
new archive, with no extra JARs.
|
||||
|
||||
The actual client entered the isolated server, initialized all new mods, and
|
||||
rendered Azeroth from multiple angles. A real packwiz v4-to-v5 transition also
|
||||
passed, preserving modified options and selecting the client Lithium settings.
|
||||
Public HTTPS checks verified the 598-entry index, checksums, source archive,
|
||||
client settings, and Prism loader pin.
|
||||
|
||||
## Existing findings and test limits
|
||||
|
||||
Sodium Dynamic Lights 1.0.10 references older Sodium option/rendering classes
|
||||
and declares a Sodium Options API dependency that conflicts with Reese's
|
||||
current options. Client logs confirm missing old Sodium mixin targets. This
|
||||
pre-existing mod was retained; no incompatible Options API was installed.
|
||||
Full dynamic-lighting functionality is not certified by this update.
|
||||
|
||||
Older production logs already contain the same missing recipe/loot registry
|
||||
entries from Design n' Decor, Artificers, and Craftable Loot Chests.
|
||||
These were not changed as part of the optimization update.
|
||||
|
||||
Client smoke testing used llvmpipe software rendering on OpenGL 4.5. It is not
|
||||
an FPS comparison; Sable's GPU-specific shaders and every moving-ship/passenger
|
||||
scenario were not exhaustively tested.
|
||||
|
||||
## Primary references
|
||||
|
||||
- https://github.com/tr7zw/EntityCulling/issues/299
|
||||
- https://modrinth.com/mod/create-nowheel/version/3NKOvEei
|
||||
- https://raw.githubusercontent.com/FxMorin/MoreCulling/v1.0.11/gradle.properties
|
||||
- https://github.com/FxMorin/MoreCulling/issues/481
|
||||
- https://github.com/CaffeineMC/lithium/issues/783
|
||||
- https://github.com/CaffeineMC/lithium/issues/723
|
||||
- https://github.com/CaffeineMC/lithium/issues/771
|
||||
- https://github.com/CaffeineMC/lithium/issues/663
|
||||
- https://github.com/embeddedt/ModernFix/issues/274
|
||||
- https://github.com/FlashyReese/reeses-sodium-options/issues/170
|
||||
@@ -0,0 +1,204 @@
|
||||
# wowmine source versions and reset
|
||||
|
||||
The rename target is a byte-identical source copy named
|
||||
`wowmine-20261114T223938Z-winter-biomes.tar.gz`. Copy publication is planned,
|
||||
not verified by this documentation change. Historical Storage Box source names
|
||||
below use the wowmine prefix; recorded hashes and checks apply to the original
|
||||
verified bytes and do not establish that renamed copies exist. Paths retaining
|
||||
the old spelling below are explicitly historical rollout receipts or GC roots.
|
||||
|
||||
The source map is independent of the running world. Keep every source revision
|
||||
as a separate archive in Storage Box under `minecraft/map/versions/`.
|
||||
Never replace an existing version. The original `minecraft/map/wow mine map.rar`
|
||||
remains the parent source.
|
||||
|
||||
Each new version has a UTC timestamp in its filename and a JSON sidecar recording
|
||||
its SHA-256, parent archive and hash, spawn dimension and coordinates, and changes.
|
||||
Upload to a temporary filename, verify the remote SHA-256, then rename to the
|
||||
final version filename. Pin that path and hash in
|
||||
`nixos/system/neuro/minecraft/wow-mine-map.nix`.
|
||||
|
||||
The current source bytes to be copied as
|
||||
`wowmine-20261114T223938Z-winter-biomes.tar.gz` have
|
||||
SHA-256 `d1afd169b16b7b50a57c47da46245e93285b46b6c833bfd08941d07d0341b208`
|
||||
(6,423,189,189 bytes). Archive and JSON manifest were uploaded separately,
|
||||
fully downloaded again, hash checked, and renamed to immutable Storage Box
|
||||
paths on 2026-11-15 UTC. The manifest SHA-256 is
|
||||
`4fd3caff074c1f2f30f55dd82a94fef6fd6918e06243094c4fd39457408facc0`.
|
||||
|
||||
The winter revision extends existing snowy plains, snowy taiga, and ice spikes
|
||||
through the native height Y=-512..2031. The approved northern snowy `the_end`
|
||||
component becomes snowy plains. Its exact contour contains 218,269 native
|
||||
4x4 columns; existing winter areas contain 1,384,211 columns. Isolated snow
|
||||
and ice decorations outside these masks remain unchanged. Together these
|
||||
cover 1,602,480 columns in 104,637 chunks and 187 Azeroth region files.
|
||||
The approved contour bundle SHA-256 is
|
||||
`d15c85c563553c203fb32034f74421bda6a5b00209220ef4f9e780b5900760bd`.
|
||||
|
||||
The transformation checks all 1,019,177,280 target biome cells and every
|
||||
unselected biome cell in each affected chunk. Original non-biome NBT bytes,
|
||||
chunk membership, region timestamps, and untouched compressed chunk payloads
|
||||
are preserved. Missing sections added within the native height contain only
|
||||
air blocks. An independent verifier also checked every modified region header,
|
||||
every untouched payload, and 512 selected chunks. A private server with the
|
||||
production NeoForge 21.1.250, Java 21, and 133 mod JARs passed 117 biome predicates
|
||||
and 216 original-block predicates at nine control points. Biome expectations
|
||||
use Minecraft's seeded biome sampling, including neighboring quart cells.
|
||||
|
||||
On 2026-11-15 UTC the running world received a biome-only overlay, without a
|
||||
reset or source extraction. Minecraft was stopped before copying the original
|
||||
187 target region files and player/progress metadata to
|
||||
`/srv/minecraft/backups/wowMineMap-before-winter-biomes-20261114T223938Z`.
|
||||
This is a targeted backup, not a full-world snapshot. Separate output MCA files
|
||||
passed the complete biome/non-biome checks and the independent 512-chunk check
|
||||
before atomic replacement. All 3,361 other world files retained their SHA-256,
|
||||
size, ownership, mode, inode, and modification time before server startup,
|
||||
including entities, POI, playerdata, advancements, statistics, and level metadata.
|
||||
The original live `SOURCE_VERSION.txt` remains unchanged; the separate overlay
|
||||
receipt is `/var/tmp/worldofsosal-winter-biomes/live-application.json`.
|
||||
|
||||
The old Azeroth `data/DistantHorizons.sqlite` was moved intact into the backup's
|
||||
`derived-dh/` directory (807,206,912 bytes, SHA-256
|
||||
`d7c5174889f236bbbeca63be68cb7bd56f85cd96d83d5bd3730af7c089598a30`).
|
||||
This derived terrain cache must be regenerated to avoid serving old biome LODs.
|
||||
Other dimensions' caches were preserved. Old source versions and backups remain.
|
||||
|
||||
After startup at 00:23:37 UTC on 2026-11-15, the production server passed all
|
||||
117 biome predicates and 216 block predicates against the pre-change live
|
||||
baseline at nine control points. Both dimensions registered, temporary
|
||||
force-load tickets were removed, and `save-all flush` succeeded. The Azeroth
|
||||
DH database was recreated with the new cache identity. Only `levelKeyPrefix`
|
||||
changed in the DH configuration; all other parsed TOML settings matched.
|
||||
The v11 archive, all 133 mod JARs, JVM launcher and memory flags
|
||||
(`-Xmx24G -Xms2G`), and view/simulation distances 32/32 were verified unchanged.
|
||||
The public Minecraft status endpoint answered with the v11 MOTD.
|
||||
No heightmap warnings appeared. All 304 distinct startup error messages matched
|
||||
the previous 2026-11-13 launch: existing mod compatibility, registry, loot,
|
||||
recipe, and function errors remain outside this biome change.
|
||||
Verification reports reside in `/var/tmp/worldofsosal-winter-biomes/`:
|
||||
`live-patch-report.json`, `live-independent.json`, `live-application.json`,
|
||||
`live-runtime-report.json`, `live-config-application.json`, and
|
||||
`live-final-report.json`. These separate offline byte-preservation evidence
|
||||
from normal game writes after startup.
|
||||
|
||||
The parent is `wowmine-20261113T172314Z-outland.tar.gz`,
|
||||
SHA-256 `bee81bb955099e85ed93ca7c258a9cc48ec1a26590bfe891c869a80ad0094def`
|
||||
(6,579,158,241 bytes). This is a clean source revision, derived from the spawn
|
||||
revision below, without gameplay state. It was activated on neuro on 2026-11-13:
|
||||
the working world was reset through the updated import and reset units.
|
||||
Previous source archives and existing backups were retained.
|
||||
|
||||
Outland is now `crafting_azeroth:outland`. The original source documentation
|
||||
places its spawn at **-51210 100 7**, Shattrath at `-53787 77 1069`, and the
|
||||
Hellfire Dark Portal at `-51153 119 7`. Positive X near `51200 116 0` is a
|
||||
separate rotated Stormwind instance and remains in Azeroth.
|
||||
|
||||
All 147 region files west of X=-25600 were moved into Outland without changing
|
||||
coordinates or MCA bytes: 96,403 chunks, 854,810,624 bytes. All 2,063,716 source
|
||||
chunks remain accounted for. The new dimension reuses the native Azeroth height
|
||||
type (`min_y=-512`, `height=2544`) and an empty flat generator. The Azeroth spawn
|
||||
datapack remains enabled. Updated installation and teleport instructions and
|
||||
`OUTLAND_SEPARATION.json` are included in the archive.
|
||||
|
||||
During the winter overlay the server used a revision-specific Distant Horizons
|
||||
`server.levelKeyPrefix`, enforced by the modpack importer's `postStart`. This
|
||||
historical long prefix was later shortened; see `minecraft-prism.md`. The archive
|
||||
configuration omitted the key, so `postStart` inserted it under `[server]` rather
|
||||
than only replacing an existing line. This gave clients a fresh terrain-cache
|
||||
identity for each dimension. Obsolete client terrain
|
||||
caches can be removed if old Azeroth LODs remain visible. No DH database is
|
||||
included in the source archive. Ordinary server restarts preserve the working
|
||||
world; only the explicit reset command imports the source again.
|
||||
|
||||
The isolated 2026-11-13 trial registered both dimensions on NeoForge 21.1.250.
|
||||
All 1,440 sampled block states across seven control chunks matched before and
|
||||
after a server restart, with `yPos=-32` and 52-long heightmaps. Controls include
|
||||
Outland spawn, Hellfire, Shattrath, Azeroth spawn, the retained positive-X
|
||||
instance, and both empty counterpart locations. The v11 client joined, visited
|
||||
Outland and Shattrath, and returned to Azeroth; screenshots confirmed terrain.
|
||||
Existing modpack recipe/function errors remain unrelated to this map revision.
|
||||
|
||||
After activation, the working server registered both dimensions and passed the
|
||||
same seven-chunk, 1,440-block comparison with native height metadata. Temporary
|
||||
force-load tickets were removed after verification. All 133 mod JARs, the v11
|
||||
release, JVM launcher, and view/simulation distances of 32/32 remained unchanged.
|
||||
The public Minecraft status endpoint responded successfully. The final restart
|
||||
with the new DH cache identity began at 21:42:22 UTC on 2026-11-13.
|
||||
|
||||
The server now uses the native `crafting_azeroth_height` datapack
|
||||
(`min_y=-512`, `height=2544`). The modpack importer's `postStart` removes
|
||||
`dynamicheight-0.2.0+neoforge-1.21-1.21.1.jar` and
|
||||
`sable_dynamicheight_compat-1.0.0.jar` after every import.
|
||||
The original pack archive remains unchanged.
|
||||
|
||||
With the previous mod configuration, saved Azeroth height changed from
|
||||
MinY=-512, MaxY=2016 to MinY=-64, MaxY=320 and loaded chunks were rewritten.
|
||||
The native-height trial checks the 81 chunks around `3742 89 8891`, saves them,
|
||||
restarts Minecraft, and compares control blocks and chunk height metadata.
|
||||
The 2026-11-12 trial passed on the main server: 12,798 sampled blocks matched the
|
||||
source both before and after restart, all 81 chunks retained `yPos=-32` and
|
||||
52-long heightmaps, and the cobblestone at `3742 88 8891` remained present.
|
||||
No heightmap-size warnings appeared after restart. Temporary force-load tickets
|
||||
are removed after the trial. This verifies server loading and persistence;
|
||||
client login with the changed mod set is a separate check.
|
||||
|
||||
The parent spawn revision is
|
||||
`wowmine-20261112T093842Z-spawn-3742-89-8891.tar.gz`, with SHA-256
|
||||
`da3f79e5593a5b7485ed371d65341cc1516c78a19a1fba71874ae8c1d90e624c`.
|
||||
Its parent is retained as `versions/wowmine-original-bc80084d.rar`, with
|
||||
SHA-256 `bc80084de10a06b0fc2cb1651c61936b9e2fd2288f3f0fe44c964d83a393aa30`.
|
||||
The immutable spawn revision includes the historical namespace
|
||||
`worldofsosal_spawn`, which initializes each new
|
||||
character once at `3742 89 8891` in Azeroth and sets a personal respawn point.
|
||||
Its maintained source is `nixos/system/neuro/minecraft/wowmine-spawn/`.
|
||||
|
||||
The spawn was re-enabled on 2026-11-12 after switching to native dimension height.
|
||||
The working world was not reset or replaced: only the datapack, world spawn
|
||||
metadata, and yukkop's personal respawn fields were changed. Player position,
|
||||
inventory, and other player data were preserved. A full pre-change world copy is
|
||||
kept at `/srv/minecraft/backups/wowMineMap-before-spawn-20261112T133407Z`.
|
||||
After restart, the saved world spawn and personal respawn fields were verified
|
||||
at `3742 89 8891`, with personal `SpawnDimension=crafting_azeroth:azeroth` and
|
||||
forced respawn enabled. The spawn datapack was enabled in the running server.
|
||||
Across 81 loaded chunks, all 12,798 control blocks matched the pre-change working
|
||||
world; `yPos=-32`, 52-long heightmaps, and the cobblestone below spawn were
|
||||
preserved. There were no heightmap-size warnings. The temporary force-load
|
||||
tickets were removed after verification.
|
||||
|
||||
To discard all gameplay changes and return to the pinned source:
|
||||
|
||||
```sh
|
||||
ssh neuro systemctl start minecraft-world-reset-wowMineMap.service
|
||||
```
|
||||
|
||||
This command deletes the entire working world, including all dimensions,
|
||||
inventories, player positions, advancements, and statistics. It first verifies
|
||||
the cached source archive's SHA-256, stops the game and world importer, deletes
|
||||
`/srv/minecraft/wowMineMap/world`, then starts the server. The existing importer
|
||||
extracts the pinned archive before Minecraft starts.
|
||||
|
||||
Mods, server configuration, operator permissions, and source archives remain.
|
||||
Ordinary server restarts preserve the working world; only the explicit reset
|
||||
command discards it.
|
||||
|
||||
Check completion with:
|
||||
|
||||
```sh
|
||||
ssh neuro systemctl status minecraft-world-reset-wowMineMap.service \
|
||||
minecraft-world-import-wowMineMap.service minecraft-server-wowMineMap.service \
|
||||
--no-pager
|
||||
```
|
||||
|
||||
An inactive reset service with exit status 0 is expected after completion.
|
||||
The cache must already contain the pinned archive. To switch source versions,
|
||||
deploy the changed importer and cache the verified archive before resetting.
|
||||
|
||||
The initial deployment on neuro installs the generated import and reset units
|
||||
under `/etc/systemd/system.control/`, with GC roots
|
||||
`/nix/var/nix/gcroots/worldofsosal-world-{import,reset}-unit`. This avoids an
|
||||
unrelated NixOS upgrade. These persistent units override ordinary NixOS units:
|
||||
replace both links and GC roots when deploying another source revision, or
|
||||
remove the overrides after a full NixOS activation includes the same revision.
|
||||
The modpack importer also has an override under `/etc/systemd/system.control/`,
|
||||
pinned by `/nix/var/nix/gcroots/worldofsosal-modpack-import-unit`. Update or remove
|
||||
that override under the same rules when changing the modpack import configuration.
|
||||
@@ -0,0 +1,128 @@
|
||||
# wowmine
|
||||
|
||||
## 1. Purpose
|
||||
|
||||
A Russian-language Minecraft server landing page at `/wowmine/`. The existing
|
||||
Prism publication at `/minecraft/wowmine/` remains the source of downloads
|
||||
and updates. This page never publishes or changes a client pack or server world.
|
||||
|
||||
Primary action: download the auto-updating Prism instance.
|
||||
Information priorities: the Azeroth/Outland world, how to install, how to connect.
|
||||
Required content: Prism ZIP, server address, Minecraft 1.21.1, NeoForge 21.1.250,
|
||||
Java 21, 8 GiB instance allocation, permission for the pre-launch updater,
|
||||
preserved options.txt, managed configuration updates, relaunch after a loader
|
||||
update, manual mrpack and checksums.
|
||||
Left out: invented player counts, fake live status, reviews, prices, account
|
||||
forms, tracking, external JavaScript, and changes to the existing pack publisher.
|
||||
|
||||
## 2. Direction
|
||||
|
||||
Minecraft's tangible game-menu language: square controls, inset highlights,
|
||||
block geometry, earthy stone surfaces, warm sunlight and a grassy green action.
|
||||
The hero is an original fictional voxel illustration, not a server screenshot.
|
||||
Russo One gives the Cyrillic display a block-built silhouette; Golos Text keeps
|
||||
instructions readable. No official Minecraft logo or character art is used.
|
||||
|
||||
The alternatives were a generic launcher dashboard and a parchment fantasy
|
||||
page. Both obscure the requested Minecraft identity; neither is used.
|
||||
Material exceptions to the general frontend defaults are deliberate: square
|
||||
bevels and small hard shadows evoke Minecraft controls, not SaaS cards.
|
||||
|
||||
## 3. Tokens
|
||||
|
||||
Both light and dark palettes and the deployed theme switch are retained.
|
||||
Dark: background `#141a15`, raised `#202921`, inset `#101610`,
|
||||
text `#f4f3e7`, muted `#bec9b8`, line `#394638`.
|
||||
Shared: grass `#a7d754`, grass hover `#b9e66c`, action ink `#17250d`,
|
||||
focus `#e8b86c`;
|
||||
hero ink `#fffdf0`, hero muted `#e5e9d7`.
|
||||
|
||||
Type: Russo One 400 for display/headings, Golos Text 400/600 for UI/body;
|
||||
system monospace only for the server address and filenames.
|
||||
Display: 36–84px; h2: 32–48px; h3: 24–28px; body: 16–18px; small: 14px.
|
||||
Space: 4, 8, 12, 16, 24, 32, 48, 64, 80, 96px.
|
||||
Container: 1200px maximum, 24px mobile and 48px desktop gutters.
|
||||
Controls: minimum 48px tall, square corners; focus outline 3px with 4px offset.
|
||||
Motion: 140ms ease-out for press/hover feedback; no ambient loops.
|
||||
|
||||
## 4. Layout
|
||||
|
||||
Layout: wowmine page - a world introduction followed by installation and help ->
|
||||
main-with-rail (https://github.com/changeroa/StyleGallery/blob/main/patterns/split-sidebar/main-with-rail.md);
|
||||
scroll owner: document; anti-patterns: no fixed-height scroll panels, no hidden
|
||||
mobile content, no visual reordering that changes keyboard order.
|
||||
|
||||
Layout: installation - sequential setup actions ->
|
||||
step-nav (https://github.com/changeroa/StyleGallery/blob/main/patterns/stacking/step-nav.md);
|
||||
scroll owner: document; anti-patterns: no horizontal step scroller and no
|
||||
same-size feature-card grid.
|
||||
|
||||
The hero uses one scenic image and readable text over a dark scrim.
|
||||
Below it, theme-aware stone surfaces hold the server address and setup
|
||||
instructions. Desktop has a narrow requirements rail; mobile stacks in DOM
|
||||
order. Footer stays in normal flow. The whole page reflows down to 320px.
|
||||
|
||||
## 5. Components and states
|
||||
|
||||
- Brand: original block mark plus wowmine, linked to the page start.
|
||||
- Navigation: in-page links; no account or fake menu.
|
||||
- Primary download: `wowmine-Prism.zip`, suggested filename `wowmine.zip`; one
|
||||
prominent button with hover/pressed/focus states.
|
||||
- Copy-address row: address always visible; stable-size icon button; polite,
|
||||
reserved feedback for success or clipboard denial. Address remains selectable.
|
||||
- Setup list: three numbered instructions with real destinations and named
|
||||
files; no interaction required to read the instructions.
|
||||
- Requirements list: semantic description list, not performance claims.
|
||||
- FAQ: native details/summary, visible keyboard focus and open-state icon.
|
||||
- Theme: light and dark appearances, with the existing theme switch preserved.
|
||||
|
||||
## 6. Content and assets
|
||||
|
||||
Verified existing source: `docs/minecraft-prism.md`, the public active page,
|
||||
and `script/build-prism-pack.py`. Stable links stay under
|
||||
`/minecraft/wowmine/`; Prism ZIP is not a plain mrpack import.
|
||||
Fonts are self-hosted Google Fonts releases under OFL, with notices beside them.
|
||||
Hero art is generated specifically for this page; original generation is
|
||||
retained in task evidence, and the shipped asset is a compressed WebP.
|
||||
All other graphics are small SVG interface glyphs and an original favicon.
|
||||
|
||||
## 7. Accessibility and browser surfaces
|
||||
|
||||
Semantic landmarks, one h1, ordered h2/h3 headings, skip link, native FAQ,
|
||||
visible focus, text selection, themed scrollbars, no color-only instructions.
|
||||
Target: WCAG 2.2 AA contrast and reflow; touch controls 44px or larger.
|
||||
Reduced motion disables smooth scrolling and transforms. The static document
|
||||
works without JavaScript: downloads, setup, FAQ, and selectable IP remain usable.
|
||||
Both light and dark appearances are checked on mobile and desktop; the component state harness is
|
||||
the real page, exercised through browser interactions.
|
||||
|
||||
## 8. Evidence and accepted debt
|
||||
|
||||
Before captures: `/tmp/wowmine-qa/before-{desktop,mobile}.png`.
|
||||
After captures and checks: `/tmp/wowmine-qa/`.
|
||||
Publication is separate from local implementation and must be reported honestly.
|
||||
No visual debt accepted yet.
|
||||
|
||||
Verified locally in Chromium: 1440px and 390px, both themes, installation
|
||||
layout, native FAQ expansion, clipboard success and permission denial,
|
||||
visible keyboard focus, and no horizontal overflow at 320px.
|
||||
Captures: `after-{desktop,mobile}-{light,dark}.png`, `mobile-install.png`,
|
||||
and `reflow-320.png` in the evidence directory.
|
||||
HTTP preview serves the redirect, document, scripts, fonts and image; the three
|
||||
existing public download/checksum URLs return 200.
|
||||
Nix parsing and isolated route evaluation pass. Bun browser bundling and the
|
||||
frontend draft guard pass. Full NixOS deployment was not run.
|
||||
The frontend detect renderer cannot run on installed Bun 1.2.13 because
|
||||
`Bun.WebView` is unavailable; browser checks above were run directly instead.
|
||||
TypeScript and editor language servers are not installed; browser bundling
|
||||
checks JavaScript syntax, not a full TypeScript analysis.
|
||||
|
||||
## 9. Gap ledger
|
||||
|
||||
| ID | Before | Required improvement | Proof |
|
||||
| --- | --- | --- | --- |
|
||||
| G1 | `/wowmine` returns 404 | Add a Nix-owned static route | Route evaluation and HTTP preview |
|
||||
| G2 | Bare browser-default text | Minecraft identity and readable hierarchy | Desktop/mobile screenshots |
|
||||
| G3 | Instructions lack structure | Ordered setup, requirements and FAQ | Browser landmarks and links |
|
||||
| G4 | IP is plain text | Copy action with accessible feedback | Keyboard and clipboard states |
|
||||
| G5 | No responsive/theme system | 320px reflow and both themes | Reflow/contrast probes |
|
||||
Generated
+90
-109
@@ -1,5 +1,25 @@
|
||||
{
|
||||
"nodes": {
|
||||
"affine-rust-overlay": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1792913333,
|
||||
"narHash": "sha256-wjoZGhxH/Yr+OsFRpNyV9DpMGQIdNEjjAOinfzQvadk=",
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"rev": "fad80eb74614f7dc37c1c83df8caae64361eda22",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"aquamarine": {
|
||||
"inputs": {
|
||||
"hyprutils": [
|
||||
@@ -166,13 +186,13 @@
|
||||
"locked": {
|
||||
"lastModified": 1767039857,
|
||||
"narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=",
|
||||
"owner": "edolstra",
|
||||
"owner": "NixOS",
|
||||
"repo": "flake-compat",
|
||||
"rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "edolstra",
|
||||
"owner": "NixOS",
|
||||
"repo": "flake-compat",
|
||||
"type": "github"
|
||||
}
|
||||
@@ -222,11 +242,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1749398372,
|
||||
"narHash": "sha256-tYBdgS56eXYaWVW3fsnPQ/nFlgWi/Z2Ymhyu21zVM98=",
|
||||
"lastModified": 1788450739,
|
||||
"narHash": "sha256-glZLQlzIn1fXH6PazR2iUmTo7kzzyYSshrWhLS9TqCU=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"rev": "9305fe4e5c2a6fcf5ba6a3ff155720fbe4076569",
|
||||
"rev": "31729ca8cbdb4fa927b34e5f4353e6a83f39e993",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -235,24 +255,6 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-utils": {
|
||||
"inputs": {
|
||||
"systems": "systems_4"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731533236,
|
||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"git-hooks": {
|
||||
"inputs": {
|
||||
"flake-compat": [
|
||||
@@ -266,11 +268,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1775585728,
|
||||
"narHash": "sha256-8Psjt+TWvE4thRKktJsXfR6PA/fWWsZ04DVaY6PUhr4=",
|
||||
"lastModified": 1778507602,
|
||||
"narHash": "sha256-kTwur1wV+01SdqskVMSo6JMEpg71ps3HpbFY2GsflKs=",
|
||||
"owner": "cachix",
|
||||
"repo": "git-hooks.nix",
|
||||
"rev": "580633fa3fe5fc0379905986543fd7495481913d",
|
||||
"rev": "61ab0e80d9c7ab14c256b5b453d8b3fb0189ba0a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -350,16 +352,16 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1770260404,
|
||||
"narHash": "sha256-3iVX1+7YUIt23hBx1WZsUllhbmP2EnXrV8tCRbLxHc8=",
|
||||
"lastModified": 1790996401,
|
||||
"narHash": "sha256-f+kOxEmOUnQazVAmGg0i8hzwgd1kX/geY+k/Dpheye8=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "0d782ee42c86b196acff08acfbf41bb7d13eed5b",
|
||||
"rev": "db7d5e2332710f5abb088f6b5de927d7f9511b35",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"ref": "release-25.11",
|
||||
"ref": "release-26.05",
|
||||
"repo": "home-manager",
|
||||
"type": "github"
|
||||
}
|
||||
@@ -662,34 +664,6 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"ixx": {
|
||||
"inputs": {
|
||||
"flake-utils": [
|
||||
"nixvim",
|
||||
"nuschtosSearch",
|
||||
"flake-utils"
|
||||
],
|
||||
"nixpkgs": [
|
||||
"nixvim",
|
||||
"nuschtosSearch",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1748294338,
|
||||
"narHash": "sha256-FVO01jdmUNArzBS7NmaktLdGA5qA3lUMJ4B7a05Iynw=",
|
||||
"owner": "NuschtOS",
|
||||
"repo": "ixx",
|
||||
"rev": "cc5f390f7caf265461d4aab37e98d2292ebbdb85",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NuschtOS",
|
||||
"ref": "v0.0.8",
|
||||
"repo": "ixx",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"mechabellum-replay-analysis": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
@@ -717,16 +691,16 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1772129556,
|
||||
"narHash": "sha256-Utk0zd8STPsUJPyjabhzPc5BpPodLTXrwkpXBHYnpeg=",
|
||||
"lastModified": 1783744694,
|
||||
"narHash": "sha256-2cp6N3rrwnGYLTx9l6N+NI+kwrCWxvJUbj5WJhvB29A=",
|
||||
"owner": "nix-darwin",
|
||||
"repo": "nix-darwin",
|
||||
"rev": "ebec37af18215214173c98cf6356d0aca24a2585",
|
||||
"rev": "c3e90c89649b07d1a96e4b9dd6cd0d6e44b91a74",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-darwin",
|
||||
"ref": "nix-darwin-25.11",
|
||||
"ref": "nix-darwin-26.05",
|
||||
"repo": "nix-darwin",
|
||||
"type": "github"
|
||||
}
|
||||
@@ -848,16 +822,16 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1764075412,
|
||||
"narHash": "sha256-d1+H7z21NsXgk9vL/9LAPUuiKrq9iqFxxqAWNNk1gY0=",
|
||||
"lastModified": 1779650959,
|
||||
"narHash": "sha256-dbO78C+xfY70Rg1YoMNgOSrYV85l1GmaS11auZeF9Sg=",
|
||||
"owner": "simple-nixos-mailserver",
|
||||
"repo": "nixos-mailserver",
|
||||
"rev": "8d35f004eeb47cfcfa5c4e1c8765f5c1bf64b9a0",
|
||||
"rev": "04094b9a1c120eb249e54b77963ae130f5b0d83d",
|
||||
"type": "gitlab"
|
||||
},
|
||||
"original": {
|
||||
"owner": "simple-nixos-mailserver",
|
||||
"ref": "snm-25.11",
|
||||
"ref": "snm-26.05",
|
||||
"repo": "nixos-mailserver",
|
||||
"type": "gitlab"
|
||||
}
|
||||
@@ -933,16 +907,16 @@
|
||||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1779796641,
|
||||
"narHash": "sha256-ZsIrKmhp4vbBXoXXmR/tBXA/UCsAQiJL9vsgZEduhVY=",
|
||||
"lastModified": 1791254437,
|
||||
"narHash": "sha256-qMSsgG+9tIdx282dMqGuJAUK3t6F36clM6efd0rXfes=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "25f538306313eae3927264466c70d7001dcea1df",
|
||||
"rev": "b25309931cfda5f0b8805f462a29897eeae50168",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-25.11",
|
||||
"ref": "nixos-26.05",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
@@ -953,45 +927,44 @@
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
],
|
||||
"nuschtosSearch": "nuschtosSearch",
|
||||
"systems": "systems_5"
|
||||
"systems": "systems_4"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1769049374,
|
||||
"narHash": "sha256-h0Os2qqNyycDY1FyZgtbn28VF1ySP74/n0f+LDd8j+w=",
|
||||
"lastModified": 1789959143,
|
||||
"narHash": "sha256-9oBHyJtUyunZL+6v0Ub8Y759cXcejQiTHpXtGcx5RLs=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixvim",
|
||||
"rev": "b8f76bf5751835647538ef8784e4e6ee8deb8f95",
|
||||
"rev": "4836e77b1798cd42e2de28593bec4c1788da08f5",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"ref": "nixos-25.11",
|
||||
"ref": "nixos-26.05",
|
||||
"repo": "nixvim",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nuschtosSearch": {
|
||||
"piu-piu": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils",
|
||||
"ixx": "ixx",
|
||||
"nixpkgs": [
|
||||
"nixvim",
|
||||
"nixpkgs"
|
||||
]
|
||||
],
|
||||
"rust-overlay": "rust-overlay_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1749730855,
|
||||
"narHash": "sha256-L3x2nSlFkXkM6tQPLJP3oCBMIsRifhIDPMQQdHO5xWo=",
|
||||
"owner": "NuschtOS",
|
||||
"repo": "search",
|
||||
"rev": "8dfe5879dd009ff4742b668d9c699bc4b9761742",
|
||||
"type": "github"
|
||||
"lastModified": 1794607706,
|
||||
"lfs": true,
|
||||
"narHash": "sha256-uboAhaoXSrasdmnq1/fzag+2CNw7CfPO+KKQxCIRGU4=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "1312bb414d97e04ca0b9ac062fb75c58a0455c00",
|
||||
"revCount": 171,
|
||||
"type": "git",
|
||||
"url": "ssh://gitea@gitea.hectic-lab.com/liquiz/recompile.git"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NuschtOS",
|
||||
"repo": "search",
|
||||
"type": "github"
|
||||
"lfs": true,
|
||||
"type": "git",
|
||||
"url": "ssh://gitea@gitea.hectic-lab.com/liquiz/recompile.git"
|
||||
}
|
||||
},
|
||||
"pre-commit-hooks": {
|
||||
@@ -1019,6 +992,7 @@
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"affine-rust-overlay": "affine-rust-overlay",
|
||||
"deploy-rs": "deploy-rs",
|
||||
"disko": "disko",
|
||||
"hectic-landing": "hectic-landing",
|
||||
@@ -1036,7 +1010,8 @@
|
||||
"nixpkgs": "nixpkgs_2",
|
||||
"nixpkgs-gitea": "nixpkgs-gitea",
|
||||
"nixvim": "nixvim",
|
||||
"rust-overlay": "rust-overlay_2",
|
||||
"piu-piu": "piu-piu",
|
||||
"rust-overlay": "rust-overlay_3",
|
||||
"sops-nix": "sops-nix"
|
||||
}
|
||||
},
|
||||
@@ -1062,6 +1037,27 @@
|
||||
}
|
||||
},
|
||||
"rust-overlay_2": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"piu-piu",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1794476126,
|
||||
"narHash": "sha256-KBjfmgZIUqBpjsemRKp4GvrCf8DlNsldkmxphh4X9oo=",
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"rev": "d1e30fd696e1151603aa8adaa8f6b8c604fe3eb0",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"rust-overlay_3": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
@@ -1088,11 +1084,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1764483358,
|
||||
"narHash": "sha256-EyyvCzXoHrbL467YSsQBTWWg4sR96MH1sPpKoSOelB4=",
|
||||
"lastModified": 1791103873,
|
||||
"narHash": "sha256-nFxM+pKoZ8LJAEnUXARyCaOAloWgaW9kZQOSjWzKcTE=",
|
||||
"owner": "Mic92",
|
||||
"repo": "sops-nix",
|
||||
"rev": "5aca6ff67264321d47856a2ed183729271107c9c",
|
||||
"rev": "dcd241ba97088c22569d1573286e1b9daad340c0",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -1161,21 +1157,6 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"systems_5": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"treefmt-nix": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
};
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
|
||||
nixpkgs-gitea.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
rust-overlay = {
|
||||
url = "github:oxalica/rust-overlay";
|
||||
@@ -21,6 +21,10 @@
|
||||
nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
affine-rust-overlay = {
|
||||
url = "github:oxalica/rust-overlay";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
deploy-rs = {
|
||||
url = "github:serokell/deploy-rs";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
@@ -30,7 +34,7 @@
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nixvim = {
|
||||
url = "github:nix-community/nixvim/nixos-25.11";
|
||||
url = "github:nix-community/nixvim/nixos-26.05";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
disko = {
|
||||
@@ -41,11 +45,11 @@
|
||||
url = "github:nix-community/impermanence";
|
||||
};
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager/release-25.11";
|
||||
url = "github:nix-community/home-manager/release-26.05";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nix-darwin = {
|
||||
url = "github:nix-darwin/nix-darwin/nix-darwin-25.11";
|
||||
url = "github:nix-darwin/nix-darwin/nix-darwin-26.05";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nixos-wsl = {
|
||||
@@ -64,7 +68,7 @@
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nixos-mailserver = {
|
||||
url = "gitlab:simple-nixos-mailserver/nixos-mailserver/snm-25.11";
|
||||
url = "gitlab:simple-nixos-mailserver/nixos-mailserver/snm-26.05";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nix-minecraft.url = "github:Infinidoge/nix-minecraft";
|
||||
@@ -84,6 +88,13 @@
|
||||
url = "git+ssh://git@github.com/LysmiMx/mechabellum-replay-analysis.git";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
piu-piu = {
|
||||
# NOTE(yukkop): private repo - SSH access required.
|
||||
# Set Port 22223 for gitea.hectic-lab.com in ~/.ssh/config.
|
||||
# Keep the port out of the URL for Nix's LFS authentication.
|
||||
url = "git+ssh://gitea@gitea.hectic-lab.com/liquiz/recompile.git?lfs=1";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {
|
||||
|
||||
@@ -581,9 +581,12 @@ immediate teardown; failed jobs retain pre-destroy diagnostics. A healthy,
|
||||
bootstrapped terminal VM may stay running until the next hourly boundary
|
||||
measured from original VM creation, capped by its original hard TTL.
|
||||
|
||||
Retention first enters a durable retirement state. The controller disables the
|
||||
exact repository runner registration, deletes it, and confirms its absence
|
||||
before clearing repository, label, and runner ownership into generic idle. A
|
||||
Each controller-managed registration is ephemeral: Gitea permits it to accept
|
||||
exactly one task and revokes reuse credentials after assignment. Retention first
|
||||
enters a durable retirement state. The controller disables the exact repository
|
||||
runner registration, waits if a pre-upgrade non-ephemeral registration is still
|
||||
assigned to an in-progress job, then deletes it and confirms its absence before
|
||||
clearing repository, label, and runner ownership into generic idle. A
|
||||
queued job from any allowed repository can atomically claim generic idle only
|
||||
when persisted server type, location, architecture, and image match one of the
|
||||
job label's candidates. The VM then remains unschedulable while Hetzner rebuilds
|
||||
@@ -592,12 +595,32 @@ server identity, current image/profile, and current IP before fetching a fresh
|
||||
destination-repository token and bootstrapping a new runner name. Old runner
|
||||
registration and filesystem are never reused.
|
||||
|
||||
Runner allocation and Gitea task assignment are separate identities. Bootstrap
|
||||
installs and registers with the daemon stopped, resolves the exact repository
|
||||
runner registration, persists its numeric `runner_id`, and only then starts the
|
||||
daemon over the pinned SSH channel. Webhooks and unfiltered paginated polling
|
||||
bind lifecycle by exact repository plus `runner_id`; terminal `runner_name` is
|
||||
not authoritative because Gitea may already have deleted the ephemeral runner
|
||||
row. If a runner consumes a different queued job, controller first persists a
|
||||
`transfer_pending` intent, moves VM lifecycle to the actual job, and restores
|
||||
the allocation-origin job as VM-less deferred work. Reconciliation replays this
|
||||
ordered transfer before TTL, orphan, capacity, or deferred sweeps, and duplicate
|
||||
crash-intermediate records count as one VM.
|
||||
|
||||
Pre-upgrade records without `runner_id` use exact live runner-name lookup once.
|
||||
If registration is authoritatively absent and complete repository job polling
|
||||
proves no job is active, VM moves to durable synthetic cleanup ownership while
|
||||
origin is restored to deferred. Any malformed, ambiguous, repository-mismatched,
|
||||
or unavailable identity data leaves state and VM untouched for later retry.
|
||||
|
||||
For every creation and reuse rebuild, the controller generates a unique SSH
|
||||
host key, injects it through authenticated Hetzner `user_data`, and pins that
|
||||
exact public key before sending a registration token. Shared image host keys
|
||||
and trust-on-first-use are not used. Runner images must process Hetzner
|
||||
cloud-init `write_files` during create and rebuild; verify this image gate before
|
||||
dispatching jobs. If host-key injection fails, bootstrap remains fail-closed.
|
||||
and trust-on-first-use are not used. Runner images must process cloud-init's
|
||||
native `ssh_keys` with `ssh_deletekeys: true` and `ssh_genkeytypes: [ed25519]`
|
||||
during create and rebuild. Before release, verify cloud-init completion and
|
||||
agreement between generated, pinned, and live host-key fingerprints on the
|
||||
target image. If host-key injection fails, bootstrap remains fail-closed.
|
||||
|
||||
Reuse preserves original Hetzner VM creation time, hard TTL, and budget charge;
|
||||
it creates no server and makes no second reservation. Provider or registration
|
||||
|
||||
+3
-1
@@ -58,7 +58,9 @@
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = pkgOverlays;
|
||||
config.allowUnfreePredicate = cudaUnfreePredicate;
|
||||
config.allowUnfreePredicate = pkg:
|
||||
cudaUnfreePredicate pkg
|
||||
|| builtins.elem (nixpkgs.lib.getName pkg) [ "vim-plugin-AnsiEsc" ];
|
||||
};
|
||||
systemOutputs = f {
|
||||
system = system;
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
{pkgs}:
|
||||
pkgs.writeShellScript "s3-retention" ''
|
||||
set -eu
|
||||
|
||||
if [ "$#" -ne 7 ]; then
|
||||
echo "Usage: $0 bucket endpoint region prefix archivePrefix retentionDays workDir" >&2
|
||||
exit 1
|
||||
fi
|
||||
bucket=$1
|
||||
endpoint=$2
|
||||
region=$3
|
||||
prefix=$4
|
||||
archive_prefix=$5
|
||||
retention_days=$6
|
||||
work_dir=$7
|
||||
remote_prefix="''${prefix:+$prefix/}"
|
||||
|
||||
temp_dir="$(${pkgs.coreutils}/bin/mktemp -d "$work_dir/.s3-retention.XXXXXXXXXX")"
|
||||
trap '${pkgs.coreutils}/bin/rm -rf "$temp_dir"' EXIT
|
||||
remote_list="$temp_dir/objects.json"
|
||||
remote_delete_dir="$temp_dir/delete"
|
||||
${pkgs.awscli2}/bin/aws s3api list-objects-v2 \
|
||||
--bucket "$bucket" \
|
||||
--prefix "$remote_prefix" \
|
||||
--endpoint-url "$endpoint" \
|
||||
--region "$region" \
|
||||
--output json > "$remote_list"
|
||||
${pkgs.python3}/bin/python3 - "$remote_list" "$remote_delete_dir" \
|
||||
"$(( $(${pkgs.coreutils}/bin/date +%s) - retention_days * 86400 ))" \
|
||||
"$remote_prefix$archive_prefix" <<'PY'
|
||||
import datetime
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
|
||||
objects_path, delete_dir, cutoff, key_prefix = sys.argv[1:]
|
||||
cutoff = int(cutoff)
|
||||
archive_pattern = re.compile(
|
||||
re.escape(key_prefix) + r"\d{8}T\d{6}Z\.tar\.zst\Z"
|
||||
)
|
||||
with open(objects_path, encoding="utf-8") as stream:
|
||||
objects = json.load(stream).get("Contents", [])
|
||||
|
||||
old_keys = []
|
||||
for item in objects:
|
||||
key = item.get("Key", "")
|
||||
if not archive_pattern.fullmatch(key):
|
||||
continue
|
||||
modified = datetime.datetime.fromisoformat(
|
||||
item["LastModified"].replace("Z", "+00:00")
|
||||
)
|
||||
if int(modified.timestamp()) < cutoff:
|
||||
old_keys.append(key)
|
||||
|
||||
os.makedirs(delete_dir, exist_ok=True)
|
||||
# The S3 endpoint disconnects when deleting multiple existing archives at once.
|
||||
for number, key in enumerate(old_keys):
|
||||
manifest_path = os.path.join(delete_dir, f"batch-{number:04d}.json")
|
||||
with open(manifest_path, "w", encoding="utf-8") as stream:
|
||||
json.dump({"Objects": [{"Key": key}], "Quiet": True}, stream)
|
||||
PY
|
||||
for remote_manifest in "$remote_delete_dir"/*.json; do
|
||||
[ -f "$remote_manifest" ] || continue
|
||||
${pkgs.awscli2}/bin/aws s3api delete-objects \
|
||||
--bucket "$bucket" \
|
||||
--delete "file://$remote_manifest" \
|
||||
--endpoint-url "$endpoint" \
|
||||
--region "$region" \
|
||||
--query '{Errors: Errors}' \
|
||||
--output json > "$temp_dir/result.json"
|
||||
if ! ${pkgs.jq}/bin/jq -e '(.Errors // []) | length == 0' "$temp_dir/result.json" > /dev/null; then
|
||||
${pkgs.coreutils}/bin/cat "$temp_dir/result.json" >&2
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
''
|
||||
@@ -1,9 +1,7 @@
|
||||
{
|
||||
inputs,
|
||||
flake,
|
||||
self,
|
||||
}:
|
||||
{
|
||||
...
|
||||
}: {
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
@@ -15,6 +13,10 @@
|
||||
value = input.${key};
|
||||
}) (builtins.attrNames input));
|
||||
in {
|
||||
imports = [
|
||||
inputs.nixos-mailserver.nixosModules.mailserver
|
||||
];
|
||||
|
||||
options = {
|
||||
services.mailserver.enable = lib.mkEnableOption "Mail server";
|
||||
|
||||
@@ -23,7 +25,7 @@ in {
|
||||
description = "The domain name of the mail server";
|
||||
};
|
||||
|
||||
services.mailserver.loginAccounts = lib.mkOption {
|
||||
services.mailserver.accounts = lib.mkOption {
|
||||
type = lib.types.attrsOf (lib.types.submodule {
|
||||
options = {
|
||||
hashedPassword = lib.mkOption {
|
||||
@@ -51,9 +53,9 @@ in {
|
||||
fqdn = "mail." + cfg.domain;
|
||||
domains = [ cfg.domain ];
|
||||
|
||||
loginAccounts = transformLoginAccounts cfg.domain cfg.loginAccounts;
|
||||
accounts = transformLoginAccounts cfg.domain cfg.accounts;
|
||||
|
||||
certificateScheme = "acme-nginx";
|
||||
x509.useACMEHost = "mail." + cfg.domain;
|
||||
};
|
||||
|
||||
services.postfix.settings.main = {
|
||||
@@ -0,0 +1,195 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
cfg = config.services.minecraft-backups;
|
||||
minecraft = config.services.minecraft-servers;
|
||||
servers = lib.filterAttrs (_: server: server.enable) cfg.servers;
|
||||
prune = import ../../../lib/s3-retention.nix { inherit pkgs; };
|
||||
stateDir = name: "${cfg.stateDir}/${name}";
|
||||
restore = name: server: pkgs.writeShellScript "minecraft-backup-resume-${name}" ''
|
||||
set -eu
|
||||
marker=${lib.escapeShellArg "${stateDir name}/restart-needed"}
|
||||
if [ -e "$marker" ]; then
|
||||
${pkgs.systemd}/bin/systemctl start ${lib.escapeShellArg server.service}
|
||||
${pkgs.coreutils}/bin/rm -f "$marker"
|
||||
fi
|
||||
'';
|
||||
backup = name: server: pkgs.writeShellScript "minecraft-backup-${name}" ''
|
||||
set -eu
|
||||
umask 077
|
||||
state_dir=${lib.escapeShellArg (stateDir name)}
|
||||
archive_dir="$state_dir/archive"
|
||||
staging_dir="$state_dir/staging"
|
||||
${pkgs.coreutils}/bin/install -d -m 0700 "$archive_dir" "$staging_dir"
|
||||
exec 9>"$state_dir/lock"
|
||||
${pkgs.util-linux}/bin/flock 9
|
||||
: "''${AWS_ACCESS_KEY_ID:?AWS_ACCESS_KEY_ID is required}"
|
||||
: "''${AWS_SECRET_ACCESS_KEY:?AWS_SECRET_ACCESS_KEY is required}"
|
||||
upload() {
|
||||
${pkgs.awscli2}/bin/aws s3 cp "$1" \
|
||||
${lib.escapeShellArg "s3://${cfg.s3.bucket}/${cfg.s3.prefix}/${name}/"}"''${1##*/}" \
|
||||
--endpoint-url ${lib.escapeShellArg cfg.s3.endpoint} \
|
||||
--region ${lib.escapeShellArg cfg.s3.region} \
|
||||
--cli-connect-timeout 30 --cli-read-timeout 300 --only-show-errors
|
||||
${pkgs.coreutils}/bin/rm -f "$1"
|
||||
}
|
||||
# Retry a failed upload before creating another local archive.
|
||||
for pending in "$archive_dir"/minecraft-${name}-????????T??????Z.tar.zst; do
|
||||
[ -f "$pending" ] || continue
|
||||
upload "$pending"
|
||||
done
|
||||
${restore name server}
|
||||
trap '${restore name server}' EXIT
|
||||
unit=${lib.escapeShellArg server.service}
|
||||
if ${pkgs.systemd}/bin/systemctl is-active --quiet "$unit"; then
|
||||
${lib.optionalString (server.announcementCommand != null) ''
|
||||
${lib.escapeShellArg (toString server.announcementCommand)} \
|
||||
"[Backup] Server will stop for backup in 5 minutes."
|
||||
${pkgs.coreutils}/bin/sleep 240
|
||||
${lib.escapeShellArg (toString server.announcementCommand)} \
|
||||
"[Backup] Server will stop for backup in 1 minute."
|
||||
${pkgs.coreutils}/bin/sleep 60
|
||||
${lib.escapeShellArg (toString server.announcementCommand)} \
|
||||
"[Backup] Server is stopping now to save a backup."
|
||||
''}
|
||||
${pkgs.coreutils}/bin/touch "$state_dir/restart-needed"
|
||||
${pkgs.systemd}/bin/systemctl stop "$unit"
|
||||
if [ "$(${pkgs.systemd}/bin/systemctl show "$unit" -p Result --value)" != success ]; then
|
||||
echo "Minecraft did not stop cleanly; refusing to copy $unit" >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
${pkgs.rsync}/bin/rsync -a --checksum --delete --delete-excluded \
|
||||
${lib.concatMapStringsSep " \\\n " (path: "--exclude=${lib.escapeShellArg "/${path}"}") server.exclude} \
|
||||
${lib.escapeShellArg "${server.directory}/"} "$staging_dir/"
|
||||
${restore name server}
|
||||
trap - EXIT
|
||||
timestamp="$(${pkgs.coreutils}/bin/date -u +%Y%m%dT%H%M%SZ)"
|
||||
archive="$archive_dir/minecraft-${name}-$timestamp.tar.zst"
|
||||
trap '${pkgs.coreutils}/bin/rm -f "$archive.tmp"' EXIT
|
||||
${pkgs.gnutar}/bin/tar \
|
||||
--use-compress-program=${lib.escapeShellArg "${pkgs.zstd}/bin/zstd -T2"} \
|
||||
-C "$staging_dir" -cf "$archive.tmp" .
|
||||
${pkgs.coreutils}/bin/mv "$archive.tmp" "$archive"
|
||||
trap - EXIT
|
||||
upload "$archive"
|
||||
${prune} \
|
||||
${lib.escapeShellArg cfg.s3.bucket} \
|
||||
${lib.escapeShellArg cfg.s3.endpoint} \
|
||||
${lib.escapeShellArg cfg.s3.region} \
|
||||
${lib.escapeShellArg "${cfg.s3.prefix}/${name}"} \
|
||||
${lib.escapeShellArg "minecraft-${name}-"} \
|
||||
${toString cfg.s3.retentionDays} "$state_dir"
|
||||
'';
|
||||
in {
|
||||
options.services.minecraft-backups = {
|
||||
enable = lib.mkEnableOption "scheduled Minecraft archives in S3";
|
||||
onCalendar = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "*-*-* 00/6:00:00";
|
||||
description = "Backup schedule for each server.";
|
||||
};
|
||||
stateDir = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "/var/lib/minecraft-backups";
|
||||
description = "Private staging trees and archives awaiting upload.";
|
||||
};
|
||||
s3 = {
|
||||
bucket = lib.mkOption { type = lib.types.str; };
|
||||
endpoint = lib.mkOption { type = lib.types.str; };
|
||||
region = lib.mkOption { type = lib.types.str; };
|
||||
prefix = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "minecraft/${config.networking.hostName}";
|
||||
};
|
||||
credentialsFile = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "Runtime environment file containing AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.";
|
||||
};
|
||||
retentionDays = lib.mkOption {
|
||||
type = lib.types.ints.positive;
|
||||
default = 14;
|
||||
};
|
||||
};
|
||||
servers = lib.mkOption {
|
||||
default = {};
|
||||
description = "Enabled nix-minecraft servers are included automatically; additional engines can be declared here.";
|
||||
type = lib.types.attrsOf (lib.types.submodule {
|
||||
options = {
|
||||
enable = lib.mkOption { type = lib.types.bool; default = true; };
|
||||
service = lib.mkOption { type = lib.types.str; };
|
||||
directory = lib.mkOption { type = lib.types.str; };
|
||||
announcementCommand = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.path;
|
||||
default = null;
|
||||
description = "Executable receiving one chat message argument. Enables warnings five minutes, one minute and immediately before stopping an active server.";
|
||||
};
|
||||
exclude = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
default = [
|
||||
"logs" "crash-reports" "backups" "cache" "libraries" "versions"
|
||||
"mods" "resources" "*.jar" "server.properties"
|
||||
];
|
||||
description = "Root entries regenerated by deployment, logs, and secret-bearing server properties.";
|
||||
};
|
||||
};
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
assertions = [
|
||||
{
|
||||
assertion = lib.hasPrefix "/" cfg.stateDir
|
||||
&& !lib.hasPrefix "/nix/store/" cfg.stateDir;
|
||||
message = "Minecraft backup stateDir must be an absolute runtime path.";
|
||||
}
|
||||
{
|
||||
assertion = lib.hasPrefix "/" cfg.s3.credentialsFile
|
||||
&& !lib.hasPrefix "/nix/store/" cfg.s3.credentialsFile;
|
||||
message = "Minecraft S3 credentials must be a runtime file outside /nix/store.";
|
||||
}
|
||||
{
|
||||
assertion = lib.hasPrefix "https://" cfg.s3.endpoint;
|
||||
message = "Minecraft S3 endpoint must use HTTPS.";
|
||||
}
|
||||
] ++ lib.mapAttrsToList (name: server: {
|
||||
assertion = builtins.match "[a-zA-Z0-9_-]+" name != null
|
||||
&& lib.hasPrefix "/" server.directory
|
||||
&& !(server.directory == cfg.stateDir || lib.hasPrefix "${server.directory}/" cfg.stateDir)
|
||||
&& !(server.directory == cfg.stateDir || lib.hasPrefix "${cfg.stateDir}/" server.directory);
|
||||
message = "Minecraft backup ${name} needs a safe name and a source directory separate from backup state.";
|
||||
}) servers;
|
||||
|
||||
services.minecraft-backups.servers = lib.mapAttrs (name: _: {
|
||||
service = lib.mkDefault "minecraft-server-${name}.service";
|
||||
directory = lib.mkDefault "${minecraft.dataDir}/${name}";
|
||||
}) (lib.filterAttrs (_: server: minecraft.enable && server.enable) minecraft.servers);
|
||||
|
||||
systemd.tmpfiles.rules = [ "d ${cfg.stateDir} 0700 root root - -" ]
|
||||
++ lib.mapAttrsToList (name: _: "d ${stateDir name} 0700 root root - -") servers;
|
||||
systemd.services = lib.mapAttrs' (name: server: lib.nameValuePair "minecraft-backup-${name}" {
|
||||
description = "S3 backup of Minecraft ${name}";
|
||||
wants = [ "network-online.target" ];
|
||||
after = [ "network-online.target" ];
|
||||
unitConfig.ConditionPathIsDirectory = server.directory;
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "root";
|
||||
UMask = "0077";
|
||||
EnvironmentFile = cfg.s3.credentialsFile;
|
||||
ExecStart = backup name server;
|
||||
# Also restore a stopped server when timeout/SIGKILL bypasses shell traps.
|
||||
ExecStopPost = restore name server;
|
||||
TimeoutStartSec = "2h";
|
||||
};
|
||||
}) servers;
|
||||
systemd.timers = lib.mapAttrs' (name: _: lib.nameValuePair "minecraft-backup-${name}" {
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
OnCalendar = cfg.onCalendar;
|
||||
Persistent = true;
|
||||
RandomizedDelaySec = "10min";
|
||||
};
|
||||
}) servers;
|
||||
};
|
||||
}
|
||||
@@ -35,7 +35,7 @@ in {
|
||||
Match all
|
||||
'';
|
||||
systemd.sockets.minecraft-wow-proxy = {
|
||||
description = "WorldOfSosal WoW public Minecraft port";
|
||||
description = "wowmine public Minecraft port";
|
||||
wantedBy = [ "sockets.target" ];
|
||||
listenStreams = [ "0.0.0.0:${toString cfg.publicPort}" ];
|
||||
};
|
||||
|
||||
@@ -0,0 +1,203 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
minecraft = config.services.minecraft-servers;
|
||||
restores = lib.filterAttrs (_: restore: restore.enable) config.services.minecraft-backup-restores;
|
||||
marker = ".minecraft-backup-restore-complete";
|
||||
# Python's data filter resolves symlink chains against the extraction tree and
|
||||
# rejects escaping links and special files. Also reject absolute/traversal
|
||||
# names outright (data_filter alone strips leading slashes).
|
||||
extract = pkgs.writeText "minecraft-restore-extract.py" ''
|
||||
import pathlib
|
||||
import sys
|
||||
import tarfile
|
||||
|
||||
def safe_member(member: tarfile.TarInfo, destination: str) -> tarfile.TarInfo | None:
|
||||
path = pathlib.PurePosixPath(member.name)
|
||||
if path.is_absolute() or ".." in path.parts or path.parts == ("${marker}",):
|
||||
raise tarfile.FilterError(f"Unsafe archive entry: {member.name}")
|
||||
# nix-minecraft regenerates this as an absolute store symlink. Keep
|
||||
# bootstrap's EULA rather than restoring a possibly obsolete store path.
|
||||
if path.parts == ("eula.txt",):
|
||||
return None
|
||||
return tarfile.data_filter(member, destination)
|
||||
|
||||
with tarfile.open(sys.argv[1], mode="r:") as archive:
|
||||
archive.extractall(sys.argv[2], filter=safe_member)
|
||||
'';
|
||||
fresh = pkgs.writeText "minecraft-restore-fresh.py" ''
|
||||
import os
|
||||
import pathlib
|
||||
import sys
|
||||
|
||||
target = pathlib.Path(sys.argv[1])
|
||||
level_name = sys.argv[2]
|
||||
if os.path.lexists(target / level_name):
|
||||
sys.exit(f"Refusing existing Minecraft level directory: {target / level_name}")
|
||||
# Refuse even incomplete saves, including custom level-name directories
|
||||
# and save signatures nested beneath mod-specific dimension paths.
|
||||
for directory, directories, files in os.walk(target, followlinks=False):
|
||||
for name in directories + files:
|
||||
path = pathlib.Path(directory) / name
|
||||
if (
|
||||
name in {"level.dat", "level.dat_old", "session.lock", "region",
|
||||
"entities", "poi", "playerdata", "advancements", "stats",
|
||||
"dimensions", "DIM-1", "DIM1"}
|
||||
or name.endswith((".mca", ".mcr"))
|
||||
or (path.parent == target and (
|
||||
name.startswith("world") or name == level_name
|
||||
))
|
||||
):
|
||||
sys.exit(f"Refusing existing Minecraft world state: {path}")
|
||||
'';
|
||||
script = name: restore:
|
||||
let
|
||||
target = "${minecraft.dataDir}/${restore.serverName}";
|
||||
levelName = toString (minecraft.servers.${restore.serverName}.serverProperties.level-name or "world");
|
||||
identity = builtins.toJSON { inherit name; inherit (restore) bucket key endpoint; };
|
||||
in pkgs.writeShellScript "minecraft-backup-restore-${name}" ''
|
||||
set -euo pipefail
|
||||
umask 077
|
||||
target=${lib.escapeShellArg target}
|
||||
${pkgs.coreutils}/bin/mkdir -p ${lib.escapeShellArg minecraft.dataDir}
|
||||
exec 9>${lib.escapeShellArg "${minecraft.dataDir}/.minecraft-restore-${restore.serverName}.lock"}
|
||||
${pkgs.util-linux}/bin/flock 9
|
||||
if [ -L "$target" ]; then
|
||||
echo "Refusing symlink restore target: $target" >&2
|
||||
exit 1
|
||||
fi
|
||||
if [ -e "$target/${marker}" ] || [ -L "$target/${marker}" ]; then
|
||||
if [ -f "$target/${marker}" ] && [ ! -L "$target/${marker}" ] &&
|
||||
[ "$(${pkgs.coreutils}/bin/cat "$target/${marker}")" = ${lib.escapeShellArg identity} ]; then
|
||||
exit 0
|
||||
fi
|
||||
echo "Restore marker does not match the configured S3 backup: $target/${marker}" >&2
|
||||
exit 1
|
||||
fi
|
||||
${pkgs.python3}/bin/python ${fresh} "$target" ${lib.escapeShellArg levelName}
|
||||
work="$(${pkgs.coreutils}/bin/mktemp -d ${lib.escapeShellArg "${minecraft.dataDir}/.minecraft-restore-${restore.serverName}.XXXXXX"})"
|
||||
trap '${pkgs.coreutils}/bin/rm -rf -- "$work"' EXIT
|
||||
trap 'exit 1' HUP INT TERM
|
||||
${pkgs.coreutils}/bin/mkdir "$work/server"
|
||||
if [ -e "$target" ]; then
|
||||
test -d "$target"
|
||||
${pkgs.coreutils}/bin/cp -a -- "$target/." "$work/server/"
|
||||
fi
|
||||
: "''${AWS_ACCESS_KEY_ID:?AWS_ACCESS_KEY_ID is required}"
|
||||
: "''${AWS_SECRET_ACCESS_KEY:?AWS_SECRET_ACCESS_KEY is required}"
|
||||
${pkgs.awscli2}/bin/aws s3 cp \
|
||||
${lib.escapeShellArg "s3://${restore.bucket}/${restore.key}"} "$work/backup.tar.zst" \
|
||||
--endpoint-url ${lib.escapeShellArg restore.endpoint} \
|
||||
--region ${lib.escapeShellArg restore.region} \
|
||||
--cli-connect-timeout 30 --cli-read-timeout 300 --only-show-errors
|
||||
${lib.optionalString (restore.expectedSize != null) ''
|
||||
test "$(${pkgs.coreutils}/bin/stat -c %s "$work/backup.tar.zst")" = ${toString restore.expectedSize}
|
||||
''}
|
||||
${pkgs.zstd}/bin/zstd --test --quiet "$work/backup.tar.zst"
|
||||
${pkgs.zstd}/bin/zstd --decompress --stdout "$work/backup.tar.zst" > "$work/backup.tar"
|
||||
${pkgs.python3}/bin/python ${extract} "$work/backup.tar" "$work/server"
|
||||
# Require the configured save, not an unrelated nested level.dat that
|
||||
# would let Minecraft silently generate a fresh world after this restore.
|
||||
test -f "$work/server"/${lib.escapeShellArg "${levelName}/level.dat"}
|
||||
printf '%s\n' ${lib.escapeShellArg identity} > "$work/server/${marker}"
|
||||
${pkgs.coreutils}/bin/chown -hR minecraft:minecraft "$work/server"
|
||||
# The marker moves with the tree in the same atomic operation. When a
|
||||
# bootstrap exists, exchange leaves it in work/server for trap cleanup;
|
||||
# an exchange failure leaves the original directory untouched.
|
||||
if [ -e "$target" ]; then
|
||||
${pkgs.coreutils}/bin/mv --exchange --no-copy -T "$work/server" "$target"
|
||||
else
|
||||
${pkgs.coreutils}/bin/mv --no-copy -T "$work/server" "$target"
|
||||
fi
|
||||
'';
|
||||
in {
|
||||
options.services.minecraft-backup-restores = lib.mkOption {
|
||||
default = {};
|
||||
description = "One-time full S3 backup restores, optionally after modpack bootstrap. The regenerated root eula.txt is retained from bootstrap.";
|
||||
type = lib.types.attrsOf (lib.types.submodule ({ name, ... }: {
|
||||
options = {
|
||||
enable = lib.mkEnableOption "one-time Minecraft backup restore";
|
||||
serverName = lib.mkOption { type = lib.types.str; default = name; };
|
||||
completionMarker = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
readOnly = true;
|
||||
default = "${minecraft.dataDir}/${config.services.minecraft-backup-restores.${name}.serverName}/${marker}";
|
||||
description = "Persistent marker path; bootstrap units should use ConditionPathExists=!<this path> to preserve restored configuration on subsequent boots.";
|
||||
};
|
||||
bucket = lib.mkOption { type = lib.types.str; };
|
||||
key = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "Exact S3 object key ending in .tar.zst.";
|
||||
};
|
||||
endpoint = lib.mkOption { type = lib.types.str; };
|
||||
region = lib.mkOption { type = lib.types.str; };
|
||||
credentialsFile = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "Runtime EnvironmentFile outside /nix/store containing AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.";
|
||||
};
|
||||
expectedSize = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.ints.positive;
|
||||
default = null;
|
||||
description = "Expected compressed object size in bytes.";
|
||||
};
|
||||
timeout = lib.mkOption { type = lib.types.str; default = "2h"; };
|
||||
afterUnits = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
default = [];
|
||||
description = "Required units that finish before restore, e.g. modpack bootstrap. Backup files override bootstrap files; bootstrap-only mods remain.";
|
||||
};
|
||||
};
|
||||
}));
|
||||
};
|
||||
|
||||
config = lib.mkIf (restores != {}) {
|
||||
assertions = [
|
||||
{
|
||||
assertion = lib.hasPrefix "/" minecraft.dataDir && !lib.hasPrefix "/nix/store/" minecraft.dataDir;
|
||||
message = "Minecraft restores require an absolute runtime dataDir.";
|
||||
}
|
||||
{
|
||||
assertion = lib.length (lib.unique (map (restore: restore.serverName) (lib.attrValues restores))) == lib.length (lib.attrNames restores);
|
||||
message = "Minecraft restores must have unique server targets.";
|
||||
}
|
||||
] ++ lib.concatLists (lib.mapAttrsToList (name: restore: [
|
||||
{
|
||||
assertion = builtins.match "[a-zA-Z0-9_-]+" name != null
|
||||
&& builtins.match "[a-zA-Z0-9_-]+" restore.serverName != null
|
||||
&& minecraft.enable
|
||||
&& (minecraft.servers.${restore.serverName}.enable or false);
|
||||
message = "Minecraft restore ${name} must target an enabled Minecraft server and use safe names.";
|
||||
}
|
||||
{
|
||||
assertion = lib.hasPrefix "/" restore.credentialsFile
|
||||
&& !lib.hasPrefix "/nix/store/" restore.credentialsFile;
|
||||
message = "Minecraft restore ${name} credentials must be a runtime file outside /nix/store.";
|
||||
}
|
||||
{
|
||||
assertion = lib.hasPrefix "https://" restore.endpoint && lib.hasSuffix ".tar.zst" restore.key;
|
||||
message = "Minecraft restore ${name} requires HTTPS and an exact .tar.zst object key.";
|
||||
}
|
||||
]) restores);
|
||||
|
||||
systemd.services = lib.mkMerge (lib.mapAttrsToList (name: restore: {
|
||||
"minecraft-backup-restore-${name}" = {
|
||||
description = "One-time full backup restore of Minecraft ${restore.serverName}";
|
||||
wants = [ "network-online.target" ];
|
||||
after = [ "network-online.target" ] ++ restore.afterUnits;
|
||||
requires = restore.afterUnits;
|
||||
before = [ "minecraft-server-${restore.serverName}.service" ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "root";
|
||||
UMask = "0077";
|
||||
EnvironmentFile = restore.credentialsFile;
|
||||
ExecStart = script name restore;
|
||||
TimeoutStartSec = restore.timeout;
|
||||
};
|
||||
};
|
||||
"minecraft-server-${restore.serverName}" = {
|
||||
requires = [ "minecraft-backup-restore-${name}.service" ];
|
||||
after = [ "minecraft-backup-restore-${name}.service" ];
|
||||
};
|
||||
}) restores);
|
||||
};
|
||||
}
|
||||
@@ -12,7 +12,6 @@
|
||||
in {
|
||||
imports = [
|
||||
inputs.disko.nixosModules.default
|
||||
inputs.nixos-mailserver.nixosModules.mailserver
|
||||
];
|
||||
|
||||
options.hectic.archetype.base.enable = lib.mkEnableOption "Enable archetupe.dev";
|
||||
|
||||
@@ -18,6 +18,7 @@ in {
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.nixvim = {
|
||||
nixpkgs.source = inputs.nixpkgs;
|
||||
enable = true;
|
||||
|
||||
extraPackages = with pkgs; [ gcc ];
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
{ ... }:
|
||||
{ config, lib, pkgs, ... }: let
|
||||
cfg = config.hectic.services.affine-chatgpt;
|
||||
stateDirectory = "/var/lib/affine-chatgpt";
|
||||
in {
|
||||
options.hectic.services.affine-chatgpt = {
|
||||
enable = lib.mkEnableOption "native ChatGPT subscription gateway for AFFiNE";
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = pkgs.hectic.affine-chatgpt;
|
||||
description = "Package providing the affine-chatgpt executable.";
|
||||
};
|
||||
port = lib.mkOption {
|
||||
type = lib.types.port;
|
||||
default = 3012;
|
||||
description = "Loopback-only gateway port.";
|
||||
};
|
||||
gatewayKeyFile = lib.mkOption {
|
||||
type = lib.types.path;
|
||||
default = "${stateDirectory}/gateway-key";
|
||||
description = "Owner-only runtime bearer key readable by affine-chatgpt; never put its contents in Nix.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
users.groups.affine-chatgpt = {};
|
||||
users.users.affine-chatgpt = {
|
||||
isSystemUser = true;
|
||||
group = "affine-chatgpt";
|
||||
home = stateDirectory;
|
||||
};
|
||||
systemd.services.affine-chatgpt = {
|
||||
description = "Native ChatGPT subscription gateway for AFFiNE";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "network-online.target" ];
|
||||
wants = [ "network-online.target" ];
|
||||
unitConfig.ConditionPathExists = "${stateDirectory}/session/credentials.json";
|
||||
preStart = ''
|
||||
install -d -m 0700 ${stateDirectory}/session
|
||||
'';
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
User = "affine-chatgpt";
|
||||
Group = "affine-chatgpt";
|
||||
StateDirectory = "affine-chatgpt";
|
||||
StateDirectoryMode = "0700";
|
||||
ExecStart = "${cfg.package}/bin/affine-chatgpt --state-dir ${stateDirectory}/session serve --host 127.0.0.1 --port ${toString cfg.port} --gateway-key-file ${cfg.gatewayKeyFile}";
|
||||
Restart = "on-failure";
|
||||
RestartSec = "5s";
|
||||
UMask = "0077";
|
||||
NoNewPrivileges = true;
|
||||
PrivateTmp = true;
|
||||
ProtectHome = true;
|
||||
ProtectSystem = "strict";
|
||||
ReadWritePaths = [ stateDirectory ];
|
||||
RestrictAddressFamilies = [ "AF_INET" "AF_INET6" "AF_UNIX" ];
|
||||
CapabilityBoundingSet = "";
|
||||
LimitCORE = 0;
|
||||
MemoryMax = "256M";
|
||||
TasksMax = 64;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,215 @@
|
||||
{
|
||||
inputs,
|
||||
flake,
|
||||
...
|
||||
}:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
cfg = config.hectic.services.affine;
|
||||
stateDirectory = "/var/lib/affine-native";
|
||||
configDirectory = "${stateDirectory}/.affine/config";
|
||||
storageDirectory = "${stateDirectory}/.affine/storage";
|
||||
initialConfig = pkgs.writeText "affine-native-config.json" (builtins.toJSON (
|
||||
lib.recursiveUpdate {
|
||||
server = {
|
||||
externalUrl = cfg.externalUrl;
|
||||
host = "localhost";
|
||||
listenAddr = cfg.address;
|
||||
name = cfg.serverName;
|
||||
port = cfg.port;
|
||||
};
|
||||
auth = {
|
||||
allowSignup = false;
|
||||
allowSignupForOauth = false;
|
||||
};
|
||||
copilot.enabled = false;
|
||||
} cfg.settings
|
||||
));
|
||||
prepareState = ''
|
||||
install -d -m 0700 ${configDirectory} ${storageDirectory}
|
||||
if [ ! -e ${configDirectory}/config.json ]; then
|
||||
install -m 0600 ${initialConfig} ${configDirectory}/config.json
|
||||
fi
|
||||
'';
|
||||
commonEnvironment = {
|
||||
HOME = stateDirectory;
|
||||
PORT = toString cfg.port;
|
||||
AFFINE_SERVER_PORT = toString cfg.port;
|
||||
LISTEN_ADDR = cfg.address;
|
||||
REDIS_SERVER_HOST = cfg.redisHost;
|
||||
REDIS_SERVER_PORT = toString cfg.redisPort;
|
||||
};
|
||||
commonServiceConfig = {
|
||||
User = "affine-native";
|
||||
Group = "affine-native";
|
||||
StateDirectory = "affine-native";
|
||||
StateDirectoryMode = "0700";
|
||||
EnvironmentFile = cfg.environmentFile;
|
||||
UMask = "0077";
|
||||
NoNewPrivileges = true;
|
||||
PrivateTmp = true;
|
||||
ProtectHome = true;
|
||||
ProtectSystem = "strict";
|
||||
ReadWritePaths = [ stateDirectory ];
|
||||
RestrictAddressFamilies = [ "AF_INET" "AF_INET6" "AF_UNIX" ];
|
||||
};
|
||||
in {
|
||||
options.hectic.services.affine = {
|
||||
enable = lib.mkEnableOption "native AFFiNE server";
|
||||
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = pkgs.callPackage (flake + "/package/affine") {
|
||||
inherit inputs;
|
||||
system = pkgs.stdenv.hostPlatform.system;
|
||||
nodejs = pkgs.nodejs_22;
|
||||
# Baseline bundle intentionally excludes independently deployed picker patches.
|
||||
frontendPatches = [ (flake + "/package/affine/gitea-document-typography.patch") ];
|
||||
};
|
||||
defaultText = lib.literalExpression "pkgs.callPackage ./package/affine { ...; }";
|
||||
description = ''
|
||||
AFFiNE package providing affine-server and affine-migrate. The default
|
||||
source-built package is available only on x86_64-linux and has an unfree
|
||||
backend license. Explicitly allow both "affine" and
|
||||
"affine-server-native" through nixpkgs.config.allowUnfreePredicate, or
|
||||
provide a package whose licensing policy you have configured separately.
|
||||
'';
|
||||
};
|
||||
|
||||
frontendPackage = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.package;
|
||||
default = null;
|
||||
description = ''
|
||||
Optional source-built AFFiNE web, admin, and mobile static assets to
|
||||
bind over the native server's bundled frontend.
|
||||
'';
|
||||
};
|
||||
|
||||
environmentFile = lib.mkOption {
|
||||
type = lib.types.path;
|
||||
description = ''
|
||||
Runtime environment file containing DATABASE_URL and any secret AFFiNE
|
||||
or Redis variables. Keep this file outside the Nix store.
|
||||
'';
|
||||
};
|
||||
|
||||
address = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "127.0.0.1";
|
||||
description = "Address on which AFFiNE listens.";
|
||||
};
|
||||
|
||||
port = lib.mkOption {
|
||||
type = lib.types.port;
|
||||
default = 3011;
|
||||
description = "Port on which AFFiNE listens.";
|
||||
};
|
||||
|
||||
externalUrl = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "http://localhost:${toString cfg.port}";
|
||||
description = "External URL written to the initial AFFiNE configuration.";
|
||||
};
|
||||
|
||||
serverName = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "AFFiNE";
|
||||
description = "Server name written to the initial AFFiNE configuration.";
|
||||
};
|
||||
|
||||
redisHost = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "127.0.0.1";
|
||||
description = "External Redis host exported as REDIS_SERVER_HOST.";
|
||||
};
|
||||
|
||||
redisPort = lib.mkOption {
|
||||
type = lib.types.port;
|
||||
default = 6388;
|
||||
description = "External Redis port exported as REDIS_SERVER_PORT.";
|
||||
};
|
||||
|
||||
settings = lib.mkOption {
|
||||
type = (pkgs.formats.json {}).type;
|
||||
default = {};
|
||||
description = ''
|
||||
Extra values recursively merged into the initial AFFiNE config.json.
|
||||
This seed is written only when config.json does not already exist.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
assertions = [
|
||||
{
|
||||
assertion = pkgs.stdenv.hostPlatform.system == "x86_64-linux";
|
||||
message = "hectic.services.affine currently supports only x86_64-linux.";
|
||||
}
|
||||
{
|
||||
assertion = cfg.frontendPackage == null || (
|
||||
cfg.package ? version &&
|
||||
cfg.frontendPackage ? version &&
|
||||
cfg.frontendPackage.version == cfg.package.version
|
||||
);
|
||||
message = "hectic.services.affine.frontendPackage version must match hectic.services.affine.package version.";
|
||||
}
|
||||
{
|
||||
assertion = cfg.frontendPackage == null || (
|
||||
cfg.package ? frontendStatic &&
|
||||
cfg.package.frontendStatic ? revision &&
|
||||
builtins.isString cfg.package.frontendStatic.revision &&
|
||||
cfg.package.frontendStatic.revision != "" &&
|
||||
cfg.frontendPackage ? revision &&
|
||||
builtins.isString cfg.frontendPackage.revision &&
|
||||
cfg.frontendPackage.revision != "" &&
|
||||
cfg.frontendPackage.revision == cfg.package.frontendStatic.revision
|
||||
);
|
||||
message = "hectic.services.affine.frontendPackage revision must be a non-empty string matching package.frontendStatic.revision.";
|
||||
}
|
||||
];
|
||||
|
||||
users.groups.affine-native = {};
|
||||
users.users.affine-native = {
|
||||
isSystemUser = true;
|
||||
group = "affine-native";
|
||||
home = stateDirectory;
|
||||
};
|
||||
|
||||
systemd.services.affine-native-migrate = {
|
||||
description = "AFFiNE database and data migrations";
|
||||
after = [ "network-online.target" ];
|
||||
wants = [ "network-online.target" ];
|
||||
environment = commonEnvironment;
|
||||
preStart = prepareState;
|
||||
restartTriggers = [ cfg.package initialConfig ];
|
||||
serviceConfig = commonServiceConfig // {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${cfg.package}/bin/affine-migrate";
|
||||
RemainAfterExit = true;
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.affine-native = {
|
||||
description = "Native AFFiNE server";
|
||||
after = [ "network-online.target" "affine-native-migrate.service" ];
|
||||
wants = [ "network-online.target" ];
|
||||
requires = [ "affine-native-migrate.service" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
environment = commonEnvironment;
|
||||
preStart = prepareState;
|
||||
restartTriggers = [ cfg.package initialConfig ] ++ lib.optional (cfg.frontendPackage != null) cfg.frontendPackage;
|
||||
serviceConfig = commonServiceConfig // {
|
||||
Type = "simple";
|
||||
ExecStart = "${cfg.package}/bin/affine-server";
|
||||
Restart = "on-failure";
|
||||
RestartSec = "5s";
|
||||
BindReadOnlyPaths = lib.optional (cfg.frontendPackage != null)
|
||||
"${cfg.frontendPackage}:${cfg.package}/share/affine/static";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -9,49 +9,70 @@
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
legacyCfg = config.hectic.services.matrix;
|
||||
hasClusterCfg = config.hectic ? generic && config.hectic.generic ? matrix-cluster;
|
||||
clusterCfg = if hasClusterCfg then config.hectic.generic.matrix-cluster else null;
|
||||
clusterSynapseEnabled =
|
||||
if hasClusterCfg
|
||||
then clusterCfg.enable
|
||||
&& (if clusterCfg.overrideEnableSynapse != null then clusterCfg.overrideEnableSynapse else clusterCfg.role == "primary")
|
||||
else false;
|
||||
enabled = legacyCfg.enable || clusterSynapseEnabled;
|
||||
matrixDomain = if legacyCfg.enable then legacyCfg.matrixDomain else if hasClusterCfg then clusterCfg.matrixDomain else "";
|
||||
jitsiPreferredDomain =
|
||||
if legacyCfg.enable && config.hectic.services.jitsi.enable
|
||||
then config.hectic.services.jitsi.hostName
|
||||
else if hasClusterCfg then clusterCfg.jitsi.preferredDomain else null;
|
||||
cfg = config.hectic.services.element;
|
||||
nonEmptyStr = lib.types.strMatching ".+";
|
||||
generatedSettings = {
|
||||
default_server_config = {
|
||||
"m.homeserver".base_url = cfg.homeserverBaseUrl;
|
||||
"m.homeserver".server_name = cfg.homeserverServerName;
|
||||
"m.identity_server".base_url = "https://vector.im";
|
||||
};
|
||||
|
||||
room_directory.servers = [ cfg.homeserverServerName ];
|
||||
|
||||
jitsi = lib.optionalAttrs (cfg.jitsiPreferredDomain != null) {
|
||||
preferred_domain = cfg.jitsiPreferredDomain;
|
||||
};
|
||||
|
||||
default_theme = "dark";
|
||||
show_labs_settings = true;
|
||||
};
|
||||
in {
|
||||
config = lib.mkIf enabled {
|
||||
services.nginx.virtualHosts."element.${matrixDomain}" = {
|
||||
options.hectic.services.element = {
|
||||
enable = lib.mkEnableOption "Element web client";
|
||||
|
||||
hostName = lib.mkOption {
|
||||
type = nonEmptyStr;
|
||||
description = "FQDN serving the Element web client.";
|
||||
};
|
||||
|
||||
homeserverBaseUrl = lib.mkOption {
|
||||
type = nonEmptyStr;
|
||||
description = "Public Matrix homeserver base URL used by Element.";
|
||||
};
|
||||
|
||||
homeserverServerName = lib.mkOption {
|
||||
type = nonEmptyStr;
|
||||
description = "Matrix server name presented by Element.";
|
||||
};
|
||||
|
||||
jitsiPreferredDomain = lib.mkOption {
|
||||
type = lib.types.nullOr nonEmptyStr;
|
||||
default = null;
|
||||
description = "Preferred Jitsi domain, or null to leave it unset.";
|
||||
};
|
||||
|
||||
settings = lib.mkOption {
|
||||
type = lib.types.attrsOf (pkgs.formats.json {}).type;
|
||||
default = {};
|
||||
description = ''
|
||||
Extra Element config recursively merged over generated defaults.
|
||||
Values here may override generated keys. Settings are PUBLIC in the
|
||||
Nix store and served config.json; do not put secrets here.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.nginx.enable = true;
|
||||
services.nginx.virtualHosts.${cfg.hostName} = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
|
||||
locations."= /config.element.${matrixDomain}.json".return = "302 /config.json";
|
||||
locations."= /config.${cfg.hostName}.json".return = "302 /config.json";
|
||||
|
||||
root = pkgs.hectic.element-web.override {
|
||||
conf = {
|
||||
default_server_config = {
|
||||
"m.homeserver".base_url = "https://${matrixDomain}";
|
||||
"m.homeserver".server_name = matrixDomain;
|
||||
"m.identity_server".base_url = "https://vector.im";
|
||||
};
|
||||
|
||||
room_directory.servers = [
|
||||
matrixDomain
|
||||
];
|
||||
|
||||
hectic.videoMessages.enabled = true;
|
||||
|
||||
jitsi = lib.optionalAttrs (jitsiPreferredDomain != null) {
|
||||
preferred_domain = jitsiPreferredDomain;
|
||||
};
|
||||
|
||||
default_theme = "dark";
|
||||
show_labs_settings = true;
|
||||
};
|
||||
conf = lib.recursiveUpdate generatedSettings cfg.settings;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
timestampArchivePattern = "project-zomboid-${cfg.serverName}-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]T[0-9][0-9][0-9][0-9][0-9][0-9]Z.tar.zst";
|
||||
saveDir = "${zomboidDir}/Saves/Multiplayer/${cfg.serverName}";
|
||||
serverConfigDir = "${zomboidDir}/Server";
|
||||
s3RetentionScript = import ../../../../lib/s3-retention.nix {inherit pkgs;};
|
||||
backupScript = pkgs.writeShellScript "project-zomboid-backup" ''
|
||||
set -eu
|
||||
|
||||
@@ -56,6 +57,7 @@
|
||||
${pkgs.coreutils}/bin/install -d -m 0700 \
|
||||
"$staging_dir/Zomboid/Saves/Multiplayer/${cfg.serverName}" \
|
||||
"$staging_dir/Zomboid/Server" \
|
||||
"$staging_dir/Zomboid/mods" \
|
||||
"$archive_dir"
|
||||
|
||||
exec 9>"$lock_file"
|
||||
@@ -125,6 +127,9 @@
|
||||
${pkgs.rsync}/bin/rsync -a --delete \
|
||||
${lib.escapeShellArg "${saveDir}/"} \
|
||||
"$staging_dir/Zomboid/Saves/Multiplayer/${cfg.serverName}/"
|
||||
${pkgs.rsync}/bin/rsync -a --delete \
|
||||
${lib.escapeShellArg "${zomboidDir}/mods/"} \
|
||||
"$staging_dir/Zomboid/mods/"
|
||||
${pkgs.rsync}/bin/rsync -a --delete --delete-excluded \
|
||||
--include=${lib.escapeShellArg "/${cfg.serverName}_SandboxVars.lua"} \
|
||||
--include=${lib.escapeShellArg "/${cfg.serverName}_spawnpoints.lua"} \
|
||||
@@ -163,69 +168,14 @@
|
||||
-mmin +${toString (backupCfg.retentionDays * 1440)} -delete
|
||||
''}
|
||||
|
||||
remote_prefix="$s3_prefix"
|
||||
if [ -n "$remote_prefix" ]; then
|
||||
remote_prefix="$remote_prefix/"
|
||||
fi
|
||||
archive_prefix=${lib.escapeShellArg "project-zomboid-${cfg.serverName}-"}
|
||||
remote_list="$staging_dir/.remote-objects.json"
|
||||
remote_delete_dir="$staging_dir/.remote-delete"
|
||||
${pkgs.awscli2}/bin/aws s3api list-objects-v2 \
|
||||
--bucket "$s3_bucket" \
|
||||
--prefix "$remote_prefix" \
|
||||
--endpoint-url ${lib.escapeShellArg s3Endpoint} \
|
||||
--region ${lib.escapeShellArg s3Region} \
|
||||
--output json > "$remote_list"
|
||||
${pkgs.python3}/bin/python3 - "$remote_list" "$remote_delete_dir" \
|
||||
"$(( $(${pkgs.coreutils}/bin/date +%s) - ${toString (backupCfg.s3.remoteRetentionDays * 86400)} ))" \
|
||||
"$remote_prefix$archive_prefix" <<'PY'
|
||||
import datetime
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
|
||||
objects_path, delete_dir, cutoff, key_prefix = sys.argv[1:]
|
||||
cutoff = int(cutoff)
|
||||
archive_pattern = re.compile(
|
||||
re.escape(key_prefix) + r"\d{8}T\d{6}Z\.tar\.zst\Z"
|
||||
)
|
||||
with open(objects_path, encoding="utf-8") as stream:
|
||||
objects = json.load(stream).get("Contents", [])
|
||||
|
||||
old_keys = []
|
||||
for item in objects:
|
||||
key = item.get("Key", "")
|
||||
if not archive_pattern.fullmatch(key):
|
||||
continue
|
||||
modified = datetime.datetime.fromisoformat(
|
||||
item["LastModified"].replace("Z", "+00:00")
|
||||
)
|
||||
if int(modified.timestamp()) < cutoff:
|
||||
old_keys.append(key)
|
||||
|
||||
os.makedirs(delete_dir, exist_ok=True)
|
||||
for batch_number in range(0, len(old_keys), 1000):
|
||||
batch = old_keys[batch_number:batch_number + 1000]
|
||||
manifest_path = os.path.join(
|
||||
delete_dir, f"batch-{batch_number // 1000:04d}.json"
|
||||
)
|
||||
with open(manifest_path, "w", encoding="utf-8") as stream:
|
||||
json.dump(
|
||||
{"Objects": [{"Key": key} for key in batch], "Quiet": True},
|
||||
stream,
|
||||
)
|
||||
PY
|
||||
for remote_manifest in "$remote_delete_dir"/*.json; do
|
||||
[ -f "$remote_manifest" ] || continue
|
||||
${pkgs.awscli2}/bin/aws s3api delete-objects \
|
||||
--bucket "$s3_bucket" \
|
||||
--delete "file://$remote_manifest" \
|
||||
--endpoint-url ${lib.escapeShellArg s3Endpoint} \
|
||||
--region ${lib.escapeShellArg s3Region} \
|
||||
--only-show-errors
|
||||
done
|
||||
${pkgs.coreutils}/bin/rm -rf "$remote_list" "$remote_delete_dir"
|
||||
${s3RetentionScript} \
|
||||
"$s3_bucket" \
|
||||
${lib.escapeShellArg s3Endpoint} \
|
||||
${lib.escapeShellArg s3Region} \
|
||||
"$s3_prefix" \
|
||||
${lib.escapeShellArg "project-zomboid-${cfg.serverName}-"} \
|
||||
${toString backupCfg.s3.remoteRetentionDays} \
|
||||
"$staging_dir"
|
||||
''}
|
||||
|
||||
${lib.optionalString (!backupCfg.s3.enable) ''
|
||||
@@ -287,6 +237,12 @@ in {
|
||||
description = "Steam beta branch, for example legacy41.";
|
||||
};
|
||||
|
||||
updateOnStart = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
description = "Update and validate the game through SteamCMD on startup; disable to use an existing installation.";
|
||||
};
|
||||
|
||||
memory = lib.mkOption {
|
||||
type = lib.types.strMatching "[0-9]+[mMgG]";
|
||||
default = "3g";
|
||||
@@ -524,11 +480,16 @@ in {
|
||||
${pkgs.coreutils}/bin/chown project-zomboid:project-zomboid ${lib.escapeShellArg rconPasswordFile}
|
||||
${pkgs.coreutils}/bin/chmod 0600 ${lib.escapeShellArg rconPasswordFile}
|
||||
''}
|
||||
${pkgs.steamcmd}/bin/steamcmd \
|
||||
+force_install_dir ${lib.escapeShellArg cfg.installDir} \
|
||||
+login anonymous \
|
||||
+app_update 380870 ${lib.optionalString (cfg.branch != null) "-beta ${lib.escapeShellArg cfg.branch}"} validate \
|
||||
+quit
|
||||
${if cfg.updateOnStart then ''
|
||||
${pkgs.steamcmd}/bin/steamcmd \
|
||||
+force_install_dir ${lib.escapeShellArg cfg.installDir} \
|
||||
+login anonymous \
|
||||
+app_update 380870 ${lib.optionalString (cfg.branch != null) "-beta ${lib.escapeShellArg cfg.branch}"} validate \
|
||||
+quit
|
||||
'' else ''
|
||||
test -x ${lib.escapeShellArg "${cfg.installDir}/start-server.sh"}
|
||||
test -s ${lib.escapeShellArg "${cfg.installDir}/ProjectZomboid64.json"}
|
||||
''}
|
||||
${pkgs.gnused}/bin/sed -i -E \
|
||||
's/"-Xmx[0-9]+[mMgG]"/"-Xmx${cfg.memory}"/' \
|
||||
${lib.escapeShellArg "${cfg.installDir}/ProjectZomboid64.json"}
|
||||
|
||||
@@ -0,0 +1,120 @@
|
||||
{
|
||||
inputs,
|
||||
flake,
|
||||
self,
|
||||
}:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
cfg = config.hectic.services.routine-server;
|
||||
system = pkgs.stdenv.hostPlatform.system;
|
||||
in {
|
||||
options.hectic.services.routine-server = {
|
||||
enable = lib.mkEnableOption "daily, weekly, and monthly routine server";
|
||||
|
||||
address = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "127.0.0.1";
|
||||
description = "Address on which the routine server listens.";
|
||||
};
|
||||
|
||||
port = lib.mkOption {
|
||||
type = lib.types.port;
|
||||
default = 8090;
|
||||
description = "Port on which the routine server listens.";
|
||||
};
|
||||
|
||||
generationDays = lib.mkOption {
|
||||
type = lib.types.ints.unsigned;
|
||||
default = 62;
|
||||
description = "Number of future routine days to materialize.";
|
||||
};
|
||||
|
||||
databaseName = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "routine-server";
|
||||
description = "PostgreSQL database used by the routine server.";
|
||||
};
|
||||
|
||||
databaseUser = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "routine-server";
|
||||
description = "PostgreSQL and dynamic system user used by the routine server.";
|
||||
};
|
||||
|
||||
databaseSocket = lib.mkOption {
|
||||
type = lib.types.path;
|
||||
default = "/run/postgresql";
|
||||
description = "PostgreSQL Unix socket directory.";
|
||||
};
|
||||
|
||||
timezone = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "UTC";
|
||||
description = "Timezone used for dates and reminder times.";
|
||||
};
|
||||
|
||||
environmentFile = lib.mkOption {
|
||||
type = with lib.types; nullOr path;
|
||||
default = null;
|
||||
description = ''
|
||||
Optional secret environment file. Supported variables:
|
||||
ROUTINE_API_TOKEN=
|
||||
ROUTINE_TELEGRAM_BOT_TOKEN=
|
||||
ROUTINE_TELEGRAM_CHAT_ID=
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
ensureDatabases = [ cfg.databaseName ];
|
||||
ensureUsers = [
|
||||
{
|
||||
name = cfg.databaseUser;
|
||||
ensureDBOwnership = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
systemd.services.routine-server = {
|
||||
description = "Personal routine task server";
|
||||
after = [ "network-online.target" "postgresql.service" ];
|
||||
wants = [ "network-online.target" ];
|
||||
requires = [ "postgresql.service" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
environment = {
|
||||
ROUTINE_BIND = "${cfg.address}:${toString cfg.port}";
|
||||
ROUTINE_DATABASE_URL = "host=${cfg.databaseSocket} dbname=${cfg.databaseName} user=${cfg.databaseUser}";
|
||||
ROUTINE_GENERATION_DAYS = toString cfg.generationDays;
|
||||
TZ = cfg.timezone;
|
||||
};
|
||||
|
||||
serviceConfig = lib.mkMerge [
|
||||
{
|
||||
Type = "simple";
|
||||
ExecStart = "${self.packages.${system}.routine-server}/bin/routine-server";
|
||||
Restart = "on-failure";
|
||||
RestartSec = "5s";
|
||||
DynamicUser = true;
|
||||
User = cfg.databaseUser;
|
||||
Group = cfg.databaseUser;
|
||||
UMask = "0077";
|
||||
NoNewPrivileges = true;
|
||||
PrivateTmp = true;
|
||||
ProtectHome = true;
|
||||
ProtectSystem = "strict";
|
||||
RestrictAddressFamilies = [ "AF_INET" "AF_INET6" "AF_UNIX" ];
|
||||
}
|
||||
(lib.mkIf (cfg.environmentFile != null) {
|
||||
EnvironmentFile = cfg.environmentFile;
|
||||
})
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -4,7 +4,6 @@
|
||||
self,
|
||||
}: {
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
config,
|
||||
...
|
||||
@@ -66,6 +65,14 @@ in {
|
||||
hostName = jitsiHost;
|
||||
};
|
||||
|
||||
hectic.services.element = {
|
||||
enable = true;
|
||||
hostName = elementEntryDomain;
|
||||
homeserverBaseUrl = "https://${polandEntryDomain}";
|
||||
homeserverServerName = matrixHost;
|
||||
jitsiPreferredDomain = jitsiHost;
|
||||
};
|
||||
|
||||
# NOTE(yukkop): disk was provisioned outside disko, so the expected partition
|
||||
# label does not exist. Pin root to the live filesystem UUID so stage 1 can
|
||||
# mount `/` reliably.
|
||||
@@ -171,34 +178,6 @@ in {
|
||||
proxyPass = "http://127.0.0.1:8008";
|
||||
};
|
||||
};
|
||||
|
||||
virtualHosts.${elementEntryDomain} = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
|
||||
locations."= /config.${elementEntryDomain}.json".return = "302 /config.json";
|
||||
|
||||
root = pkgs.hectic.element-web.override {
|
||||
conf = {
|
||||
default_server_config = {
|
||||
"m.homeserver".base_url = "https://${polandEntryDomain}";
|
||||
"m.homeserver".server_name = matrixHost;
|
||||
"m.identity_server".base_url = "https://vector.im";
|
||||
};
|
||||
|
||||
jitsi = {
|
||||
preferred_domain = jitsiHost;
|
||||
};
|
||||
|
||||
hectic.videoMessages.enabled = true;
|
||||
|
||||
room_directory.servers = [ matrixHost ];
|
||||
|
||||
default_theme = "dark";
|
||||
show_labs_settings = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
sops.secrets."matrix/signing-key" = {
|
||||
|
||||
@@ -5,14 +5,18 @@
|
||||
enable = true;
|
||||
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKNWWegOVTOF3EOmam32iP7sMybULMTxsXuC+cEGITQ8 minecraft-wow-relay";
|
||||
};
|
||||
systemd.tmpfiles.rules = [ "d /var/www/store/minecraft/world-of-sosal 0755 root root -" ];
|
||||
systemd.tmpfiles.rules = [ "d /var/www/store/minecraft/wowmine 0755 root root -" ];
|
||||
services.nginx.virtualHosts."store.bfs.band" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
root = "/var/www/store";
|
||||
locations."= /".return = "302 /minecraft/world-of-sosal/";
|
||||
locations."= /minecraft".return = "302 /minecraft/world-of-sosal/";
|
||||
locations."= /minecraft/".return = "302 /minecraft/world-of-sosal/";
|
||||
locations."= /".return = "302 /minecraft/wowmine/";
|
||||
locations."= /minecraft".return = "302 /minecraft/wowmine/";
|
||||
locations."= /minecraft/".return = "302 /minecraft/wowmine/";
|
||||
locations."^~ /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;
|
||||
'';
|
||||
locations."/".extraConfig = ''
|
||||
autoindex off;
|
||||
add_header Cache-Control "no-cache";
|
||||
@@ -21,8 +25,12 @@
|
||||
};
|
||||
# Keep old pack URLs working for already imported Prism instances.
|
||||
services.nginx.virtualHosts."bfs.band".locations = {
|
||||
"= /minecraft".return = "302 /minecraft/world-of-sosal/";
|
||||
"= /minecraft/".return = "302 /minecraft/world-of-sosal/";
|
||||
"= /minecraft".return = "302 /minecraft/wowmine/";
|
||||
"= /minecraft/".return = "302 /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;
|
||||
'';
|
||||
"^~ /minecraft/" = {
|
||||
root = "/var/www/store";
|
||||
extraConfig = ''
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{ ... }: {
|
||||
hectic.services.affine-chatgpt.enable = true;
|
||||
|
||||
systemd.services.affine-native = {
|
||||
wants = [ "affine-chatgpt.service" ];
|
||||
after = [ "affine-chatgpt.service" ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,289 @@
|
||||
{
|
||||
domain,
|
||||
...
|
||||
}: {
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
affineDomain = "affine.${domain}";
|
||||
stateDirectory = "/var/lib/affine";
|
||||
environmentFile = "${stateDirectory}/.env";
|
||||
bootstrapDirectory = "/var/lib/affine-bootstrap";
|
||||
bootstrapPasswordFile = "${bootstrapDirectory}/password";
|
||||
authFile = "${bootstrapDirectory}/htpasswd";
|
||||
|
||||
affineImage = "ghcr.io/toeverything/affine:0.27.4@sha256:c312116a134184947d98749c8a8e29f4e3bc97f4f2a51c9a3497f9baea2eec2b";
|
||||
postgresImage = "pgvector/pgvector:pg16@sha256:a97d77306ff47cc1d8add4d000cec2207da2e110746318df3137ce53c337ca30";
|
||||
redisImage = "redis:7-alpine@sha256:8be847644e195abc4c10c8d9936cfa45332eccc6b714fa7b186ff43f1f4d5579";
|
||||
|
||||
logging = {
|
||||
driver = "json-file";
|
||||
options = {
|
||||
max-file = "3";
|
||||
max-size = "10m";
|
||||
};
|
||||
};
|
||||
|
||||
commonEnvironment = {
|
||||
AFFINE_INDEXER_ENABLED = "false";
|
||||
DATABASE_URL = "postgresql://affine:\${DB_PASSWORD}@postgres:5432/affine";
|
||||
REDIS_SERVER_HOST = "redis";
|
||||
};
|
||||
|
||||
composeFile = (pkgs.formats.yaml {}).generate "affine-compose.yaml" {
|
||||
services = {
|
||||
affine = {
|
||||
image = affineImage;
|
||||
restart = "unless-stopped";
|
||||
mem_limit = "2g";
|
||||
inherit logging;
|
||||
ports = [ "127.0.0.1:3010:3010" ];
|
||||
volumes = [
|
||||
"${stateDirectory}/data/storage:/root/.affine/storage"
|
||||
"${stateDirectory}/data/config:/root/.affine/config"
|
||||
];
|
||||
environment = commonEnvironment;
|
||||
depends_on = {
|
||||
migration.condition = "service_completed_successfully";
|
||||
postgres.condition = "service_healthy";
|
||||
redis.condition = "service_healthy";
|
||||
};
|
||||
};
|
||||
|
||||
migration = {
|
||||
image = affineImage;
|
||||
command = [
|
||||
"sh"
|
||||
"-c"
|
||||
"node ./scripts/self-host-predeploy.js"
|
||||
];
|
||||
mem_limit = "1g";
|
||||
inherit logging;
|
||||
volumes = [
|
||||
"${stateDirectory}/data/storage:/root/.affine/storage"
|
||||
"${stateDirectory}/data/config:/root/.affine/config"
|
||||
];
|
||||
environment = commonEnvironment;
|
||||
depends_on = {
|
||||
postgres.condition = "service_healthy";
|
||||
redis.condition = "service_healthy";
|
||||
};
|
||||
};
|
||||
|
||||
postgres = {
|
||||
image = postgresImage;
|
||||
restart = "unless-stopped";
|
||||
mem_limit = "512m";
|
||||
inherit logging;
|
||||
environment = {
|
||||
POSTGRES_DB = "affine";
|
||||
POSTGRES_PASSWORD = "\${POSTGRES_PASSWORD}";
|
||||
POSTGRES_USER = "affine";
|
||||
};
|
||||
volumes = [ "${stateDirectory}/data/postgres:/var/lib/postgresql/data" ];
|
||||
healthcheck = {
|
||||
test = [ "CMD-SHELL" "pg_isready -U affine -d affine" ];
|
||||
interval = "10s";
|
||||
timeout = "5s";
|
||||
retries = 5;
|
||||
start_period = "10s";
|
||||
};
|
||||
};
|
||||
|
||||
redis = {
|
||||
image = redisImage;
|
||||
restart = "unless-stopped";
|
||||
mem_limit = "128m";
|
||||
inherit logging;
|
||||
command = [
|
||||
"redis-server"
|
||||
"--save"
|
||||
"60"
|
||||
"1"
|
||||
"--maxmemory"
|
||||
"96mb"
|
||||
"--maxmemory-policy"
|
||||
"noeviction"
|
||||
];
|
||||
healthcheck = {
|
||||
test = [ "CMD" "redis-cli" "ping" ];
|
||||
interval = "10s";
|
||||
timeout = "5s";
|
||||
retries = 5;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
configFile = pkgs.writeText "affine-config.json" (builtins.toJSON {
|
||||
server = {
|
||||
externalUrl = "https://${affineDomain}";
|
||||
name = "Hectic AFFiNE";
|
||||
};
|
||||
copilot.enabled = false;
|
||||
auth = {
|
||||
allowSignup = false;
|
||||
allowSignupForOauth = false;
|
||||
newAccountShareActionDelay = 0;
|
||||
};
|
||||
});
|
||||
|
||||
compose = "${pkgs.docker-compose}/bin/docker-compose --project-name affine --env-file ${environmentFile} --file ${composeFile}";
|
||||
frontendStatic = pkgs.hectic.affine-frontend-static;
|
||||
frontendOverride = (pkgs.formats.yaml {}).generate "affine-frontend-compose.yaml" {
|
||||
services.affine.volumes = [ "${frontendStatic}:/app/static:ro" ];
|
||||
};
|
||||
frontendCompose = "${compose} --file ${frontendOverride}";
|
||||
in {
|
||||
assertions = [
|
||||
{
|
||||
assertion = lib.hasPrefix "ghcr.io/toeverything/affine:${frontendStatic.version}@sha256:" affineImage;
|
||||
message = "AFFiNE frontend assets and the deployed backend image must use the same release.";
|
||||
}
|
||||
{
|
||||
assertion = frontendStatic.revision == "b4c8548c09da21b2898443559a5b846f0ccf5dd8";
|
||||
message = "AFFiNE frontend source revision must match the pinned 0.27.4 backend.";
|
||||
}
|
||||
];
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"d ${stateDirectory} 0750 root root -"
|
||||
"d ${stateDirectory}/data 0750 root root -"
|
||||
"d ${stateDirectory}/data/config 0750 root root -"
|
||||
"d ${stateDirectory}/data/postgres 0750 999 999 -"
|
||||
"d ${stateDirectory}/data/storage 0750 root root -"
|
||||
"d ${bootstrapDirectory} 0750 root nginx -"
|
||||
];
|
||||
|
||||
systemd.services.affine = {
|
||||
description = "AFFiNE Docker Compose stack";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
wants = [ "network-online.target" ];
|
||||
after = [
|
||||
"docker.service"
|
||||
"network-online.target"
|
||||
"systemd-tmpfiles-setup.service"
|
||||
];
|
||||
requires = [
|
||||
"docker.service"
|
||||
"network-online.target"
|
||||
];
|
||||
restartIfChanged = true;
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
RemainAfterExit = true;
|
||||
ExecStartPre = pkgs.writeShellScript "affine-prepare" ''
|
||||
set -eu
|
||||
umask 077
|
||||
|
||||
if [ ! -s ${environmentFile} ]; then
|
||||
environment_tmp="$(${pkgs.coreutils}/bin/mktemp ${stateDirectory}/.env.XXXXXX)"
|
||||
trap '${pkgs.coreutils}/bin/rm -f "$environment_tmp"' EXIT
|
||||
password="$(${pkgs.openssl}/bin/openssl rand -hex 32)"
|
||||
${pkgs.coreutils}/bin/printf 'DB_PASSWORD=%s\nPOSTGRES_PASSWORD=%s\n' "$password" "$password" > "$environment_tmp"
|
||||
${pkgs.coreutils}/bin/chmod 0600 "$environment_tmp"
|
||||
${pkgs.coreutils}/bin/chown root:root "$environment_tmp"
|
||||
${pkgs.coreutils}/bin/mv "$environment_tmp" ${environmentFile}
|
||||
trap - EXIT
|
||||
fi
|
||||
|
||||
if [ ! -e ${stateDirectory}/data/config/config.json ]; then
|
||||
${pkgs.coreutils}/bin/install -m 0644 ${configFile} ${stateDirectory}/data/config/config.json
|
||||
fi
|
||||
|
||||
${pkgs.coreutils}/bin/chmod 0600 ${environmentFile}
|
||||
${pkgs.coreutils}/bin/chown root:root ${environmentFile}
|
||||
'';
|
||||
ExecStart = "${compose} up --detach --wait";
|
||||
ExecStop = "${compose} down";
|
||||
TimeoutStartSec = "15min";
|
||||
TimeoutStopSec = "5min";
|
||||
};
|
||||
};
|
||||
|
||||
# Reconcile only the application container; leave the database and migration job alone.
|
||||
systemd.services.affine-frontend = {
|
||||
description = "Source-built AFFiNE frontend assets";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
requires = [ "affine.service" ];
|
||||
after = [ "affine.service" ];
|
||||
partOf = [ "affine.service" ];
|
||||
reloadIfChanged = true;
|
||||
restartIfChanged = false;
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
RemainAfterExit = true;
|
||||
ExecStart = "${frontendCompose} up --detach --no-deps --force-recreate affine";
|
||||
ExecReload = "${frontendCompose} up --detach --no-deps --force-recreate affine";
|
||||
ExecStop = "${compose} up --detach --no-deps --force-recreate affine";
|
||||
TimeoutStartSec = "5min";
|
||||
TimeoutStopSec = "5min";
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.affine-bootstrap = {
|
||||
description = "Prepare AFFiNE pilot basic authentication";
|
||||
requiredBy = [ "nginx.service" ];
|
||||
before = [ "nginx.service" ];
|
||||
after = [ "systemd-tmpfiles-setup.service" ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
RemainAfterExit = true;
|
||||
};
|
||||
script = ''
|
||||
set -eu
|
||||
umask 077
|
||||
|
||||
if [ ! -s ${bootstrapPasswordFile} ]; then
|
||||
password_tmp="$(${pkgs.coreutils}/bin/mktemp ${bootstrapDirectory}/.password.XXXXXX)"
|
||||
trap '${pkgs.coreutils}/bin/rm -f "$password_tmp"' EXIT
|
||||
${pkgs.openssl}/bin/openssl rand -hex 32 > "$password_tmp"
|
||||
${pkgs.coreutils}/bin/chmod 0600 "$password_tmp"
|
||||
${pkgs.coreutils}/bin/chown root:root "$password_tmp"
|
||||
${pkgs.coreutils}/bin/mv "$password_tmp" ${bootstrapPasswordFile}
|
||||
trap - EXIT
|
||||
fi
|
||||
|
||||
if [ ! -s ${authFile} ]; then
|
||||
auth_tmp="$(${pkgs.coreutils}/bin/mktemp ${bootstrapDirectory}/.htpasswd.XXXXXX)"
|
||||
trap '${pkgs.coreutils}/bin/rm -f "$auth_tmp"' EXIT
|
||||
hash="$(${pkgs.openssl}/bin/openssl passwd -6 -stdin < ${bootstrapPasswordFile})"
|
||||
${pkgs.coreutils}/bin/printf 'affine:%s\n' "$hash" > "$auth_tmp"
|
||||
${pkgs.coreutils}/bin/chmod 0640 "$auth_tmp"
|
||||
${pkgs.coreutils}/bin/chown root:nginx "$auth_tmp"
|
||||
${pkgs.coreutils}/bin/mv "$auth_tmp" ${authFile}
|
||||
trap - EXIT
|
||||
fi
|
||||
|
||||
${pkgs.coreutils}/bin/chmod 0600 ${bootstrapPasswordFile}
|
||||
${pkgs.coreutils}/bin/chown root:root ${bootstrapPasswordFile}
|
||||
${pkgs.coreutils}/bin/chmod 0640 ${authFile}
|
||||
${pkgs.coreutils}/bin/chown root:nginx ${authFile}
|
||||
'';
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts.${affineDomain} = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
# Create this marker only after configuring the administrator and signup policy.
|
||||
extraConfig = ''
|
||||
client_max_body_size 100m;
|
||||
set $affine_bootstrap_realm "AFFiNE setup";
|
||||
if (-f ${bootstrapDirectory}/initialized) {
|
||||
set $affine_bootstrap_realm off;
|
||||
}
|
||||
'';
|
||||
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:3010";
|
||||
proxyWebsockets = true;
|
||||
extraConfig = ''
|
||||
auth_basic $affine_bootstrap_realm;
|
||||
auth_basic_user_file ${authFile};
|
||||
proxy_read_timeout 3600s;
|
||||
proxy_send_timeout 3600s;
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,189 @@
|
||||
{
|
||||
domain,
|
||||
...
|
||||
}: args@{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
cfg = config.hectic.affineDeployment;
|
||||
affineDomain = "affine.${domain}";
|
||||
databaseName = "affine-native";
|
||||
environmentFile = "/var/lib/affine-native/environment";
|
||||
postgresqlDataDirectory = "/var/lib/affine-postgresql";
|
||||
postgresqlSocketDirectory = "/run/affine-postgresql";
|
||||
|
||||
affinePgvector = pkgs.postgresql_16.pkgs.pgvector.overrideAttrs (_: {
|
||||
version = "0.8.7";
|
||||
# v0.8.7 resolves to release commit f37c13f68b57d2c3472b2214fbcff699d6d34876.
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "pgvector";
|
||||
repo = "pgvector";
|
||||
rev = "v0.8.7";
|
||||
hash = "sha256-YYXz8zqiuqYWpJwImAhMry/QTLHKOP5MzuY0Of+aflc=";
|
||||
};
|
||||
});
|
||||
affinePostgresql = pkgs.postgresql_16.withPackages (_: [ affinePgvector ]);
|
||||
dockerConfig = (import ./affine-docker.nix { inherit domain; }) args;
|
||||
in {
|
||||
options.hectic.affineDeployment.nativeActive = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Route production traffic to native AFFiNE and disable legacy Docker units.";
|
||||
};
|
||||
|
||||
config = lib.mkMerge [
|
||||
{
|
||||
hectic.services.affine = {
|
||||
enable = true;
|
||||
frontendPackage = pkgs.hectic.affine-frontend-static;
|
||||
externalUrl = "https://${affineDomain}";
|
||||
serverName = "Hectic AFFiNE";
|
||||
address = "127.0.0.1";
|
||||
port = 3011;
|
||||
redisHost = "127.0.0.1";
|
||||
redisPort = 6388;
|
||||
inherit environmentFile;
|
||||
settings = {
|
||||
copilot.enabled = false;
|
||||
auth = {
|
||||
allowSignup = false;
|
||||
allowSignupForOauth = false;
|
||||
newAccountShareActionDelay = 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
users.groups.affine-postgres = {};
|
||||
users.users.affine-postgres = {
|
||||
isSystemUser = true;
|
||||
group = "affine-postgres";
|
||||
home = postgresqlDataDirectory;
|
||||
};
|
||||
|
||||
systemd.services.affine-postgresql = {
|
||||
description = "Isolated PostgreSQL cluster for AFFiNE";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "local-fs.target" ];
|
||||
unitConfig.RequiresMountsFor = postgresqlDataDirectory;
|
||||
path = [ affinePostgresql ];
|
||||
environment.POSTGRESQL_VERSION = affinePostgresql.version;
|
||||
restartTriggers = [ affinePgvector ];
|
||||
preStart = ''
|
||||
if [ ! -s ${postgresqlDataDirectory}/PG_VERSION ]; then
|
||||
initdb \
|
||||
--pgdata=${postgresqlDataDirectory} \
|
||||
--username=affine-postgres \
|
||||
--encoding=UTF8 \
|
||||
--locale=en_US.utf8 \
|
||||
--auth-local=peer \
|
||||
--auth-host=reject
|
||||
fi
|
||||
|
||||
cat > ${postgresqlDataDirectory}/pg_hba.conf <<'EOF'
|
||||
local all all peer
|
||||
host all all 0.0.0.0/0 reject
|
||||
host all all ::0/0 reject
|
||||
EOF
|
||||
'';
|
||||
postStart = ''
|
||||
ready=0
|
||||
for attempt in $(seq 1 60); do
|
||||
if pg_isready --host=${postgresqlSocketDirectory} --port=5433 --username=affine-postgres; then
|
||||
ready=1
|
||||
break
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
if [ "$ready" -ne 1 ]; then
|
||||
echo "AFFiNE PostgreSQL did not become ready" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
psql --host=${postgresqlSocketDirectory} --port=5433 --dbname=postgres \
|
||||
--set=ON_ERROR_STOP=1 <<'SQL'
|
||||
DO $role$
|
||||
BEGIN
|
||||
IF NOT EXISTS (SELECT FROM pg_catalog.pg_roles WHERE rolname = 'affine-native') THEN
|
||||
CREATE ROLE "affine-native" LOGIN NOSUPERUSER NOCREATEDB NOCREATEROLE;
|
||||
END IF;
|
||||
END
|
||||
$role$;
|
||||
ALTER ROLE "affine-native" LOGIN NOSUPERUSER NOCREATEDB NOCREATEROLE;
|
||||
SELECT 'CREATE DATABASE "affine-native" OWNER "affine-native"'
|
||||
WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'affine-native')\gexec
|
||||
ALTER DATABASE "affine-native" OWNER TO "affine-native";
|
||||
SQL
|
||||
|
||||
psql --host=${postgresqlSocketDirectory} --port=5433 --dbname=${databaseName} \
|
||||
--set=ON_ERROR_STOP=1 <<'SQL'
|
||||
CREATE EXTENSION IF NOT EXISTS vector;
|
||||
CREATE EXTENSION IF NOT EXISTS pgcrypto;
|
||||
SQL
|
||||
'';
|
||||
serviceConfig = {
|
||||
Type = "notify";
|
||||
User = "affine-postgres";
|
||||
Group = "affine-postgres";
|
||||
StateDirectory = "affine-postgresql";
|
||||
StateDirectoryMode = "0700";
|
||||
RuntimeDirectory = "affine-postgresql";
|
||||
RuntimeDirectoryMode = "0755";
|
||||
ExecStart = "${affinePostgresql}/bin/postgres -D ${postgresqlDataDirectory} -k ${postgresqlSocketDirectory} -p 5433 -c \"listen_addresses=\"";
|
||||
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
||||
KillSignal = "SIGINT";
|
||||
TimeoutStopSec = "120s";
|
||||
MemoryMax = "512M";
|
||||
Restart = "on-failure";
|
||||
RestartSec = "5s";
|
||||
};
|
||||
};
|
||||
|
||||
services.redis.servers.affine = {
|
||||
enable = true;
|
||||
bind = "127.0.0.1";
|
||||
port = 6388;
|
||||
settings = {
|
||||
maxmemory = "96mb";
|
||||
maxmemory-policy = "noeviction";
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.redis-affine.serviceConfig.MemoryMax = "128M";
|
||||
|
||||
# Live data restore is intentionally external. Main stages config, private.key,
|
||||
# storage, and the database before creating this runtime environment file.
|
||||
systemd.services.affine-native-migrate = {
|
||||
after = [ "affine-postgresql.service" "redis-affine.service" ];
|
||||
requires = [ "affine-postgresql.service" "redis-affine.service" ];
|
||||
unitConfig.ConditionPathExists = environmentFile;
|
||||
};
|
||||
|
||||
systemd.services.affine-native = {
|
||||
unitConfig.ConditionPathExists = environmentFile;
|
||||
serviceConfig.MemoryMax = "2G";
|
||||
};
|
||||
}
|
||||
|
||||
(lib.mkIf (!cfg.nativeActive) dockerConfig)
|
||||
|
||||
(lib.mkIf cfg.nativeActive {
|
||||
services.nginx.virtualHosts.${affineDomain} = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
extraConfig = ''
|
||||
client_max_body_size 100m;
|
||||
'';
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:3011";
|
||||
proxyWebsockets = true;
|
||||
extraConfig = ''
|
||||
proxy_read_timeout 3600s;
|
||||
proxy_send_timeout 3600s;
|
||||
'';
|
||||
};
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
||||
@@ -65,15 +65,9 @@ in {
|
||||
# Restrict the SDK TLS connector to HTTP/1.1 after S3 REFUSED_STREAM errors.
|
||||
cargoDeps = pkgs.runCommand "attic-cargo-vendor-http1" { } ''
|
||||
mkdir "$out"
|
||||
shopt -s dotglob
|
||||
for entry in ${old.cargoDeps}/*; do
|
||||
ln -s "$entry" "$out/$(basename "$entry")"
|
||||
done
|
||||
crate=aws-smithy-http-client-1.0.6
|
||||
rm "$out/$crate"
|
||||
cp -rL ${old.cargoDeps}/"$crate" "$out/$crate"
|
||||
chmod -R u+w "$out/$crate"
|
||||
substituteInPlace "$out/$crate/src/client/tls.rs" \
|
||||
cp -a --no-preserve=mode ${old.cargoDeps}/. "$out/"
|
||||
crate="$out/source-registry-0/aws-smithy-http-client-1.0.6"
|
||||
substituteInPlace "$crate/src/client/tls.rs" \
|
||||
--replace-fail '.enable_http2()' ""
|
||||
'';
|
||||
postPatch = (old.postPatch or "") + ''
|
||||
|
||||
@@ -11,9 +11,30 @@
|
||||
in self.lib.nixpkgs-lib.nixosSystem {
|
||||
pkgs = import inputs.nixpkgs {
|
||||
inherit system;
|
||||
overlays = [ self.overlays.default ];
|
||||
overlays = [
|
||||
self.overlays.default
|
||||
(final: prev: {
|
||||
python311 = prev.python311.overrideAttrs (old: {
|
||||
passthru = old.passthru // {
|
||||
doc = old.passthru.doc.overrideAttrs (oldDoc: {
|
||||
patches = (oldDoc.patches or [ ]) ++ [
|
||||
./python-docutils-0.22.patch
|
||||
./python-sphinx9-glossary.patch
|
||||
];
|
||||
});
|
||||
};
|
||||
});
|
||||
})
|
||||
];
|
||||
config.allowUnfreePredicate = pkg:
|
||||
builtins.elem (inputs.nixpkgs.lib.getName pkg) [ "steamcmd" "steam-unwrapped" "p4d" "p4" ];
|
||||
builtins.elem (inputs.nixpkgs.lib.getName pkg) [
|
||||
"affine"
|
||||
"affine-server-native"
|
||||
"steamcmd"
|
||||
"steam-unwrapped"
|
||||
"p4d"
|
||||
"p4"
|
||||
];
|
||||
};
|
||||
modules = [
|
||||
{ networking.hostName = name; }
|
||||
|
||||
@@ -48,12 +48,13 @@ 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
|
||||
self.nixosModules.mailserver
|
||||
self.nixosModules.matrix-cluster
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
inputs.piu-piu.nixosModules.server
|
||||
|
||||
self.nixosModules."shadowsocks-rust" # NOTE(nrv): impl
|
||||
self.nixosModules."shadowsocks" # NOTE(nrv): usage/instance
|
||||
@@ -61,16 +62,24 @@ in {
|
||||
inputs.hectic-landing.nixosModules.hectic-landing
|
||||
inputs.iana-angl.nixosModules.iana-angl
|
||||
|
||||
(import ./affine.nix { inherit domain; })
|
||||
./affine-chatgpt.nix
|
||||
(import ./attic.nix { inherit flake self inputs domain; })
|
||||
(import ./containers.nix { inherit flake self inputs; })
|
||||
./experimental-sshd.nix
|
||||
./minecraft-wow-proxy.nix
|
||||
(import ./ente.nix { inherit domain; })
|
||||
(import ./immich.nix { inherit domain; })
|
||||
(import ./immich.nix { inherit domain inputs; })
|
||||
(import ./mechabellum.nix { inherit flake self inputs domain; })
|
||||
(import ./whiteboard.nix { inherit domain; })
|
||||
(import (./. + "/sentinèlla.nix") { inherit flake self inputs domain; })
|
||||
];
|
||||
|
||||
services.piu-piu-server = {
|
||||
enable = true;
|
||||
bindAddress = "0.0.0.0";
|
||||
};
|
||||
|
||||
services.hectic-landing = {
|
||||
enable = true;
|
||||
package = inputs.hectic-landing.packages.${pkgs.stdenv.hostPlatform.system}.hectic-landing;
|
||||
@@ -90,6 +99,7 @@ in {
|
||||
security.acme.defaults.email = lib.mkForce "security@${domain}";
|
||||
|
||||
hectic = {
|
||||
affineDeployment.nativeActive = true;
|
||||
archetype.dev.enable = true;
|
||||
hardware.hetzner-cloud = {
|
||||
enable = true;
|
||||
@@ -101,83 +111,6 @@ in {
|
||||
services.matrix = {
|
||||
enable = false;
|
||||
};
|
||||
services."project-zomboid" = {
|
||||
enable = true;
|
||||
memory = "4g";
|
||||
serverName = "servertest";
|
||||
serverPropertiesFile = /var/lib/project-zomboid/server-password.ini;
|
||||
rcon.enable = true;
|
||||
backup = {
|
||||
enable = true;
|
||||
onCalendar = "*:0/30";
|
||||
retentionDays = 0;
|
||||
s3 = {
|
||||
enable = true;
|
||||
bucket = "backup-hectic-lab";
|
||||
endpoint = "https://hel1.your-objectstorage.com";
|
||||
region = "hel1";
|
||||
credentialsFile = "/var/lib/project-zomboid/s3-credentials";
|
||||
};
|
||||
};
|
||||
serverProperties = {
|
||||
Map = "Muldraugh, KY";
|
||||
SaveWorldEveryMinutes = 15;
|
||||
DoLuaChecksum = false;
|
||||
Public = true;
|
||||
AntiCheatSafety = 4;
|
||||
AntiCheatMovement = 4;
|
||||
AntiCheatSpeed = 4;
|
||||
AntiCheatHit = 4;
|
||||
AntiCheatPacket = 4;
|
||||
AntiCheatPacketException = 4;
|
||||
AntiCheatPermission = 4;
|
||||
AntiCheatXP = 4;
|
||||
AntiCheatFire = 4;
|
||||
AntiCheatSafeHouse = 4;
|
||||
AntiCheatRecipe = 4;
|
||||
AntiCheatPlayer = 4;
|
||||
AntiCheatChecksum = 4;
|
||||
AntiCheatItem = 4;
|
||||
AntiCheatNoClip = 4;
|
||||
AntiCheatServerCustomization = 4;
|
||||
};
|
||||
workshopItems = [
|
||||
"3676456221" # Lua Digital Watch Framework
|
||||
"3600401184" # Realistic Temperature Mod
|
||||
];
|
||||
mods = [
|
||||
"\\LuaDigitalWatchUI"
|
||||
"\\RC_RealisticColdMod"
|
||||
];
|
||||
sandboxProperties = {
|
||||
StartMonth = 12;
|
||||
StartDay = 1;
|
||||
WaterShut = 3;
|
||||
WaterShutModifier = 150;
|
||||
ElecShut = 3;
|
||||
ElecShutModifier = 150;
|
||||
MinutesPerPage = 0.5;
|
||||
Zombies = 4;
|
||||
ZombieConfig = {
|
||||
PopulationMultiplier = 1.3;
|
||||
PopulationStartMultiplier = 1.0;
|
||||
PopulationPeakMultiplier = 1.0;
|
||||
RespawnHours = 0.0;
|
||||
RespawnUnseenHours = 0.0;
|
||||
RespawnMultiplier = 0.0;
|
||||
RedistributeHours = 0.0;
|
||||
};
|
||||
ZombieLore = {
|
||||
Transmission = 4;
|
||||
Mortality = 7;
|
||||
Speed = 2;
|
||||
SprinterPercentage = 0;
|
||||
Strength = 2;
|
||||
Cognition = 2;
|
||||
DoorOpeningPercentage = 10;
|
||||
};
|
||||
};
|
||||
};
|
||||
services.p4d = {
|
||||
enable = true;
|
||||
package = pkgs.p4d;
|
||||
@@ -203,6 +136,10 @@ in {
|
||||
debugSshPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBSWIv80pyCMDQ6zH34P2qWizpOcO7X86BVhMGtbob9U gcr-controller@hectic-lab";
|
||||
hcloudSshKeyId = 118512401;
|
||||
};
|
||||
services.routine-server = {
|
||||
enable = true;
|
||||
timezone = "Europe/Rome";
|
||||
};
|
||||
};
|
||||
|
||||
zramSwap = {
|
||||
@@ -267,50 +204,9 @@ in {
|
||||
"jwt-secret"
|
||||
"s3-access-key"
|
||||
"s3-secret-key"
|
||||
]) // {
|
||||
"project-zomboid/s3-access-key" = {
|
||||
key = "ente/s3-access-key";
|
||||
owner = "project-zomboid";
|
||||
group = "project-zomboid";
|
||||
};
|
||||
"project-zomboid/s3-secret-key" = {
|
||||
key = "ente/s3-secret-key";
|
||||
owner = "project-zomboid";
|
||||
group = "project-zomboid";
|
||||
};
|
||||
};
|
||||
]);
|
||||
};
|
||||
|
||||
systemd.services.project-zomboid.preStart = lib.mkBefore ''
|
||||
password_file=${lib.escapeShellArg "/var/lib/project-zomboid/server-password"}
|
||||
properties_file=${lib.escapeShellArg "/var/lib/project-zomboid/server-password.ini"}
|
||||
s3_credentials_file=${lib.escapeShellArg "/var/lib/project-zomboid/s3-credentials"}
|
||||
s3_credentials_tmp="$(${pkgs.coreutils}/bin/mktemp "''${s3_credentials_file}.XXXXXX")"
|
||||
trap '${pkgs.coreutils}/bin/rm -f "$s3_credentials_tmp"' EXIT
|
||||
|
||||
{
|
||||
${pkgs.coreutils}/bin/printf 'AWS_ACCESS_KEY_ID='
|
||||
${pkgs.coreutils}/bin/cat ${lib.escapeShellArg config.sops.secrets."project-zomboid/s3-access-key".path}
|
||||
${pkgs.coreutils}/bin/printf '\n'
|
||||
${pkgs.coreutils}/bin/printf 'AWS_SECRET_ACCESS_KEY='
|
||||
${pkgs.coreutils}/bin/cat ${lib.escapeShellArg config.sops.secrets."project-zomboid/s3-secret-key".path}
|
||||
${pkgs.coreutils}/bin/printf '\n'
|
||||
} > "$s3_credentials_tmp"
|
||||
${pkgs.coreutils}/bin/chmod 0400 "$s3_credentials_tmp"
|
||||
${pkgs.coreutils}/bin/mv -f "$s3_credentials_tmp" "$s3_credentials_file"
|
||||
|
||||
if [ ! -s "$password_file" ] || ! ${pkgs.gnugrep}/bin/grep -Eq '^[0-9a-f]{48}$' "$password_file"; then
|
||||
umask 077
|
||||
${pkgs.openssl}/bin/openssl rand -hex 24 > "$password_file"
|
||||
fi
|
||||
${pkgs.coreutils}/bin/chmod 0600 "$password_file"
|
||||
|
||||
properties_file_tmp="$(${pkgs.coreutils}/bin/mktemp "$(dirname "$properties_file")/.server-password.ini.XXXXXX")"
|
||||
${pkgs.coreutils}/bin/printf 'Password=%s\n' "$(<"$password_file")" > "$properties_file_tmp"
|
||||
${pkgs.coreutils}/bin/chmod 0600 "$properties_file_tmp"
|
||||
${pkgs.coreutils}/bin/mv "$properties_file_tmp" "$properties_file"
|
||||
'';
|
||||
|
||||
users.users.root.openssh.authorizedKeys.keys = [
|
||||
# neuro machine
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDfqSROY+rp7amPPiArY3sZM7jTjYBS02csWxF/NeIr/ root@neuro"
|
||||
@@ -347,7 +243,7 @@ in {
|
||||
services.mailserver = {
|
||||
enable = true;
|
||||
domain = domain;
|
||||
loginAccounts = builtins.listToAttrs (map mkMailLoginAccount mailUserNames);
|
||||
accounts = builtins.listToAttrs (map mkMailLoginAccount mailUserNames);
|
||||
};
|
||||
|
||||
mailserver.stateVersion = 3;
|
||||
@@ -372,6 +268,7 @@ in {
|
||||
55228 # ss-bfs
|
||||
];
|
||||
allowedUDPPorts = [
|
||||
config.services.piu-piu-server.port
|
||||
51820 # wg-bfs
|
||||
55228 # ss-bfs
|
||||
];
|
||||
@@ -385,8 +282,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} = {
|
||||
@@ -422,6 +317,7 @@ in {
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
# NOTE(yukkop): virtualHosts.${domain} is owned by the hectic-landing module
|
||||
virtualHosts."mail.${domain}".enableACME = true;
|
||||
virtualHosts."store.${domain}" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
@@ -431,65 +327,6 @@ in {
|
||||
autoindex on;
|
||||
'';
|
||||
};
|
||||
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;
|
||||
@@ -529,7 +366,7 @@ in {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
# NOTE(yukkop): allow large git pushes over HTTPS.
|
||||
extraConfig = "client_max_body_size 512m;";
|
||||
extraConfig = "client_max_body_size 2g;";
|
||||
locations."/" = {
|
||||
extraConfig = ''
|
||||
proxy_pass http://127.0.0.1:11011/;
|
||||
@@ -547,7 +384,7 @@ in {
|
||||
enable = true;
|
||||
package = pkgs.hectic.gitea-heatmap;
|
||||
# Keep LFS storage limited to accounts provisioned by administrators.
|
||||
settings.service.DISABLE_REGISTRATION = true;
|
||||
settings.service.DISABLE_REGISTRATION = false;
|
||||
settings.session.COOKIE_SECURE = true;
|
||||
settings.actions.ENABLED = true;
|
||||
# Long CUDA builds must not hit Gitea's default three-hour task watchdog.
|
||||
@@ -558,9 +395,9 @@ in {
|
||||
ROOT_URL = "https://gitea.${domain}/";
|
||||
SSH_PORT = giteaSshPort;
|
||||
SSH_DOMAIN = "hectic-lab.com";
|
||||
LFS_MAX_FILE_SIZE = 2147483648;
|
||||
};
|
||||
lfs.enable = true;
|
||||
settings.lfs.LFS_MAX_FILE_SIZE = 536870912;
|
||||
database = {
|
||||
createDatabase = true;
|
||||
type = "postgres";
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{ domain, ... }:
|
||||
{ domain, inputs, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
@@ -13,4 +14,8 @@
|
||||
credentialsFile = config.sops.secrets."immich/storage-box".path;
|
||||
};
|
||||
};
|
||||
|
||||
# Immich 3 is not available on nixos-26.05.
|
||||
services.immich.package =
|
||||
inputs.nixpkgs-gitea.legacyPackages.${pkgs.stdenv.hostPlatform.system}.immich;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
{
|
||||
imports = [ (import ../../module/generic/minecraft-public-relay.nix { }) ];
|
||||
services.minecraft-public-relay = {
|
||||
enable = true;
|
||||
enable = false;
|
||||
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKNWWegOVTOF3EOmam32iP7sMybULMTxsXuC+cEGITQ8 minecraft-wow-relay";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
--- a/Doc/tools/extensions/pyspecific.py
|
||||
+++ b/Doc/tools/extensions/pyspecific.py
|
||||
@@ -48,11 +48,21 @@
|
||||
SOURCE_URI = 'https://github.com/python/cpython/tree/3.11/%s'
|
||||
|
||||
# monkey-patch reST parser to disable alphabetic and roman enumerated lists
|
||||
+def _disable_alphabetic_and_roman(text):
|
||||
+ try:
|
||||
+ # docutils >= 0.22
|
||||
+ from docutils.parsers.rst.states import InvalidRomanNumeralError
|
||||
+ raise InvalidRomanNumeralError(text)
|
||||
+ except ImportError:
|
||||
+ # docutils < 0.22
|
||||
+ return None
|
||||
+
|
||||
+
|
||||
from docutils.parsers.rst.states import Body
|
||||
Body.enum.converters['loweralpha'] = \
|
||||
Body.enum.converters['upperalpha'] = \
|
||||
Body.enum.converters['lowerroman'] = \
|
||||
- Body.enum.converters['upperroman'] = lambda x: None
|
||||
+ Body.enum.converters['upperroman'] = _disable_alphabetic_and_roman
|
||||
@@ -0,0 +1,12 @@
|
||||
--- a/Doc/tools/extensions/glossary_search.py
|
||||
+++ b/Doc/tools/extensions/glossary_search.py
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
rendered = app.builder.render_partial(definition)
|
||||
terms[term] = {
|
||||
'title': glossary_item[0].astext(),
|
||||
- 'body': rendered['html_body']
|
||||
+ 'body': rendered['fragment']
|
||||
}
|
||||
|
||||
if hasattr(app.env, 'glossary_terms'):
|
||||
@@ -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>
|
||||
@@ -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 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,217 @@
|
||||
@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);
|
||||
}
|
||||
|
||||
* { 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; }
|
||||
.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,19 @@
|
||||
// @ts-check
|
||||
|
||||
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,175 @@
|
||||
<!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">
|
||||
<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://store.hectic-lab.com/wowmine/assets/world-valley.webp">
|
||||
<link rel="canonical" href="https://store.hectic-lab.com/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="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>
|
||||
</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>
|
||||
@@ -0,0 +1,81 @@
|
||||
{
|
||||
domain,
|
||||
...
|
||||
}: {
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
authDirectory = "/var/lib/whiteboard-auth";
|
||||
authFile = "${authDirectory}/htpasswd";
|
||||
passwordFile = "${authDirectory}/password";
|
||||
whiteboardDomain = "whiteboard.${domain}";
|
||||
in {
|
||||
# Retrieve generated credential with:
|
||||
# sudo cat /var/lib/whiteboard-auth/password
|
||||
# Whiteboard state is persisted under /var/lib/whitebophir.
|
||||
services.whitebophir = {
|
||||
enable = true;
|
||||
listenAddress = "127.0.0.1";
|
||||
port = 5001;
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"d ${authDirectory} 0750 root nginx -"
|
||||
];
|
||||
|
||||
systemd.services.whiteboard-auth = {
|
||||
description = "Prepare Whitebophir basic authentication";
|
||||
requiredBy = [ "nginx.service" ];
|
||||
before = [ "nginx.service" ];
|
||||
after = [ "systemd-tmpfiles-setup.service" ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
RemainAfterExit = true;
|
||||
};
|
||||
script = ''
|
||||
set -eu
|
||||
umask 077
|
||||
|
||||
if [ ! -s ${passwordFile} ]; then
|
||||
password_tmp="$(${pkgs.coreutils}/bin/mktemp ${authDirectory}/.password.XXXXXX)"
|
||||
trap '${pkgs.coreutils}/bin/rm -f "$password_tmp"' EXIT
|
||||
${pkgs.openssl}/bin/openssl rand -base64 48 > "$password_tmp"
|
||||
${pkgs.coreutils}/bin/chmod 0600 "$password_tmp"
|
||||
${pkgs.coreutils}/bin/chown root:root "$password_tmp"
|
||||
${pkgs.coreutils}/bin/mv "$password_tmp" ${passwordFile}
|
||||
trap - EXIT
|
||||
fi
|
||||
|
||||
if [ ! -s ${authFile} ]; then
|
||||
auth_tmp="$(${pkgs.coreutils}/bin/mktemp ${authDirectory}/.htpasswd.XXXXXX)"
|
||||
trap '${pkgs.coreutils}/bin/rm -f "$auth_tmp"' EXIT
|
||||
hash="$(${pkgs.openssl}/bin/openssl passwd -6 -stdin < ${passwordFile})"
|
||||
${pkgs.coreutils}/bin/printf 'whiteboard:%s\n' "$hash" > "$auth_tmp"
|
||||
${pkgs.coreutils}/bin/chmod 0640 "$auth_tmp"
|
||||
${pkgs.coreutils}/bin/chown root:nginx "$auth_tmp"
|
||||
${pkgs.coreutils}/bin/mv "$auth_tmp" ${authFile}
|
||||
trap - EXIT
|
||||
fi
|
||||
|
||||
${pkgs.coreutils}/bin/chmod 0600 ${passwordFile}
|
||||
${pkgs.coreutils}/bin/chown root:root ${passwordFile}
|
||||
${pkgs.coreutils}/bin/chmod 0640 ${authFile}
|
||||
${pkgs.coreutils}/bin/chown root:nginx ${authFile}
|
||||
'';
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts.${whiteboardDomain} = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
basicAuthFile = authFile;
|
||||
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:5001";
|
||||
proxyWebsockets = true;
|
||||
extraConfig = ''
|
||||
proxy_read_timeout 3600s;
|
||||
proxy_send_timeout 3600s;
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -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
|
||||
@@ -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`.
|
||||
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
|
||||
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.
|
||||
|
||||
---
|
||||
@@ -65,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
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@ in self.lib.nixpkgs-lib.nixosSystem {
|
||||
"steam-unwrapped"
|
||||
|
||||
"nvidia-x11"
|
||||
"nvidia-kernel-modules"
|
||||
];
|
||||
# jitsi-meet depends on libolm which is marked insecure (CVE-2024-4519x)
|
||||
config.permittedInsecurePackages = [
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
name = "wowMineMapRestore";
|
||||
production = config.services.minecraft-servers.servers.wowMineMap;
|
||||
pack = config.services.minecraft-modpack-imports.wowmine;
|
||||
restore = config.services.minecraft-backup-restores.${name};
|
||||
serverDir = "${config.services.minecraft-servers.dataDir}/${name}";
|
||||
in {
|
||||
imports = [ ../../../module/generic/minecraft-restore.nix ];
|
||||
|
||||
sops.secrets."minecraft/restore-storage-box-pack-key" = {
|
||||
sopsFile = config.sops.secrets."minecraft/storage-box-pack-key".sopsFile;
|
||||
key = "minecraft/storage-box-pack-key";
|
||||
owner = "mc-pack-${name}";
|
||||
group = "mc-pack-${name}";
|
||||
mode = "0400";
|
||||
};
|
||||
|
||||
services.minecraft-servers.servers.${name} = {
|
||||
enable = true;
|
||||
autoStart = false;
|
||||
openFirewall = false;
|
||||
package = production.package;
|
||||
jvmOpts = "-Xmx8G -Xms2G";
|
||||
serverProperties = production.serverProperties // {
|
||||
server-ip = "127.0.0.1";
|
||||
server-port = 25568;
|
||||
enable-rcon = false;
|
||||
enable-query = false;
|
||||
view-distance = 8;
|
||||
simulation-distance = 4;
|
||||
motd = "wowmine backup restore test";
|
||||
};
|
||||
};
|
||||
|
||||
services.minecraft-modpack-imports.${name} = {
|
||||
inherit (pack) remoteHost remoteUser remotePath archiveName archiveSha256
|
||||
expectedDependencies hostPublicKey retries timeout;
|
||||
enable = true;
|
||||
serverName = name;
|
||||
sshKeyFile = config.sops.secrets."minecraft/restore-storage-box-pack-key".path;
|
||||
};
|
||||
|
||||
systemd.services."minecraft-modpack-import-${name}" = {
|
||||
unitConfig.ConditionPathExists = "!${restore.completionMarker}";
|
||||
postStart = import ./wowmine-settings.nix { inherit pkgs serverDir; };
|
||||
};
|
||||
|
||||
services.minecraft-backup-restores.${name} = {
|
||||
enable = true;
|
||||
serverName = name;
|
||||
inherit (config.services.minecraft-backups.s3)
|
||||
bucket endpoint region credentialsFile;
|
||||
key = "minecraft/neuro/wowMineMap/minecraft-wowMineMap-20261117T172531Z.tar.zst";
|
||||
expectedSize = 9206330929;
|
||||
afterUnits = [ "minecraft-modpack-import-${name}.service" ];
|
||||
};
|
||||
|
||||
services.minecraft-backups.servers.${name}.enable = false;
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
serverDir = "${config.services.minecraft-servers.dataDir}/wowMineMap";
|
||||
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.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" ];
|
||||
unitConfig.ConditionPathIsDirectory = "${serverDir}/world";
|
||||
preStart = ''
|
||||
${pkgs.coreutils}/bin/mkdir -p "${stateDir}/config"
|
||||
${pkgs.coreutils}/bin/cp -r --no-preserve=mode ${./bluemap}/. "${stateDir}/config/"
|
||||
'';
|
||||
serviceConfig = {
|
||||
User = "minecraft";
|
||||
Group = "minecraft";
|
||||
StateDirectory = "wowmine-bluemap";
|
||||
StateDirectoryMode = "0750";
|
||||
WorkingDirectory = stateDir;
|
||||
ExecCondition = "${pkgs.runtimeShell} -ec '${builtins.replaceStrings [ "$" ] [ "$$" ] diskCheck}'";
|
||||
ExecStart = "${pkgs.jdk25}/bin/java -Xms512m -Xmx3g -XX:ActiveProcessorCount=2 -Djava.awt.headless=true -jar ${jar} -c ${stateDir}/config -n ${serverDir}/mods -v 1.21.1 -r -u -w -g -s";
|
||||
Restart = "on-failure";
|
||||
RestartSec = 15;
|
||||
CPUQuota = "200%";
|
||||
CPUWeight = 10;
|
||||
MemoryHigh = "4G";
|
||||
MemoryMax = "5G";
|
||||
Nice = 10;
|
||||
IOSchedulingClass = "idle";
|
||||
NoNewPrivileges = true;
|
||||
ProtectSystem = "strict";
|
||||
ProtectHome = true;
|
||||
PrivateTmp = true;
|
||||
ReadOnlyPaths = [ serverDir ];
|
||||
InaccessiblePaths = [ "${serverDir}/server.properties" "${serverDir}/config" ];
|
||||
RestrictSUIDSGID = true;
|
||||
LockPersonality = true;
|
||||
CapabilityBoundingSet = "";
|
||||
UMask = "0027";
|
||||
TimeoutStopSec = 120;
|
||||
};
|
||||
};
|
||||
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 wowmine-bluemap.service
|
||||
fi
|
||||
'';
|
||||
};
|
||||
systemd.timers.wowmine-bluemap-space-guard = {
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
OnBootSec = "1min";
|
||||
OnUnitActiveSec = "1min";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
accept-download: true
|
||||
data: "/var/lib/wowmine-bluemap/data"
|
||||
render-thread-count: 2
|
||||
update-cooldown: 60
|
||||
full-update-interval: 1440
|
||||
region-file-check-interval: 5
|
||||
scan-for-mod-resources: true
|
||||
metrics: false
|
||||
log: {
|
||||
file: "/var/lib/wowmine-bluemap/data/logs/debug.log"
|
||||
append: true
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
world: "/srv/minecraft/wowMineMap/world"
|
||||
dimension: "crafting_azeroth:azeroth"
|
||||
name: "Азерот"
|
||||
sorting: 0
|
||||
start-pos: { x: 3742, z: 8891 }
|
||||
sky-color: "#7dabff"
|
||||
void-color: "#000000"
|
||||
sky-light: 1
|
||||
ambient-light: 0.1
|
||||
remove-caves-below-y: -10000
|
||||
render-mask: []
|
||||
storage: "file"
|
||||
@@ -0,0 +1,12 @@
|
||||
world: "/srv/minecraft/wowMineMap/world"
|
||||
dimension: "crafting_azeroth:outland"
|
||||
name: "Запределье"
|
||||
sorting: 1
|
||||
start-pos: { x: -54520, z: -2296 }
|
||||
sky-color: "#281c46"
|
||||
void-color: "#080010"
|
||||
sky-light: 1
|
||||
ambient-light: 0.6
|
||||
remove-caves-below-y: -10000
|
||||
render-mask: []
|
||||
storage: "file"
|
||||
@@ -0,0 +1,3 @@
|
||||
storage-type: file
|
||||
root: "/var/lib/wowmine-bluemap/web/maps"
|
||||
compression: gzip
|
||||
@@ -0,0 +1,14 @@
|
||||
enabled: true
|
||||
webroot: "/var/lib/wowmine-bluemap/web"
|
||||
update-settings-file: true
|
||||
use-cookies: true
|
||||
default-to-flat-view: false
|
||||
min-zoom-distance: 5
|
||||
max-zoom-distance: 100000
|
||||
resolution-default: 1
|
||||
hires-slider-max: 500
|
||||
hires-slider-default: 100
|
||||
hires-slider-min: 0
|
||||
lowres-slider-max: 7000
|
||||
lowres-slider-default: 2000
|
||||
lowres-slider-min: 500
|
||||
@@ -0,0 +1,13 @@
|
||||
enabled: true
|
||||
webroot: "/var/lib/wowmine-bluemap/web"
|
||||
ip: "127.0.0.1"
|
||||
port: 8100
|
||||
sse-enabled: true
|
||||
additional-headers: {
|
||||
"Cache-Control": "no-cache"
|
||||
"X-Content-Type-Options": "nosniff"
|
||||
}
|
||||
log: {
|
||||
file: "/var/lib/wowmine-bluemap/data/logs/webserver.log"
|
||||
append: true
|
||||
}
|
||||
@@ -1,12 +1,16 @@
|
||||
{
|
||||
imports = [
|
||||
./vanilla.nix
|
||||
./horizon.nix
|
||||
./create-aeronautics.nix
|
||||
./wow-mine-map.nix
|
||||
./world-of-sosal.nix
|
||||
./wowmine.nix
|
||||
./bluemap.nix
|
||||
./backup-restore-test.nix
|
||||
./public-tunnel.nix
|
||||
./world-import.nix
|
||||
./modpack-import.nix
|
||||
../../../module/generic/minecraft-backups.nix
|
||||
];
|
||||
|
||||
services.minecraft-servers = {
|
||||
@@ -14,4 +18,18 @@
|
||||
eula = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
services.minecraft-backups = {
|
||||
enable = true;
|
||||
s3 = {
|
||||
bucket = "backup-hectic-lab";
|
||||
endpoint = "https://hel1.your-objectstorage.com";
|
||||
region = "hel1";
|
||||
credentialsFile = "/var/lib/minecraft-backups/s3-credentials";
|
||||
};
|
||||
servers.horizon = {
|
||||
service = "horizon.service";
|
||||
directory = "/var/lib/horizon";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
# Horizon on neuro
|
||||
|
||||
Horizon Nightly 2026-11-01 serves Minecraft Java Edition 26.3 on TCP 25569.
|
||||
It runs without Java on neuro, uses `/var/lib/horizon`, and starts only when
|
||||
`/var/lib/horizon/resources/registries.json` exists. The whitelist is enabled;
|
||||
add an account with:
|
||||
|
||||
```sh
|
||||
sudo -u horizon horizon-server --dir /var/lib/horizon whitelist add PLAYER
|
||||
```
|
||||
|
||||
## Prepare resources
|
||||
|
||||
Horizon cannot redistribute Minecraft resources. On a computer with Minecraft
|
||||
26.3 installed and played once, Java 25, its `server.jar`, and this pinned
|
||||
Horizon package, prepare them locally:
|
||||
|
||||
```sh
|
||||
horizon-prepare --prepare \
|
||||
--server-jar /path/to/26.3/server.jar \
|
||||
--minecraft-dir /path/to/.minecraft \
|
||||
--output ./horizon-resources
|
||||
```
|
||||
|
||||
The packaged command seeds its pinned exporter support files into
|
||||
`$XDG_CACHE_HOME/horizon/prepare-root-nightly-2026-11-01` (or `~/.cache` when
|
||||
`XDG_CACHE_HOME` is unset). Bundled support files contain no Mojang data.
|
||||
Preparation imports your local game files into this writable root. Pass
|
||||
`--root PATH` to seed and use another writable location.
|
||||
|
||||
Copy the complete `horizon-resources` folder to neuro without changing its
|
||||
contents, then grant the service read access and explicitly restart it:
|
||||
|
||||
```sh
|
||||
sudo install -d -o horizon -g horizon -m 0750 /var/lib/horizon/resources
|
||||
sudo rsync -a --chown=horizon:horizon ./horizon-resources/ /var/lib/horizon/resources/
|
||||
sudo systemctl restart horizon
|
||||
```
|
||||
|
||||
If `registries.json` is absent, systemd leaves the unit skipped instead of
|
||||
crash-looping. `server.toml` and Horizon's `eula.txt` are copied to writable
|
||||
state on every start;
|
||||
declarative defaults remain authoritative while worlds, backups, whitelist,
|
||||
operators, bans, and other generated files persist under `/var/lib/horizon`.
|
||||
@@ -0,0 +1,83 @@
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
horizon = pkgs.hectic.horizon;
|
||||
eulaFile = pkgs.writeText "horizon-eula.txt" ''
|
||||
eula=true
|
||||
'';
|
||||
serverConfig = pkgs.writeText "horizon-server.toml" ''
|
||||
[server]
|
||||
port = 25569
|
||||
online_mode = true
|
||||
whitelist = true
|
||||
|
||||
[world]
|
||||
name = "world"
|
||||
|
||||
[engine]
|
||||
path = "${horizon}/libexec/horizon/horizon-engine"
|
||||
resources = "/var/lib/horizon/resources"
|
||||
restart_on_crash = true
|
||||
|
||||
[backups]
|
||||
every = "6h"
|
||||
keep = 12
|
||||
|
||||
[panel]
|
||||
bind = ""
|
||||
allow_public = false
|
||||
|
||||
[api]
|
||||
bind = "127.0.0.1:8131"
|
||||
token = ""
|
||||
allow_public = false
|
||||
'';
|
||||
in {
|
||||
users.groups.horizon = {};
|
||||
users.users.horizon = {
|
||||
isSystemUser = true;
|
||||
group = "horizon";
|
||||
home = "/var/lib/horizon";
|
||||
};
|
||||
|
||||
environment.systemPackages = [ horizon ];
|
||||
networking.firewall.allowedTCPPorts = [ 25569 ];
|
||||
|
||||
systemd.services.horizon = {
|
||||
description = "Horizon Minecraft server";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
wants = [ "network-online.target" ];
|
||||
after = [ "network-online.target" ];
|
||||
unitConfig.ConditionPathExists = "/var/lib/horizon/resources/registries.json";
|
||||
environment.HORIZON_NO_UPDATE_CHECK = "1";
|
||||
restartTriggers = [ serverConfig eulaFile ];
|
||||
preStart = ''
|
||||
install -m 0640 ${serverConfig} /var/lib/horizon/server.toml
|
||||
install -m 0640 ${eulaFile} /var/lib/horizon/eula.txt
|
||||
'';
|
||||
serviceConfig = {
|
||||
User = "horizon";
|
||||
Group = "horizon";
|
||||
WorkingDirectory = "/var/lib/horizon";
|
||||
ExecStart = "${horizon}/bin/horizon-server --dir /var/lib/horizon run";
|
||||
Restart = "on-failure";
|
||||
RestartSec = 10;
|
||||
KillSignal = "SIGTERM";
|
||||
TimeoutStopSec = 180;
|
||||
StateDirectory = "horizon";
|
||||
StateDirectoryMode = "0750";
|
||||
UMask = "0027";
|
||||
NoNewPrivileges = true;
|
||||
PrivateDevices = true;
|
||||
PrivateTmp = true;
|
||||
ProtectHome = true;
|
||||
ProtectSystem = "strict";
|
||||
ProtectKernelLogs = true;
|
||||
ProtectKernelModules = true;
|
||||
ProtectKernelTunables = true;
|
||||
ProtectControlGroups = true;
|
||||
RestrictSUIDSGID = true;
|
||||
CapabilityBoundingSet = [ "" ];
|
||||
RestrictAddressFamilies = [ "AF_INET" "AF_INET6" "AF_UNIX" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -288,7 +288,11 @@
|
||||
safe_relative_path "$relative" || exit 1
|
||||
source_file="$staging_dir/$relative"
|
||||
target_file="$server_dir/$relative"
|
||||
install -d -m 0770 -g minecraft "$(dirname "$target_file")"
|
||||
relative_dir="$(dirname "$relative")"
|
||||
while [ "$relative_dir" != "." ]; do
|
||||
install -d -m 0770 -g minecraft "$server_dir/$relative_dir"
|
||||
relative_dir="$(dirname "$relative_dir")"
|
||||
done
|
||||
install -m 0660 -g minecraft "$source_file" "$target_file"
|
||||
done < "$new_managed_paths"
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
mkTunnel = relay: {
|
||||
description = "WorldOfSosal WoW reverse tunnel to ${relay.name}";
|
||||
enable = false;
|
||||
description = "wowmine reverse tunnel to ${relay.name}";
|
||||
startLimitIntervalSec = 0;
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
wants = [ "network-online.target" ];
|
||||
@@ -9,7 +10,7 @@ let
|
||||
serviceConfig = {
|
||||
User = "mc-wow-tunnel";
|
||||
Group = "mc-wow-tunnel";
|
||||
ExecStart = "${pkgs.openssh}/bin/ssh -NT -i ${config.sops.secrets."minecraft/wow-tunnel-key".path} -o IPQoS=none -o Ciphers=aes256-ctr -o MACs=hmac-sha2-256-etm@openssh.com -o KexAlgorithms=curve25519-sha256 -o BatchMode=yes -o IdentitiesOnly=yes -o StrictHostKeyChecking=yes -o UserKnownHostsFile=/etc/ssh/ssh_known_hosts -o ExitOnForwardFailure=yes -o ServerAliveInterval=15 -o ServerAliveCountMax=3 -o ConnectTimeout=10 -R 127.0.0.1:25577:127.0.0.1:25567 mc-wow-relay@${relay.address}";
|
||||
ExecStart = "${pkgs.openssh}/bin/ssh -NT -p ${toString (relay.port or 22)} -i ${config.sops.secrets."minecraft/wow-tunnel-key".path} -o IPQoS=none -o Ciphers=aes256-ctr -o MACs=hmac-sha2-256-etm@openssh.com -o KexAlgorithms=curve25519-sha256 -o BatchMode=yes -o IdentitiesOnly=yes -o StrictHostKeyChecking=yes -o UserKnownHostsFile=/etc/ssh/ssh_known_hosts -o ExitOnForwardFailure=yes -o ServerAliveInterval=15 -o ServerAliveCountMax=3 -o ConnectTimeout=10 -R 127.0.0.1:25577:127.0.0.1:25567 mc-wow-relay@${relay.address}";
|
||||
Restart = "always";
|
||||
RestartSec = 10;
|
||||
NoNewPrivileges = true;
|
||||
@@ -31,7 +32,7 @@ in {
|
||||
mode = "0400";
|
||||
};
|
||||
programs.ssh.knownHosts.minecraft-wow-relay = {
|
||||
hostNames = [ "128.140.75.58" ];
|
||||
hostNames = [ "[128.140.75.58]:22223" ];
|
||||
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAFpr4DPSaJt0xeuGIfcZBJD3LsJHTdIRIs2Tt9HF+CT";
|
||||
};
|
||||
programs.ssh.knownHosts.minecraft-wow-relay-bfs = {
|
||||
@@ -41,6 +42,7 @@ in {
|
||||
systemd.services.minecraft-wow-tunnel = mkTunnel {
|
||||
name = "hectic-lab";
|
||||
address = "128.140.75.58";
|
||||
port = 22223;
|
||||
};
|
||||
systemd.services.minecraft-wow-tunnel-bfs = mkTunnel {
|
||||
name = "bfs.band";
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
sops.secrets."minecraft/storage-box-pack-key" = {
|
||||
sopsFile = ../../../../sus/neuro-minecraft.yaml;
|
||||
owner = "mc-pack-worldOfSosal";
|
||||
group = "mc-pack-worldOfSosal";
|
||||
mode = "0400";
|
||||
};
|
||||
|
||||
services.minecraft-modpack-imports.worldOfSosal = {
|
||||
enable = true;
|
||||
serverName = "wowMineMap";
|
||||
remoteHost = "u664722.your-storagebox.de";
|
||||
remoteUser = "u664722";
|
||||
remotePath = "minecraft/pack/WorldOfSosal-v3.mrpack";
|
||||
archiveName = "WorldOfSosal.mrpack";
|
||||
cacheDir = "/var/lib/minecraft-modpacks/worldOfSosal";
|
||||
archiveSha256 = "f97cf251b14f40590e97e7b39e8a8ec43dacfce6da1b02357d15e0eee10d3ade";
|
||||
expectedDependencies = {
|
||||
minecraft = "1.21.1";
|
||||
neoforge = "21.1.250";
|
||||
};
|
||||
sshKeyFile = config.sops.secrets."minecraft/storage-box-pack-key".path;
|
||||
hostPublicKey = "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA5EB5p/5Hp3hGW1oHok+PIOH9Pbn7cnUiGmUEBrCVjnAw+HrKyN8bYVV0dIGllswYXwkG/+bgiBlE6IVIBAq+JwVWu1Sss3KarHY3OvFJUXZoZyRRg/Gc/+LRCE7lyKpwWQ70dbelGRyyJFH36eNv6ySXoUYtGkwlU5IVaHPApOxe4LHPZa/qhSRbPo2hwoh0orCtgejRebNtW5nlx00DNFgsvn8Svz2cIYLxsPVzKgUxs8Zxsxgn+Q/UvR7uq4AbAhyBMLxv7DjJ1pc7PJocuTno2Rw9uMZi1gkjbnmiOh6TTXIEWbnroyIhwc8555uto9melEUmWNQ+C+PwAK+MPw==";
|
||||
};
|
||||
|
||||
# Import the map before writing modpack configuration into the same server.
|
||||
systemd.services.minecraft-modpack-import-worldOfSosal = {
|
||||
after = [ "minecraft-world-import-wowMineMap.service" ];
|
||||
requires = [ "minecraft-world-import-wowMineMap.service" ];
|
||||
};
|
||||
}
|
||||
@@ -13,15 +13,35 @@
|
||||
serverName = "wowMineMap";
|
||||
remoteHost = "u664722.your-storagebox.de";
|
||||
remoteUser = "u664722";
|
||||
remotePath = "minecraft/map/wow mine map.rar";
|
||||
archiveName = "wow mine map.rar";
|
||||
remotePath = "minecraft/map/versions/wowmine-20261114T223938Z-winter-biomes.tar.gz";
|
||||
archiveName = "wowmine-20261114T223938Z-winter-biomes.tar.gz";
|
||||
cacheDir = "/var/lib/minecraft-maps";
|
||||
archiveSha256 = "bc80084de10a06b0fc2cb1651c61936b9e2fd2288f3f0fe44c964d83a393aa30";
|
||||
archiveSha256 = "d1afd169b16b7b50a57c47da46245e93285b46b6c833bfd08941d07d0341b208";
|
||||
sshKeyFile = config.sops.secrets."minecraft/storage-box-key".path;
|
||||
worldName = "world";
|
||||
hostPublicKey = "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA5EB5p/5Hp3hGW1oHok+PIOH9Pbn7cnUiGmUEBrCVjnAw+HrKyN8bYVV0dIGllswYXwkG/+bgiBlE6IVIBAq+JwVWu1Sss3KarHY3OvFJUXZoZyRRg/Gc/+LRCE7lyKpwWQ70dbelGRyyJFH36eNv6ySXoUYtGkwlU5IVaHPApOxe4LHPZa/qhSRbPo2hwoh0orCtgejRebNtW5nlx00DNFgsvn8Svz2cIYLxsPVzKgUxs8Zxsxgn+Q/UvR7uq4AbAhyBMLxv7DjJ1pc7PJocuTno2Rw9uMZi1gkjbnmiOh6TTXIEWbnroyIhwc8555uto9melEUmWNQ+C+PwAK+MPw==";
|
||||
};
|
||||
|
||||
systemd.services.minecraft-world-reset-wowMineMap = {
|
||||
description = "Reset wowmine to the pinned source map";
|
||||
path = [ pkgs.coreutils pkgs.systemd ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
TimeoutStartSec = "45min";
|
||||
};
|
||||
script = let
|
||||
source = config.services.minecraft-world-imports.wowMineMap;
|
||||
in ''
|
||||
set -eu
|
||||
printf '%s %s\n' \
|
||||
'${source.archiveSha256}' \
|
||||
'${source.cacheDir}/${source.archiveName}' | sha256sum -c -
|
||||
systemctl stop minecraft-server-wowMineMap.service minecraft-world-import-wowMineMap.service
|
||||
rm -rf -- '${config.services.minecraft-servers.dataDir}/wowMineMap/${source.worldName}'
|
||||
systemctl start minecraft-server-wowMineMap.service
|
||||
'';
|
||||
};
|
||||
|
||||
sops.secrets."minecraft/rcon-password" = {
|
||||
sopsFile = ../../../../sus/neuro-minecraft.yaml;
|
||||
owner = "minecraft";
|
||||
@@ -31,7 +51,8 @@
|
||||
};
|
||||
|
||||
# The module's automatic firewall would also expose RCON.
|
||||
networking.firewall.allowedTCPPorts = [ 25567 ];
|
||||
networking.firewall.allowedTCPPorts = [ 35565 ];
|
||||
networking.firewall.allowedUDPPorts = [ 36565 ];
|
||||
services.minecraft-servers.servers.wowMineMap = {
|
||||
openFirewall = false;
|
||||
extraStartPre = ''
|
||||
@@ -44,20 +65,20 @@
|
||||
'';
|
||||
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)
|
||||
);
|
||||
|
||||
serverProperties = {
|
||||
server-port = 25567;
|
||||
server-port = 35565;
|
||||
difficulty = "hard";
|
||||
online-mode = false;
|
||||
enable-rcon = true;
|
||||
enable-command-block = true;
|
||||
"rcon.port" = 25575;
|
||||
view-distance = 12;
|
||||
simulation-distance = 8;
|
||||
motd = "WorldOfSosal — World of Warcraft";
|
||||
view-distance = 32;
|
||||
simulation-distance = 32;
|
||||
level-name = "world";
|
||||
pause-when-empty-seconds = 0;
|
||||
};
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"type": "farmersdelight:cutting",
|
||||
"ingredients": [
|
||||
{ "item": "minecraft:armor_stand" }
|
||||
],
|
||||
"result": [
|
||||
{ "item": { "count": 6, "id": "minecraft:stick" } },
|
||||
{ "item": { "count": 1, "id": "minecraft:smooth_stone_slab" } }
|
||||
],
|
||||
"tool": { "type": "farmersdelight:item_ability", "action": "axe_dig" }
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"type": "minecraft:crafting_shapeless",
|
||||
"category": "misc",
|
||||
"ingredients": [
|
||||
{ "item": "minecraft:bowl" },
|
||||
{ "item": "minecraft:bowl" },
|
||||
{ "item": "minecraft:bowl" },
|
||||
{ "item": "minecraft:bowl" }
|
||||
],
|
||||
"result": { "count": 3, "id": "minecraft:oak_planks" }
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"type": "farmersdelight:cutting",
|
||||
"ingredients": [
|
||||
{ "item": "minecraft:copper_grate" }
|
||||
],
|
||||
"result": [
|
||||
{ "item": { "count": 2, "id": "minecraft:copper_ingot" } }
|
||||
],
|
||||
"tool": { "type": "farmersdelight:item_ability", "action": "pickaxe_dig" }
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"type": "farmersdelight:cutting",
|
||||
"ingredients": [
|
||||
{ "item": "minecraft:exposed_copper_grate" }
|
||||
],
|
||||
"result": [
|
||||
{ "item": { "count": 2, "id": "minecraft:copper_ingot" } }
|
||||
],
|
||||
"tool": { "type": "farmersdelight:item_ability", "action": "pickaxe_dig" }
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"type": "minecraft:crafting_shapeless",
|
||||
"category": "misc",
|
||||
"ingredients": [
|
||||
{ "item": "minecraft:firework_rocket" },
|
||||
{ "item": "minecraft:firework_rocket" },
|
||||
{ "item": "minecraft:firework_rocket" }
|
||||
],
|
||||
"result": { "count": 1, "id": "minecraft:gunpowder" }
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"type": "farmersdelight:cutting",
|
||||
"ingredients": [
|
||||
{ "item": "minecraft:iron_bars" }
|
||||
],
|
||||
"result": [
|
||||
{ "item": { "count": 3, "id": "minecraft:iron_nugget" } }
|
||||
],
|
||||
"tool": { "type": "farmersdelight:item_ability", "action": "pickaxe_dig" }
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"type": "farmersdelight:cutting",
|
||||
"ingredients": [
|
||||
{ "item": "minecraft:iron_door" }
|
||||
],
|
||||
"result": [
|
||||
{ "item": { "count": 2, "id": "minecraft:iron_ingot" } }
|
||||
],
|
||||
"tool": { "type": "farmersdelight:item_ability", "action": "pickaxe_dig" }
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"type": "farmersdelight:cutting",
|
||||
"ingredients": [
|
||||
{ "item": "minecraft:oxidized_copper_grate" }
|
||||
],
|
||||
"result": [
|
||||
{ "item": { "count": 2, "id": "minecraft:copper_ingot" } }
|
||||
],
|
||||
"tool": { "type": "farmersdelight:item_ability", "action": "pickaxe_dig" }
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"type": "farmersdelight:cutting",
|
||||
"ingredients": [
|
||||
{ "item": "minecraft:weathered_copper_grate" }
|
||||
],
|
||||
"result": [
|
||||
{ "item": { "count": 2, "id": "minecraft:copper_ingot" } }
|
||||
],
|
||||
"tool": { "type": "farmersdelight:item_ability", "action": "pickaxe_dig" }
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"values": ["wowmine_rules:load"]
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"type": "minecraft:overworld",
|
||||
"generator": {
|
||||
"type": "minecraft:flat",
|
||||
"settings": {
|
||||
"biome": "minecraft:the_void",
|
||||
"features": false,
|
||||
"lakes": false,
|
||||
"layers": [],
|
||||
"structure_overrides": []
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
gamerule mobGriefing true
|
||||
gamerule reducedDebugInfo true
|
||||
gamerule playersSleepingPercentage 100
|
||||
team add wowmine_hidden
|
||||
team modify wowmine_hidden nametagVisibility never
|
||||
team modify wowmine_hidden friendlyFire true
|
||||
team modify wowmine_hidden seeFriendlyInvisibles false
|
||||
function wowmine_rules:player_visibility
|
||||
function wowmine_rules:minimap_policy
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
# Boss is exempt by UUID; the client may still hide its minimap by preference.
|
||||
effect give @a[nbt=!{UUID:[I;471374581,655572902,-1127970499,-86057052]}] xaerominimap:no_minimap infinite 0 true
|
||||
effect give @a[nbt=!{UUID:[I;471374581,655572902,-1127970499,-86057052]}] xaeroworldmap:no_world_map infinite 0 true
|
||||
execute as @a[nbt={UUID:[I;471374581,655572902,-1127970499,-86057052]}] run effect clear @s xaerominimap:no_minimap
|
||||
execute as @a[nbt={UUID:[I;471374581,655572902,-1127970499,-86057052]}] run effect clear @s xaeroworldmap:no_world_map
|
||||
schedule function wowmine_rules:minimap_policy 20t replace
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
# Keep new players' overhead names hidden without moving existing team members.
|
||||
team join wowmine_hidden @a[team=]
|
||||
schedule function wowmine_rules:player_visibility 1t replace
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user