mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-10 18:41:36 +08:00
added Drupal
This commit is contained in:
@@ -61,6 +61,7 @@
|
||||
|
||||
php: '7.2',
|
||||
wordpress: false,
|
||||
drupal: false,
|
||||
|
||||
file_structure: 'unified',
|
||||
|
||||
@@ -278,6 +279,7 @@
|
||||
$scope.setPreset = function(preset) {
|
||||
$scope.data.php = $scope.defaultData.php;
|
||||
$scope.data.wordpress = $scope.defaultData.wordpress;
|
||||
$scope.data.drupal = $scope.defaultData.drupal;
|
||||
$scope.data.index = $scope.defaultData.index;
|
||||
$scope.data.fallback_html = $scope.defaultData.fallback_html;
|
||||
|
||||
@@ -294,6 +296,9 @@
|
||||
case 'wordpress':
|
||||
$scope.data.wordpress = true;
|
||||
break;
|
||||
case 'drupal':
|
||||
$scope.data.drupal = true;
|
||||
break;
|
||||
}
|
||||
|
||||
gtag('event', preset, {
|
||||
@@ -394,6 +399,10 @@
|
||||
return $scope.isPHP() && $scope.data.wordpress;
|
||||
};
|
||||
|
||||
$scope.isDrupal= function() {
|
||||
return $scope.isPHP() && $scope.data.drupal;
|
||||
};
|
||||
|
||||
$scope.isCSP = function() {
|
||||
return !!$scope.data.content_security_policy;
|
||||
};
|
||||
|
Reference in New Issue
Block a user