fpm.nix: fix string escaping
\. has no effect in single quoted strings
This commit is contained in:
parent
2c7f09a78f
commit
2d6926b64b
@ -10,7 +10,7 @@ import ../make-test-python.nix ({pkgs, lib, ...}: {
|
|||||||
testdir = pkgs.writeTextDir "web/index.php" "<?php phpinfo();";
|
testdir = pkgs.writeTextDir "web/index.php" "<?php phpinfo();";
|
||||||
in {
|
in {
|
||||||
root = "${testdir}/web";
|
root = "${testdir}/web";
|
||||||
locations."~ \.php$".extraConfig = ''
|
locations."~ \\.php$".extraConfig = ''
|
||||||
fastcgi_pass unix:${config.services.phpfpm.pools.foobar.socket};
|
fastcgi_pass unix:${config.services.phpfpm.pools.foobar.socket};
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
include ${pkgs.nginx}/conf/fastcgi_params;
|
include ${pkgs.nginx}/conf/fastcgi_params;
|
||||||
|
Loading…
Reference in New Issue
Block a user