IPv4, IPv6 support

fixes #8
pull/12/head
Szekeres Bálint 7 years ago
parent ba68d8fb02
commit 32856797bd

@ -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

@ -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,

@ -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();
};

@ -91,36 +91,46 @@
<span tooltips tooltip-template="Let's Encrypt based SSl.<br><br><i>free, automated, and open Certificate Authority</i>">Let's Encrypt</span>
</label>
</div>
<div class="form-subgroup" ng-if="isHTTPS() && isLetsEncrypt()" ng-cloak>
<div class="form-group">
<label class="form-label small">
<span tooltips tooltip-template="Let's Encrypt expiration notify e-mail.">E-mail</span>
</label>
<input type="text" class="form-control form-control-sm" ng-model="data.email" placeholder="{{ 'hello@' + domain() }}">
</div>
<div class="form-group" ng-if="isHTTPS() && isLetsEncrypt()">
<label class="form-label small">
<span tooltips tooltip-template="Let's Encrypt expiration notify e-mail.">E-mail</span>
</label>
<input type="text" class="form-control form-control-sm" ng-model="data.email" placeholder="{{ 'hello@' + domain() }}">
</div>
</div>
<div class="form-subgroup" ng-if="isHTTPS()" ng-cloak>
<div class="form-check">
<input class="form-check-input" type="radio" id="custom_cert" ng-model="data.cert_type" value="custom">
<label class="form-check-label" for="custom_cert">
<span tooltips tooltip-template="Custom certificate">Custom certificate</span>
</label>
</div>
<div class="form-subgroup" ng-if="isHTTPS() && isCustomCert()" ng-cloak>
<div class="form-group">
<label class="form-label small">
<span tooltips tooltip-template="Path to crt file"><code>ssl_certificate</code></span>
</label>
<input type="text" class="form-control form-control-sm" ng-model="data.ssl_certificate" placeholder="{{ '/etc/nginx/ssl/' + domain() + '.crt' }}">
<div class="form-group" ng-if="isHTTPS() && isCustomCert()">
<label class="form-label small">
<span tooltips tooltip-template="Path to crt file"><code>ssl_certificate</code></span>
</label>
<input type="text" class="form-control form-control-sm" ng-model="data.ssl_certificate" placeholder="{{ '/etc/nginx/ssl/' + domain() + '.crt' }}">
</div>
<div class="form-group" ng-if="isHTTPS() && isCustomCert()">
<label class="form-label small">
<span tooltips tooltip-template="Path to key file"><code>ssl_certificate_key</code></span>
</label>
<input type="text" class="form-control form-control-sm" ng-model="data.ssl_certificate_key" placeholder="{{ '/etc/nginx/ssl/' + domain() + '.key' }}">
</div>
</div>
<div class="mt-2">
<div class="form-group">
<div class="input-group input-group-sm">
<div class="input-group-prepend">
<div class="input-group-text">IPv4</div>
</div>
<input type="text" class="form-control form-control-sm" ng-model="data.ipv4">
</div>
</div>
<div class="form-subgroup" ng-if="isHTTPS() && isCustomCert()" ng-cloak>
<div class="form-group">
<label class="form-label small">
<span tooltips tooltip-template="Path to key file"><code>ssl_certificate_key</code></span>
</label>
<input type="text" class="form-control form-control-sm" ng-model="data.ssl_certificate_key" placeholder="{{ '/etc/nginx/ssl/' + domain() + '.key' }}">
<div class="form-group">
<div class="input-group input-group-sm">
<div class="input-group-prepend">
<div class="input-group-text">IPv6</div>
</div>
<input type="text" class="form-control form-control-sm" ng-model="data.ipv6">
</div>
</div>
</div>
@ -141,7 +151,7 @@
</label>
</div>
<div class="form-group">
<div class="input-group" tooltips tooltip-template="PHP-FPM via TCP or unix socket.">
<div class="input-group input-group-sm" tooltips tooltip-template="PHP-FPM via TCP or unix socket.">
<div class="input-group-prepend">
<div class="input-group-text">PHP</div>
</div>

Loading…
Cancel
Save