Home

dotnix @main - refs - log -
-
https://git.jolheiser.com/dotnix.git
My nix dotfiles
tree log patch
chore: just redirect all go.jolheiser.com URIs Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signature
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEgqEQpE3xoo1QwJO/uFOtpdp7v3oFAmWE3hEACgkQuFOtpdp7 v3rhjA//ex2WQBU3j0Kf8EqKegv0bXQyLXZlypcVEm4ShKSENYd3LqMjrQSqRs6J 3tTXDN7xxg0WGJLpqPMgEagwDMyLRruJbBgVEDbDdVxMls5OO2vKyoCwpKPtt94T +Y9LCGwN2ew8B5AooYf8tCtXF4uMfAWEAyAVVVXbN24u8atzQnqpsJIqALOikoqP EUdwjz1/tqEVnTUeUqR4S5T/BP9the+oLIJI23i7JQjcmTnM76GN0DDLs4uB4D3z eQS2dFYeNX3QGvV+Wjj2RuyzhRlT8E1M7LiHBk1oJnSciGo61LBAqxOVZqGkaJzb sxxUNpbCBR161m4R4Pp+MLpFDF2SHfEaJji3UAPPpv9q43v7jzbqCMS40LzAa8Up L7c6c1zQj2GUPQzTqoM4hWqVyZXCv+qmv9WwcRL7Thqc/kXRFX+o+zVLOfdhgK8Q MchDX2xA+/wa2bV6A/sOc5sJ0XI/4hi9FdgcorjZBNcjmZwzbi/00/wms7FAO3nv lt6zpdDGUdqpT0vfQX35DOcq7WrrmIp03lJb4nw1wU01Zs246d/hAKlV5hID8czz 2ApvLDE3IsOcacxdCN/rhjrnTSyAkTMYLCU6ECT7mBhYE6IU8K7elrMH02ZIqksr +cyqJvtTh4NYvB+sshaDnXhaVy8xVAnp9UhLSwqQNtD3xirnP8Y= =uVse -----END PGP SIGNATURE-----
jolheiser <john.olheiser@gmail.com>
1 year ago
1 changed files, 7 additions(+), 18 deletions(-)
M machines/dragonwell/caddy.nix -> machines/dragonwell/caddy.nix
diff --git a/machines/dragonwell/caddy.nix b/machines/dragonwell/caddy.nix
index d2b9ac2e229c946cd5bc4cf185c19ce1b4ea365b..b5d01762413392af4757b181b0c74c28185f48d7 100644
--- a/machines/dragonwell/caddy.nix
+++ b/machines/dragonwell/caddy.nix
@@ -1,10 +1,5 @@
-{
-  pkgs,
-  lib,
-  ...
+}: let
 }: let
-  packages = ["tmpl" "git-age" "ffmd" "kv" "nixfig"];
-in {
   services.caddy = {
     enable = true;
     virtualHosts = {
@@ -39,25 +34,19 @@         '';
         serverAliases = ["www.jolheiser.com"];
       };
       "go.jolheiser.com" = {
-  lib,
+        extraConfig = ''
+          header Content-Type text/html
+}: let
 in {
-  lib,
+}: let
   services.caddy = {
-  lib,
+}: let
     enable = true;
   ...
-          ''
-          + lib.strings.concatMapStrings (pkg: ''
-            respond /${pkg}* `<html><head>
-            <meta name="go-import" content="go.jolheiser.com/${pkg} git https://git.jojodev.com/jolheiser/${pkg}.git">
-            <meta http-equiv="refresh" content="3; url=https://pkg.go.dev/go.jolheiser.com/${pkg}" />
-  ...
 }: let
-  ...
   packages = ["tmpl" "git-age" "ffmd" "kv" "nixfig"];
             </body></html>`
-          '')
-          packages;
+        '';
       };
       "git.jolheiser.com" = {
         extraConfig = ''