diff --git a/README.md b/README.md
index 805e999..5b958d5 100644
--- a/README.md
+++ b/README.md
@@ -13,6 +13,7 @@ Online nginx configuration generator.
* redirect subdomains
* IPv4, IPv6
* PHP (TCP, 5.x FPM, 7.0 FPM, 7.1 FPM, 7.2 FPM, 7.3 FPM)
+* Reverse proxy (e.g. Node.js)
* WordPress security essentials
* Drupal security essentials
* pass requests to index.php
diff --git a/public/assets/img/brands/nodejs.svg b/public/assets/img/brands/nodejs.svg
new file mode 100644
index 0000000..efa57c8
--- /dev/null
+++ b/public/assets/img/brands/nodejs.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/public/assets/js/app.js b/public/assets/js/app.js
index b4459f0..d2f7ce1 100644
--- a/public/assets/js/app.js
+++ b/public/assets/js/app.js
@@ -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;
+ };
+
diff --git a/public/index.html b/public/index.html
index de2c422..8d25d01 100644
--- a/public/index.html
+++ b/public/index.html
@@ -8,9 +8,9 @@
nginxconfig.io
-
+
-
+
@@ -25,6 +25,7 @@
+
+
+ /etc/nginx/nginxconfig.io/proxy.conf
+
+ Copied!
+
+
/etc/nginx/nginxconfig.io/wordpress.conf