0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

nixos/bookstack: fix unintended escaping of nginx locations (#363581)

This commit is contained in:
K900 2024-12-11 20:23:22 +03:00 committed by GitHub
commit 7ea7a19b2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;";
};
};