iac/nixos/hosts/asxpio-services/apps.nix
Sergei Poljanski 4a6c4ac3a3
All checks were successful
nixos / nixos (push) Successful in 22s
services: serve the blog from its flake, beside the container
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
2026-11-17 12:19:50 +04:00

13 lines
457 B
Nix

# The apps, built from their own repositories' flakes (inputs in
# ../../flake.nix) and served here; Traefik on asxpio-ops routes to them
# over the private network (asxpio.routes there). A release is a bump of
# the app's input in flake.lock.
{ ... }:
{
# A new or changed virtual host reloads nginx instead of restarting it
services.nginx.enableReload = true;
services.blog.enable = true; # :8081
asxpio.security.ports = [ "tcp/8081/nginx" ];
}