From 70575186c6199ba7bae7dc40989f3eddce9c369b Mon Sep 17 00:00:00 2001 From: Christine Elisabeth Koppel Date: Fri, 20 Mar 2026 16:20:33 +0100 Subject: [PATCH] Add minecraft bluemap service. --- nix-system-configs/modules/system/minecraft.nix | 1 - nix-system-configs/modules/system/traefik.nix | 15 ++++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/nix-system-configs/modules/system/minecraft.nix b/nix-system-configs/modules/system/minecraft.nix index 3a5fdfa..7605b9f 100644 --- a/nix-system-configs/modules/system/minecraft.nix +++ b/nix-system-configs/modules/system/minecraft.nix @@ -210,7 +210,6 @@ in { url = "https://cdn.modrinth.com/data/swbUV1cr/versions/TROfpX7m/bluemap-5.16-fabric.jar"; sha512 = "138c022c61ff7b37174351625bdb859d7b0fd1dd33b76a32d894dc6fd8fe1c3d3c5d2a8575a3e72a82ca84baaf3253c485085d8a415cc76d1ed20bbabe88ab25"; }; - } ); }; diff --git a/nix-system-configs/modules/system/traefik.nix b/nix-system-configs/modules/system/traefik.nix index 78e9583..44ff296 100644 --- a/nix-system-configs/modules/system/traefik.nix +++ b/nix-system-configs/modules/system/traefik.nix @@ -417,6 +417,14 @@ in { # strip the /management prefix before proxying to the backend middlewares = ["mail-strip-management"]; }; + + bluemap = { + rule = "Host(`minecraft.prg-radio.org`)"; + service = "bluemap"; + entryPoints = ["websecure"]; + tls = {certresolver = "acme";}; + middlewares = ["anubisForwardAuth"]; + }; }; http.services = { @@ -475,11 +483,12 @@ in { servers = [{url = "http://10.1.1.15:8081";}]; }; - # Minecraft service (plain TCP on 25565) - minecraft.loadBalancer = { + # BlueMap HTTP backend - forward to the Minecraft host webserver on port 8100 + bluemap.loadBalancer = { servers = [ - {url = "http://10.1.1.244:25565";} + {url = "http://10.1.1.244:8100";} ]; + passHostHeader = true; }; };