update caddy paths for new site and ~raf

This commit is contained in:
jacekpoz 2024-05-18 18:48:27 +02:00
parent 5786a83094
commit 6ed4206fe0
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
2 changed files with 4 additions and 2 deletions

View file

@ -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 = ''

View file

@ -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
'';
};