diff --git a/hosts/chmura/jacekpoz.pl.nix b/hosts/chmura/jacekpoz.pl.nix index decd02b..f709eb9 100644 --- a/hosts/chmura/jacekpoz.pl.nix +++ b/hosts/chmura/jacekpoz.pl.nix @@ -5,7 +5,8 @@ services.caddy = { enable = true; virtualHosts."jacekpoz.pl".extraConfig = '' - root * ${ pkgs.callPackage ./jacekpoz.pl { } } + @old not path /new /new/* /~raf /~raf/* + root @old ${ pkgs.callPackage ./jacekpoz.pl { } } file_server ''; virtualHosts."jpoz.pl".extraConfig = '' diff --git a/hosts/chmura/newjacekpoz.pl.nix b/hosts/chmura/newjacekpoz.pl.nix index ee0088b..38f9b1d 100644 --- a/hosts/chmura/newjacekpoz.pl.nix +++ b/hosts/chmura/newjacekpoz.pl.nix @@ -2,7 +2,8 @@ _: { services.caddy = { enable = true; virtualHosts."jacekpoz.pl".extraConfig = '' - root /new/* /srv/web/jacekpoz.pl + @new path /new /new/* /~raf /~raf/* + root @new /srv/web/jacekpoz.pl file_server ''; };