parent
ba68d8fb02
commit
32856797bd
|
@ -7,6 +7,7 @@ Online nginx configuration generator.
|
||||||
* HTTP2
|
* HTTP2
|
||||||
* CDN
|
* CDN
|
||||||
* www / non-www
|
* www / non-www
|
||||||
|
* IPv4, IPv6
|
||||||
* PHP (TCP, 5.x FPM, 7.0 FPM, 7.1 FPM, 7.2 FPM)
|
* 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)*)
|
* WordPress security essentials (*including [CVE-2018-6389](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-6389)*)
|
||||||
* pass requests to index.php
|
* pass requests to index.php
|
||||||
|
|
|
@ -130,9 +130,9 @@ main .options .card .form-group {
|
||||||
}
|
}
|
||||||
|
|
||||||
main .options .card .form-subgroup {
|
main .options .card .form-subgroup {
|
||||||
margin-left: 5px;
|
margin-left: 0.35rem;
|
||||||
border-left: 2px solid #ced4da;
|
border-left: 2px solid #ced4da;
|
||||||
padding-left: 11px;
|
padding-left: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
main .options .card .form-control[type="text"]:placeholder-shown,
|
main .options .card .form-control[type="text"]:placeholder-shown,
|
||||||
|
|
|
@ -25,6 +25,9 @@
|
||||||
///////////////////////
|
///////////////////////
|
||||||
var masonry;
|
var masonry;
|
||||||
var data = {
|
var data = {
|
||||||
|
ipv4: '*',
|
||||||
|
ipv6: '::',
|
||||||
|
|
||||||
domain: '',
|
domain: '',
|
||||||
path: '',
|
path: '',
|
||||||
document_root: '/public',
|
document_root: '/public',
|
||||||
|
@ -247,6 +250,10 @@
|
||||||
return $scope.data.file_structure === 'unified';
|
return $scope.data.file_structure === 'unified';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.isIPv6 = function() {
|
||||||
|
return !!$scope.data.ipv6;
|
||||||
|
};
|
||||||
|
|
||||||
$scope.isModularized = function() {
|
$scope.isModularized = function() {
|
||||||
return !$scope.isUnified();
|
return !$scope.isUnified();
|
||||||
};
|
};
|
||||||
|
|
|
@ -91,38 +91,48 @@
|
||||||
<span tooltips tooltip-template="Let's Encrypt based SSl.<br><br><i>free, automated, and open Certificate Authority</i>">Let's Encrypt</span>
|
<span tooltips tooltip-template="Let's Encrypt based SSl.<br><br><i>free, automated, and open Certificate Authority</i>">Let's Encrypt</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-subgroup" ng-if="isHTTPS() && isLetsEncrypt()" ng-cloak>
|
<div class="form-group" ng-if="isHTTPS() && isLetsEncrypt()">
|
||||||
<div class="form-group">
|
|
||||||
<label class="form-label small">
|
<label class="form-label small">
|
||||||
<span tooltips tooltip-template="Let's Encrypt expiration notify e-mail.">E-mail</span>
|
<span tooltips tooltip-template="Let's Encrypt expiration notify e-mail.">E-mail</span>
|
||||||
</label>
|
</label>
|
||||||
<input type="text" class="form-control form-control-sm" ng-model="data.email" placeholder="{{ 'hello@' + domain() }}">
|
<input type="text" class="form-control form-control-sm" ng-model="data.email" placeholder="{{ 'hello@' + domain() }}">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-subgroup" ng-if="isHTTPS()" ng-cloak>
|
|
||||||
<div class="form-check">
|
<div class="form-check">
|
||||||
<input class="form-check-input" type="radio" id="custom_cert" ng-model="data.cert_type" value="custom">
|
<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">
|
<label class="form-check-label" for="custom_cert">
|
||||||
<span tooltips tooltip-template="Custom certificate">Custom certificate</span>
|
<span tooltips tooltip-template="Custom certificate">Custom certificate</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-subgroup" ng-if="isHTTPS() && isCustomCert()" ng-cloak>
|
<div class="form-group" ng-if="isHTTPS() && isCustomCert()">
|
||||||
<div class="form-group">
|
|
||||||
<label class="form-label small">
|
<label class="form-label small">
|
||||||
<span tooltips tooltip-template="Path to crt file"><code>ssl_certificate</code></span>
|
<span tooltips tooltip-template="Path to crt file"><code>ssl_certificate</code></span>
|
||||||
</label>
|
</label>
|
||||||
<input type="text" class="form-control form-control-sm" ng-model="data.ssl_certificate" placeholder="{{ '/etc/nginx/ssl/' + domain() + '.crt' }}">
|
<input type="text" class="form-control form-control-sm" ng-model="data.ssl_certificate" placeholder="{{ '/etc/nginx/ssl/' + domain() + '.crt' }}">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="form-group" ng-if="isHTTPS() && isCustomCert()">
|
||||||
<div class="form-subgroup" ng-if="isHTTPS() && isCustomCert()" ng-cloak>
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="form-label small">
|
<label class="form-label small">
|
||||||
<span tooltips tooltip-template="Path to key file"><code>ssl_certificate_key</code></span>
|
<span tooltips tooltip-template="Path to key file"><code>ssl_certificate_key</code></span>
|
||||||
</label>
|
</label>
|
||||||
<input type="text" class="form-control form-control-sm" ng-model="data.ssl_certificate_key" placeholder="{{ '/etc/nginx/ssl/' + domain() + '.key' }}">
|
<input type="text" class="form-control form-control-sm" ng-model="data.ssl_certificate_key" placeholder="{{ '/etc/nginx/ssl/' + domain() + '.key' }}">
|
||||||
</div>
|
</div>
|
||||||
</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-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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -141,7 +151,7 @@
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<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-prepend">
|
||||||
<div class="input-group-text">PHP</div>
|
<div class="input-group-text">PHP</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue