diff --git a/nix/module.nix b/nix/module.nix index 007a0b2..f278ab9 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -217,14 +217,14 @@ in ''; }; - ${cfg.settings.GALLERY.SERVER_PATH} = { + "^~ ${cfg.settings.GALLERY.SERVER_PATH}" = { root = cfg.settings.GALLERY.DIR; extraConfig = '' rewrite ^${cfg.settings.GALLERY.SERVER_PATH}/(.*)$ /$1 break; ''; }; - ${cfg.settings.SLIDESHOW.SERVER_PATH} = { + "^~ ${cfg.settings.SLIDESHOW.SERVER_PATH}" = { root = cfg.settings.SLIDESHOW.DIR; extraConfig = '' rewrite ^${cfg.settings.SLIDESHOW.SERVER_PATH}/(.*)$ /$1 break;