nixos: Traefik and the CI runners as native services
Traefik keeps its role and its acme.json. Routes for the native services (Forgejo, Garage, the dashboard, the XMPP certificate) are written from Nix; the app containers keep declaring theirs as labels, which Traefik reads through Podman's socket as it did through Docker's. The asxpio runner uses the NixOS module and starts jobs through Podman; the interop runner is its own unit because it connects with a UUID and token instead of registering. Tried on the rehearsal pair: Forgejo and Garage through Traefik, a label-routed container, anonymous reads of the public bucket only, and a workflow with a nix-latest and an ubuntu-latest job. A restored Forgejo database still holds production's queued jobs, schedules and Actions secrets. The test runner tried to take a queued production job and was stopped only by the different secret key. migration/rehearsal-sanitize-forgejo.sh removes all of that and must run before a runner meets restored data. Assisted-by: Claude:fable-5-2
This commit is contained in:
parent
933b086bb1
commit
e95d97869f
1 changed files with 581 additions and 120 deletions
|
|
@ -24,6 +24,10 @@
|
|||
"cron.update_mirrors".ENABLED = false;
|
||||
};
|
||||
|
||||
# The names point at production, so no challenge can succeed here:
|
||||
# ask the staging CA, and expect Traefik's self-signed certificate
|
||||
asxpio.letsencryptCA = "https://acme-staging-v02.api.letsencrypt.org/directory";
|
||||
|
||||
asxpio.wireguard.peers = [
|
||||
{
|
||||
name = "asxpio-services";
|
||||
|
|
|
|||
Loading…
Reference in a new issue