From c14e031eecf82d4fe18446b6649c93f60fd68f09 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 29 Jun 2024 17:53:34 +0200 Subject: enable go vanity imports --- system/linde.nix | 9 +++++++++ 1 file changed, 9 insertions(+) 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 = { -- cgit 1.4.1