summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-06-29 17:53:34 +0200
committerAlan Pearce2024-06-29 17:53:34 +0200
commitc14e031eecf82d4fe18446b6649c93f60fd68f09 (patch)
treeab43cc2f4bbbe693df4fa4c58dcc2788abeca478
parentc320cec75be24c1169a439e9a4c3b2f0875a5c6f (diff)
downloadnixfiles-c14e031eecf82d4fe18446b6649c93f60fd68f09.tar.lz
nixfiles-c14e031eecf82d4fe18446b6649c93f60fd68f09.tar.zst
nixfiles-c14e031eecf82d4fe18446b6649c93f60fd68f09.zip
enable go vanity imports
-rw-r--r--system/linde.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/system/linde.nix b/system/linde.nix
index c9da9e65..03edc328 100644
--- a/system/linde.nix
+++ b/system/linde.nix
@@ -779,6 +779,15 @@ in
               reverse_proxy ${srv.listenAddress}:${toString srv.port}
             '';
           };
+        "go.alanpearce.eu" = {
+          useACMEHost = "alanpearce.eu";
+          extraConfig = ''
+            encode zstd gzip
+            ${security-headers {}}
+            root * /srv/http/go
+            file_server
+          '';
+        };
       };
   };
   systemd.services.caddy.serviceConfig = {