nixos/bookstack: fix unintended escaping of nginx locations

This commit is contained in:
s1341 2024-12-09 15:41:22 +02:00
parent 1b52efe8c2
commit 8ae4064d70

View File

@ -348,10 +348,10 @@ in {
index = "index.php";
tryFiles = "$uri $uri/ /index.php?$query_string";
};
"~ \.php$".extraConfig = ''
"~ \\.php$".extraConfig = ''
fastcgi_pass unix:${config.services.phpfpm.pools."bookstack".socket};
'';
"~ \.(js|css|gif|png|ico|jpg|jpeg)$" = {
"~ \\.(js|css|gif|png|ico|jpg|jpeg)$" = {
extraConfig = "expires 365d;";
};
};