diff --git a/machines/dragonwell/caddy.nix b/machines/dragonwell/caddy.nix index d2b9ac2..b5d0176 100644 --- a/machines/dragonwell/caddy.nix +++ b/machines/dragonwell/caddy.nix @@ -1,10 +1,4 @@ -{ - pkgs, - lib, - ... -}: let - packages = ["tmpl" "git-age" "ffmd" "kv" "nixfig"]; -in { +{pkgs, ...}: { services.caddy = { enable = true; virtualHosts = { @@ -39,20 +33,15 @@ in { serverAliases = ["www.jolheiser.com"]; }; "go.jolheiser.com" = { - extraConfig = - '' - header Content-Type text/html - respond / `Go Packages` - '' - + lib.strings.concatMapStrings (pkg: '' - respond /${pkg}* ` - - + extraConfig = '' + header Content-Type text/html + respond /* ` + + - Redirecting to https://pkg.go.dev/go.jolheiser.com/${pkg} + Redirecting to https://pkg.go.dev/go.jolheiser.com{uri} ` - '') - packages; + ''; }; "git.jolheiser.com" = { extraConfig = ''