all repos — nixfiles @ 89df9788b274ff0f5b1322cf5bf5b15ea8d3f670

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

linde: serve laminar artefacts via caddy
Alan Pearce alan@alanpearce.eu
Sun, 23 Feb 2025 23:44:52 +0100
commit

89df9788b274ff0f5b1322cf5bf5b15ea8d3f670

parent

115528b8c95a25ea0fd8c89fc9f733cecabeff4d

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

jump to
M system/linde.nixsystem/linde.nix
@@ -606,6 +606,10 @@ {             useACMEHost = "alanpearce.eu";
             extraConfig = ''
               reverse_proxy ${srv.settings.bindHTTP}
+              handle_path /archive/* {
+                root * ${srv.homeDir}/archive
+                file_server browse
+              }
             '';
           };
         "stats.alanpearce.eu" =
@@ -991,11 +995,13 @@ ];     settings = {
       bindHTTP = "[::1]:8002";
       keepRundirs = 1;
+      archiveURL = "https://ci.alanpearce.eu/archive/";
     };
   };
   users.users.laminar = {
     homeMode = "770";
   };
+  users.groups.laminar.members = [ "caddy" ];
 
   virtualisation.containers = {
     enable = true;