From 32856797bdb8bf26ebe86394918d0c40dda9aa63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szekeres=20Ba=CC=81lint?= Date: Tue, 27 Feb 2018 08:36:39 +0100 Subject: [PATCH] IPv4, IPv6 support fixes #8 --- README.md | 1 + public/assets/css/app.css | 4 +-- public/assets/js/app.js | 7 +++++ public/index.html | 54 +++++++++++++++++++++++---------------- 4 files changed, 42 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 9c16ea0..c4384df 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ Online nginx configuration generator. * HTTP2 * CDN * www / non-www +* IPv4, IPv6 * PHP (TCP, 5.x FPM, 7.0 FPM, 7.1 FPM, 7.2 FPM) * WordPress security essentials (*including [CVE-2018-6389](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-6389)*) * pass requests to index.php diff --git a/public/assets/css/app.css b/public/assets/css/app.css index 8f1493b..b96bdb8 100644 --- a/public/assets/css/app.css +++ b/public/assets/css/app.css @@ -130,9 +130,9 @@ main .options .card .form-group { } main .options .card .form-subgroup { - margin-left: 5px; + margin-left: 0.35rem; border-left: 2px solid #ced4da; - padding-left: 11px; + padding-left: 0.5rem; } main .options .card .form-control[type="text"]:placeholder-shown, diff --git a/public/assets/js/app.js b/public/assets/js/app.js index 5af0d57..186c214 100644 --- a/public/assets/js/app.js +++ b/public/assets/js/app.js @@ -25,6 +25,9 @@ /////////////////////// var masonry; var data = { + ipv4: '*', + ipv6: '::', + domain: '', path: '', document_root: '/public', @@ -247,6 +250,10 @@ return $scope.data.file_structure === 'unified'; }; + $scope.isIPv6 = function() { + return !!$scope.data.ipv6; + }; + $scope.isModularized = function() { return !$scope.isUnified(); }; diff --git a/public/index.html b/public/index.html index 710a63a..e0b2953 100644 --- a/public/index.html +++ b/public/index.html @@ -91,36 +91,46 @@ Let's Encrypt -
-
- - -
+
+ +
-
-
-
-
- - +
+ + +
+
+ + +
+
+
+
+
+
+
IPv4
+
+
-
-
- - +
+
+
+
IPv6
+
+
@@ -141,7 +151,7 @@
-
+
PHP