diff --git a/public/assets/js/app.js b/public/assets/js/app.js index 70f9d1b..c1cfa34 100644 --- a/public/assets/js/app.js +++ b/public/assets/js/app.js @@ -64,7 +64,7 @@ fallback_php_path: '/api/', php: true, - php_connection: '7.2', + php_connection: '/var/run/php/php7.2-fpm.sock', wordpress: false, drupal: false, diff --git a/public/index.html b/public/index.html index 2d71230..f456e7d 100644 --- a/public/index.html +++ b/public/index.html @@ -384,12 +384,14 @@
diff --git a/public/templates/conf/nginxconfig.io/php_fastcgi.conf.html b/public/templates/conf/nginxconfig.io/php_fastcgi.conf.html index 7491c05..f1915b4 100644 --- a/public/templates/conf/nginxconfig.io/php_fastcgi.conf.html +++ b/public/templates/conf/nginxconfig.io/php_fastcgi.conf.html @@ -1,13 +1,7 @@ try_files $uri =404; # fastcgi -fastcgi_pass {{ - data.php_connection === 'tcp' ? '127.0.0.1:9000' : ( - data.php_connection === '5.x' ? 'unix:/var/run/php5-fpm.sock' : ( - 'unix:/var/run/php/php' + data.php_connection +'-fpm.sock' - ) - ) -}}; +fastcgi_pass {{ data.php_connection[0] === '/' ? 'unix:' : '' }}{{ data.php_connection }}; fastcgi_index index.php; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;