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

@@ -0,0 +1 @@
<svg aria-labelledby="simpleicons-nodejs-icon" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title id="simpleicons-nodejs-icon">Node.JS icon</title><path d="M11.435.153l-9.37 5.43c-.35.203-.564.578-.563.983V17.43c0 .404.215.78.564.982l9.37 5.435c.35.203.78.203 1.13 0l9.366-5.433c.35-.205.564-.578.565-.982V6.566c0-.404-.216-.78-.566-.984L12.567.152c-.35-.203-.782-.203-1.13 0"/></svg>

After

Width:  |  Height:  |  Size: 406 B

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;
};