services: serve the blog from its flake, beside the container
All checks were successful
nixos / nixos (push) Successful in 22s
All checks were successful
nixos / nixos (push) Successful in 22s
The blog's repository now exports the built site and a module serving it from an nginx virtual host. services runs it on :8081 next to the container on ops; Traefik does not route to it yet. Routes get an optional priority, so the new route can take over from the container's labels (1000) without removing them first. nginx now reloads for a changed virtual host instead of restarting. Assisted-by: Claude:opus-5-5
This commit is contained in:
parent
35bc42b01b
commit
4a6c4ac3a3
1 changed files with 66 additions and 9 deletions
|
|
@ -15,6 +15,11 @@
|
|||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
# The apps, each from its own repository (hosts/asxpio-services/apps.nix)
|
||||
blog = {
|
||||
url = "git+https://git.asxp.io/asxpi/blog?ref=main";
|
||||
inputs.nixpkgs.follows = "nixpkgs-unstable"; # only HTML ships
|
||||
};
|
||||
# services.crawler-alert (hosts/asxpio-ops/crawler.nix)
|
||||
crawler-alert = {
|
||||
url = "git+https://git.asxp.io/asxpi/traefik-crawlers-statistics?ref=main";
|
||||
|
|
@ -29,6 +34,7 @@
|
|||
sops-nix,
|
||||
comin,
|
||||
crawler-alert,
|
||||
blog,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
|
@ -79,7 +85,10 @@
|
|||
./hosts/asxpio-ops
|
||||
crawler-alert.nixosModules.default
|
||||
];
|
||||
asxpio-services = mkHost [ ./hosts/asxpio-services ];
|
||||
asxpio-services = mkHost [
|
||||
./hosts/asxpio-services
|
||||
blog.nixosModules.default
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue