mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-09 00:19:53 +08:00
isLetsEncrypt() -> isCertLetsEncrypt(), isCustomCert() -> isCertCustom()
This commit is contained in:
@@ -102,37 +102,37 @@
|
||||
</div>
|
||||
<div class="form-subgroup pt-2" ng-if="isHTTPS()" ng-cloak>
|
||||
Certification type:
|
||||
</div>
|
||||
<div class="form-subgroup" ng-if="isHTTPS()" ng-cloak>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" id="letsencrypt" ng-model="data.cert_type" value="letsencrypt">
|
||||
<label class="form-check-label" for="letsencrypt">
|
||||
<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-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 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-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 class="form-subgroup">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" id="letsencrypt" ng-model="data.cert_type" value="letsencrypt">
|
||||
<label class="form-check-label" for="letsencrypt">
|
||||
<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-group" ng-if="isHTTPS() && isCertLetsEncrypt()">
|
||||
<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-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-group" ng-if="isHTTPS() && isCertCustom()">
|
||||
<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() && isCertCustom()">
|
||||
<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>
|
||||
<div class="mt-2">
|
||||
@@ -394,7 +394,7 @@
|
||||
<pre><code class="nginx" ng-include="'templates/conf/_ssl.conf.html?v=COMMIT_HASH'" onload="refreshHighlighting()"></code></pre>
|
||||
</div><div id="file-ssl" class="code highlighted"></div>
|
||||
</div>
|
||||
<div class="col-xl-6 grid-item file" ng-if="isModularized() && isLetsEncrypt()" ng-cloak>
|
||||
<div class="col-xl-6 grid-item file" ng-if="isModularized() && isCertLetsEncrypt()" ng-cloak>
|
||||
<strong>/etc/nginx/_letsencrypt.conf</strong>
|
||||
<button class="btn btn-light btn-clipboard" ngclipboard data-clipboard-target="#file-letsencrypt" ngclipboard-success="clipboardSuccess('_letsencrypt.conf')">
|
||||
<img src="assets/img/clipboard-dark.svg" alt="Copy to clipboard">
|
||||
|
Reference in New Issue
Block a user