nix/module: correct some nginx locations directives

This commit is contained in:
Oystein Kristoffer Tveit 2024-04-11 13:19:59 +02:00
parent d528df5f99
commit 216e153f89
1 changed files with 2 additions and 2 deletions

View File

@ -217,14 +217,14 @@ in
''; '';
}; };
${cfg.settings.GALLERY.SERVER_PATH} = { "^~ ${cfg.settings.GALLERY.SERVER_PATH}" = {
root = cfg.settings.GALLERY.DIR; root = cfg.settings.GALLERY.DIR;
extraConfig = '' extraConfig = ''
rewrite ^${cfg.settings.GALLERY.SERVER_PATH}/(.*)$ /$1 break; rewrite ^${cfg.settings.GALLERY.SERVER_PATH}/(.*)$ /$1 break;
''; '';
}; };
${cfg.settings.SLIDESHOW.SERVER_PATH} = { "^~ ${cfg.settings.SLIDESHOW.SERVER_PATH}" = {
root = cfg.settings.SLIDESHOW.DIR; root = cfg.settings.SLIDESHOW.DIR;
extraConfig = '' extraConfig = ''
rewrite ^${cfg.settings.SLIDESHOW.SERVER_PATH}/(.*)$ /$1 break; rewrite ^${cfg.settings.SLIDESHOW.SERVER_PATH}/(.*)$ /$1 break;