fpm.nix: fix string escaping

\. has no effect in single quoted strings
This commit is contained in:
kvtb 2020-12-31 23:50:51 +00:00 committed by GitHub
parent 2c7f09a78f
commit 2d6926b64b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ import ../make-test-python.nix ({pkgs, lib, ...}: {
testdir = pkgs.writeTextDir "web/index.php" "<?php phpinfo();";
in {
root = "${testdir}/web";
locations."~ \.php$".extraConfig = ''
locations."~ \\.php$".extraConfig = ''
fastcgi_pass unix:${config.services.phpfpm.pools.foobar.socket};
fastcgi_index index.php;
include ${pkgs.nginx}/conf/fastcgi_params;