From 216e153f89f1dbdc4c98a7c1db2a40e52becc901 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Thu, 11 Apr 2024 13:19:59 +0200 Subject: [PATCH] nix/module: correct some nginx locations directives --- nix/module.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;