From 985cac1b891b57618c7e40132c0bb3e1c3288232 Mon Sep 17 00:00:00 2001 From: Yusuf Bera Ertan Date: Sun, 31 Jul 2022 03:51:59 +0300 Subject: [PATCH] feat: use http-server instead of caddy --- pkgs-lib.nix | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/pkgs-lib.nix b/pkgs-lib.nix index ccc29e4..28489d7 100644 --- a/pkgs-lib.nix +++ b/pkgs-lib.nix @@ -6,9 +6,7 @@ mkServePathScript = path: pkgs.writeScriptBin "serve" '' - #!${pkgs.stdenv.shell} - cd ${path} - ${pkgBin "caddy"} run --config Caddyfile + ${pkgs.nodePackages.http-server}/bin/http-server -c-1 ${path} ''; mkSitePath = site: let @@ -92,15 +90,6 @@ in { User-agent: * Allow: / ''; - "Caddyfile" = '' - ${baseurl} - - handle_errors { - rewrite * /{http.error.status_code}.html - file_server - } - file_server - ''; }; }; in