all repos — nixfiles @ c14e031eecf82d4fe18446b6649c93f60fd68f09

System and user configuration, managed by nix and home-manager

enable go vanity imports
Alan Pearce alan@alanpearce.eu
Sat, 29 Jun 2024 17:53:34 +0200
commit

c14e031eecf82d4fe18446b6649c93f60fd68f09

parent

c320cec75be24c1169a439e9a4c3b2f0875a5c6f

1 files changed, 9 insertions(+), 0 deletions(-)

jump to
M system/linde.nixsystem/linde.nix
@@ -779,6 +779,15 @@ extraConfig = ''               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 = {