домены: реестр xlib.net.domains + синхронизация webDomain 3x-ui (T63, ADR-0012)
nixos flake checks / invariant-checks (push) Successful in 1m44s
test-runner / smoke (push) Successful in 1s

- lib/xlib/net.nix: domains.public/opencodes/internal/ad; все живые
  хостнеймы выводятся из реестра (nginx, coredns, authelia, nextcloud,
  gitea, vds, netbird, open-webui, opencode, nix-cache). Литералы — только
  в комментариях/example/email/trusted-key и в БД панели.
- 3xui-domain-sync.service: before+wantedBy podman-3xui_app, идемпотентно
  приводит settings.webDomain к host."3x-ui".certDomain ДО старта панели
  (R1.19/инвариант 19); контейнер сам не перезапускает.
- config-fingerprint до/после: значения не изменились — 0 отличий на
  rydiwo/atoridu/wsl, на sapphira/otreca только новый юнит и unitConfig.
- epral: убран nginx-mainline из strictModule (nix-on-droid не вычислялся
  с 5712abb); в AGENTS.md исправлен вывод (build.activationPackage) и
  добавлен --impure — T64 (проверить сборку на устройстве).
- .agent: закрыты T10/T49/T50/T54, добавлены T63 (done) и T64 (pending),
  ADR-0012; phases в manifest.json синхронизированы с checkpoints.json.
This commit is contained in:
oqyude committed 2026-11-26 20:16:09 +03:00
1 parent d2692b752b
commit ae760f6ab4
28 files changed
+538 -133

No files matched your search

+33 -1
View File
@@ -1,4 +1,4 @@
# Registry of the addresses and ports the fleet talks to.
# Registry of the addresses, ports and DNS names the fleet talks to.
#
# Why this file exists: the same literal was written in dozens of places
# (192.168.1.20 alone — 41 occurrences) across modules that had to agree on
@@ -20,6 +20,10 @@
# * A value owned completely by one module (a service's own port) stays in
# that module. `ports` below holds only the ports that are a contract
# between two or more modules.
# * DNS names follow the same rule: service hostnames are derived from
# `domains.public`/`domains.internal`, never written as literals in a
# rendered config. Literals may survive only in comments, `example`
# values and email addresses.
# * Modules listed under "not migrated" at the bottom keep their literals
# on purpose — see the note there before touching them.
{
@@ -83,6 +87,34 @@
google = "8.8.8.8";
};
# DNS names. Same rule as addresses: one name — one definition.
#
# Why: the fleet may move to another registrable domain while keeping the
# service subdomains (`git`, `nextcloud`, `authelia`, ...). Everything that
# renders a hostname derives it from here:
#
# let fqdn = name: "${name}.${xlib.net.domains.public}"; in fqdn "git"
#
# Literals are allowed only in comments, `example` values, email addresses
# and runtime state that lives outside Nix (the 3x-ui panel database —
# reconciled by `3xui-domain-sync.service`, see modules/containers/3x-ui.nix).
domains = rec {
# Apex under which the service vhosts live.
public = "zeroq.su";
# Delegated wildcard for machines that publish an opencode server:
# DNS `*.opencodes.<public> CNAME home.<public>`.
opencodes = "opencodes.${public}";
# RFC 8375 LAN-only zone. A public-domain migration does not touch it.
internal = "home.arpa";
# Samba AD DNS zone. NOTE: the Kerberos realm is derived from this name,
# so a rename is an identity migration (new keytabs, client rejoin), not
# a string replacement — see modules/server/samba-ad.nix.
ad = "ad.${public}";
};
# Networks, in CIDR form.
networks = {
lan = "192.168.1.0/24";