diff --git a/modules/webstack.nix b/modules/webstack.nix index d39d68b..5d0bae8 100644 --- a/modules/webstack.nix +++ b/modules/webstack.nix @@ -71,8 +71,8 @@ tryFiles = "try_files $uri /app.php$is_args$args"; extraConfig = '' location ~ ^/app\.php(/|$) { + fastcgi_pass unix:/var/run/php-fpm.sock; fastcgi_split_path_info ^(.+\.php)(/.*)$; - include fastcgi_params; fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; fastcgi_param DOCUMENT_ROOT $realpath_root; internal; @@ -155,4 +155,9 @@ }; }; + # Create php user + users.users.php = { + group = "php"; + }; + }