Reverse proxy support

fixes #4, #16
This commit is contained in:
Szekeres Bálint
2018-08-20 16:04:34 +02:00
parent ef1ea48555
commit bec7ce0259
8 changed files with 110 additions and 3 deletions

View File

@@ -84,6 +84,10 @@
expires_media: '7d',
expires_svg: '7d',
expires_fonts: '7d',
proxy: false,
proxy_path: '/',
proxy_pass: 'http://127.0.0.1:3000',
};
$scope.location = $location;
@@ -287,6 +291,7 @@
$scope.data.php = $scope.defaultData.php;
$scope.data.wordpress = $scope.defaultData.wordpress;
$scope.data.drupal = $scope.defaultData.drupal;
$scope.data.proxy = $scope.defaultData.proxy;
$scope.data.index = $scope.defaultData.index;
$scope.data.fallback_html = $scope.defaultData.fallback_html;
@@ -306,6 +311,10 @@
case 'drupal':
$scope.data.drupal = true;
break;
case 'nodejs':
$scope.data.php = false;
$scope.data.proxy = true;
break;
}
gtag('event', preset, {
@@ -438,6 +447,10 @@
return $scope.data.limit_req;
};
$scope.isProxy = function() {
return $scope.data.proxy;
};