From 1a3d283e6391d01190884c48cb65a70007011868 Mon Sep 17 00:00:00 2001 From: Sergei Poljanski Date: Tue, 17 Nov 2026 14:16:20 +0400 Subject: [PATCH] asxpio: container removed; its monitor runs on services now The asxpio and asxpio-monitor containers, their images and /opt/asxpio are gone from asxpio-ops, so the native monitor worker starts and the routes no longer have to outrank container labels. Assisted-by: Claude:opus-5-5 --- nixos/hosts/asxpio-ops/apps.nix | 9 ++++----- nixos/hosts/asxpio-ops/traefik.nix | 2 -- nixos/hosts/asxpio-services/apps.nix | 6 ++---- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/nixos/hosts/asxpio-ops/apps.nix b/nixos/hosts/asxpio-ops/apps.nix index 30fec07..f93c1b0 100644 --- a/nixos/hosts/asxpio-ops/apps.nix +++ b/nixos/hosts/asxpio-ops/apps.nix @@ -1,8 +1,7 @@ -# The app stacks still in containers (asxpio, vhpbot) deploy themselves -# from their own repositories: CI copies a compose file and a .env to -# /opt/ and runs `docker compose up -d` as user deploy. blog, czsk -# and datacenterbingo run on asxpio-services from their flakes (apps.nix -# there). +# vhpbot, the last app stack in containers, deploys itself from its own +# repository: CI copies a compose file and a .env to /opt/ and runs +# `docker compose up -d` as user deploy. blog, czsk, datacenterbingo and +# asxpio run on asxpio-services from their flakes (apps.nix there). # # Their compose files still expect the Docker-era storage stack: a # network named "storage" and the hosts "postgres" and "garage" on it. diff --git a/nixos/hosts/asxpio-ops/traefik.nix b/nixos/hosts/asxpio-ops/traefik.nix index 689f751..ac74d97 100644 --- a/nixos/hosts/asxpio-ops/traefik.nix +++ b/nixos/hosts/asxpio-ops/traefik.nix @@ -247,14 +247,12 @@ in "www.asxp.io" ]; url = "http://10.10.0.20:3001"; - priority = 2000; # over the container's labels until it is removed }; # Superuser logins only work here (SUPERUSER_HOST): WireGuard + VPC asxpio-admin = { hosts = [ "admin.asxp.io" ]; url = "http://10.10.0.20:3001"; middlewares = [ "internal-only" ]; - priority = 2000; }; }; diff --git a/nixos/hosts/asxpio-services/apps.nix b/nixos/hosts/asxpio-services/apps.nix index 333f12d..36b6c82 100644 --- a/nixos/hosts/asxpio-services/apps.nix +++ b/nixos/hosts/asxpio-services/apps.nix @@ -25,9 +25,8 @@ }; # The site, invoices and admin (asxp.io, admin.asxp.io), owner of the - # asxpio database and the invoice and photo buckets on asxpio-ops. Its - # monitor worker starts when the container's stops: two would record - # every sample twice. + # asxpio database and the invoice and photo buckets on asxpio-ops, and + # the reachability worker for datacenterbingo's status page. sops.secrets."asxpio/env".restartUnits = [ "asxpio.service" "asxpio-monitor.service" @@ -35,7 +34,6 @@ services.asxpio = { enable = true; # :3001 environmentFile = config.sops.secrets."asxpio/env".path; - monitor.enable = false; }; asxpio.security.ports = [