refactor(modules): reduce host repetition
This commit is contained in:
11
modules/cache.nix
Normal file
11
modules/cache.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{...}: let
|
||||
caddyLib = import ./_lib/caddy.nix;
|
||||
in {
|
||||
den.aspects.cache.nixos = {
|
||||
services.caddy.virtualHosts =
|
||||
caddyLib.mkTailscaleVHost {
|
||||
name = "cache";
|
||||
configText = "reverse_proxy localhost:32843";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user