iac/nixos/hosts/asxpio-services/apps.nix
Sergei Poljanski 4e967372ae
All checks were successful
nixos / nixos (push) Successful in 23s
datacenterbingo: route to the service on asxpio-services
Priority 2000 over the container's labels (1000), until the container
is removed. The listening process is puma, as the baseline sees it.

Assisted-by: Claude:opus-5-5
2026-11-17 13:54:59 +04:00

32 lines
1 KiB
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.
{ config, ... }:
{
# A new or changed virtual host reloads nginx instead of restarting it
services.nginx.enableReload = true;
services.blog.enable = true; # :8081
services.czsk.enable = true; # :8082
# Read-only: the bingo role on Postgres and a read-only key for the
# photo bucket, both on asxpio-ops
sops.secrets."datacenterbingo/env".restartUnits = [ "datacenterbingo.service" ];
services.datacenterbingo = {
enable = true; # :3002
environmentFile = config.sops.secrets."datacenterbingo/env".path;
environment = {
BINGO_HOST = "datacenterbingo.xyz";
S3_ENDPOINT = "http://10.10.0.10:3900";
S3_REGION = "us-east-1";
S3_BUCKET = "datacenterbingo-photos";
};
};
asxpio.security.ports = [
"tcp/8081/nginx"
"tcp/8082/nginx"
"tcp/3002/puma"
];
}