nix/module: correct some nginx locations directives
This commit is contained in:
parent
d528df5f99
commit
216e153f89
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue