meow
diff-pr / dix (pull_request) Successful in 38m21s
flake-check / flake-check (pull_request) Successful in 9m14s
lint / lint (pull_request) Successful in 1m48s

This commit is contained in:
flowey
2026-09-22 15:53:42 -05:00
parent 83cd240c4c
commit bea6496491
6 changed files with 269 additions and 241 deletions
+5 -3
View File
@@ -158,7 +158,9 @@ let
discoveredVhosts = map (
{ container, data }:
{ inherit (data) domain; }
{
inherit (data) domain;
}
// lib.optionalAttrs (data ? port) { upstream = up container data.port; }
// lib.optionalAttrs (data ? websockets) { inherit (data) websockets; }
// lib.optionalAttrs (data ? redirect) { inherit (data) redirect; }
@@ -181,8 +183,7 @@ let
];
upstreamContainers = map (e: e.container) (lib.filter ({ data, ... }: data ? port) discovered);
in
let
setup = mkNginxConfig {
email = "floweydev@gmail.com";
resolver = hostAddr;
@@ -201,6 +202,7 @@ let
hostPath = "${data}/core/nginx/acme";
isReadOnly = false;
};
miscProperties.acmeDomains = map (v: v.domain) (discoveredVhosts ++ extraVhosts);
inherit (setup) containerConfig;
};
inherit (c) hostAddr;