diff --git a/lib/mkSystem.nix b/lib/mkSystem.nix index d4b17d3..08ec928 100644 --- a/lib/mkSystem.nix +++ b/lib/mkSystem.nix @@ -4,7 +4,7 @@ }: # Builds a NixOS system from a host record. # -# `xlib` is the pure host value (lib/xlib.nix `mkXlib`) built in +# `xlib` is the pure host value (`mkXlib` from lib/xlib/default.nix) built in # configurations/default.nix. It is handed to every module as the `xlib` # argument, so modules read plain `xlib.*` data instead of `config.xlib.*` # and the host record stays the single source of truth. diff --git a/modules/containers/3x-ui.nix b/modules/containers/3x-ui.nix index 7b4298b..3b97b0b 100644 --- a/modules/containers/3x-ui.nix +++ b/modules/containers/3x-ui.nix @@ -51,7 +51,7 @@ in oci-containers = { backend = "podman"; containers."3xui_app" = { - # Тег образа ЗАПИНЕН (2026-10-20, R1.16). До этого был `:latest`, + # Тег образа ЗАПИНЕН (2026-10-20, R1.5). До этого был `:latest`, # и это был вектор тихого дрейфа: 2026-10-14 вышел 3x-ui v3.10.x с # ядром Xray **26.10.10** (26.7.x → 26.10.x мимо рук), а ядро ≥ 26.9.8 # требует в REALITY ClientHello key share `X25519MLKEM768` (см. R1.16). @@ -71,8 +71,11 @@ in ] ++ certMounts; log-driver = "journald"; - # Adding a new inbound through the 3x-ui panel on a port outside - # the 14380-15379 range requires extending basePorts and rebuilding. + # Every port an inbound listens on has to be published from the + # container, otherwise it is unreachable from outside. Ports 2049, + # 2096 and 8443 are published by `basePorts` above; 443 (VDS only) + # by `realityPorts`. A new inbound on any other port means + # extending one of those lists and rebuilding. ports = basePorts ++ realityPorts; }; }; diff --git a/modules/server/default.nix b/modules/server/default.nix index 1065dd1..310efa2 100644 --- a/modules/server/default.nix +++ b/modules/server/default.nix @@ -1,4 +1,5 @@ { + config, lib, pkgs, xlib, @@ -39,8 +40,9 @@ ./uptime-kuma.nix ./engipy-frontend.nix ./engipy-backend.nix - # T16: 14 modules archived to ../archive/{server-modules,containers}/ - # (13 in modules/server/default.nix:37-50, 2 in modules/containers/). + # T16: 15 modules archived to ../../archive/{server-modules,containers}/ + # (12 in archive/server-modules/, 3 in archive/containers/). + # This import list carries zero commented-out entries. # T15: kokoro-tts and openhands (not imported) also archived. # stirling-pdf.nix was deleted in 5dd7a58 (absorbed into bentopdf.nix). # open-webui.nix was never commented — migrated to containers/, diff --git a/modules/vds/default.nix b/modules/vds/default.nix index 75c15b7..5339d42 100644 --- a/modules/vds/default.nix +++ b/modules/vds/default.nix @@ -1,4 +1,5 @@ { + config, lib, xlib, ... @@ -18,8 +19,9 @@ # VDS hosts the public-facing Xray REALITY inbound on container:443, # fronted by nginx stream on host:443 → host:15380 → container:443. # reality443Forwarding MUST stay true here: modules/vds/nginx.nix - # routes pubrayx1.zeroq.su/default → 127.0.0.1:15380, which only - # exists when this mapping is published. (Restored 2026-10-10 after + # routes the `default` SNI branch (= every name other than + # pubray1.zeroq.su) → 127.0.0.1:15380, which only exists when this + # mapping is published. (Restored 2026-10-10 after # T10/C5 wrongly removed it and broke Xray REALITY.) host."3x-ui" = { certDomain = "pubray1.zeroq.su"; diff --git a/modules/vds/nginx.nix b/modules/vds/nginx.nix index 9f494eb..30d0716 100644 --- a/modules/vds/nginx.nix +++ b/modules/vds/nginx.nix @@ -13,8 +13,10 @@ # Routing: # pubray1.zeroq.su → 127.0.0.1:2049 (3x-ui panel; LE cert mounted # into the container terminates TLS) -# pubrayx1.zeroq.su → 127.0.0.1:15380 (Xray REALITY; Xray sees its -# real configured port 443 via DNAT) +# anything else → 127.0.0.1:15380 (Xray REALITY: the `default` branch +# catches every other SNI, including whatever name a +# REALITY client sends. Xray sees its real configured +# port 443 via DNAT) # default → 127.0.0.1:15380 (REALITY fallback for any # other SNI / IP-direct) #