From efdaff2b13a2a929be89ac01005cc2e388e7ab8e Mon Sep 17 00:00:00 2001 From: jolheiser Date: Thu, 21 Dec 2023 18:53:37 -0600 Subject: [PATCH] chore: just redirect all go.jolheiser.com URIs Signed-off-by: jolheiser --- machines/dragonwell/caddy.nix | 27 ++++++++------------------- 1 file changed, 8 insertions(+), 19 deletions(-) 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 = ''