From 6d590c6e1cb6ecc7a0a19ade5384b76839882a71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szekeres=20Ba=CC=81lint?= Date: Fri, 2 Nov 2018 14:24:32 +0100 Subject: [PATCH] PHP backup server #24 --- README.md | 3 ++- public/assets/js/app.js | 7 +++++- public/index.html | 22 +++++++++++++++++-- public/templates/conf/nginx.conf.html | 9 +++++++- .../conf/nginxconfig.io/php_fastcgi.conf.html | 2 +- 5 files changed, 37 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 3e1afb5..5751bec 100644 --- a/README.md +++ b/README.md @@ -45,11 +45,12 @@ Online nginx configuration generator. ### PHP * PHP -* PHP connection +* PHP server * TCP * HHVM socket * 5.x socket * 7.x socket +* PHP backup server * WordPress security essentials * Drupal security essentials diff --git a/public/assets/js/app.js b/public/assets/js/app.js index c1cfa34..cc78d2c 100644 --- a/public/assets/js/app.js +++ b/public/assets/js/app.js @@ -64,7 +64,8 @@ fallback_php_path: '/api/', php: true, - php_connection: '/var/run/php/php7.2-fpm.sock', + php_server: '/var/run/php/php7.2-fpm.sock', + php_server_backup: '', wordpress: false, drupal: false, @@ -452,6 +453,10 @@ return $scope.data.php; }; + $scope.isPHPBackup = function() { + return $scope.isPHP() && !!$scope.data.php_server_backup; + }; + $scope.isWordPress = function() { return $scope.isPHP() && $scope.data.wordpress; }; diff --git a/public/index.html b/public/index.html index f456e7d..35977ea 100644 --- a/public/index.html +++ b/public/index.html @@ -380,10 +380,28 @@
- + + + + + + + + + +
+
+
+ +
+