feat: Nginx | add local nix cache behind reverse proxy

This commit is contained in:
2025-11-15 13:21:44 +05:00
parent 5ee891fe2b
commit d17c8b1b34
3 changed files with 139 additions and 0 deletions

View File

@@ -3,6 +3,8 @@ import { HelmProvider } from "@cdktf/provider-helm/lib/provider";
import { Release } from "@cdktf/provider-helm/lib/release";
import { Construct } from "constructs";
import { NixCache } from "./nix-cache";
type NginxOptions = {
provider: HelmProvider;
name: string;
@@ -24,5 +26,11 @@ export class Nginx extends Construct {
}),
],
});
new NixCache(this, "nix-cache", {
namespace: options.namespace,
host: "nix.dogar.dev",
ingressClassName: "nginx-internal",
});
}
}