updated layout for webmail and added http dns letsencrypt
This commit is contained in:
@@ -188,14 +188,14 @@
|
||||
<div class="card-body">
|
||||
<div class="setting-section">
|
||||
<div class="row">
|
||||
<div class="col-md-6"><div class="mb-3"><label class="form-label">TLS Certificate File</label>
|
||||
<div class="col-md-6"><div class="mb-3"><label class="form-label">Custom Certificate File</label>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control font-monospace" name="TLS.tls_cert_file" value="{{.settings.TLS.tls_cert_file}}">
|
||||
<input type="file" class="d-none" id="certFileUpload" accept=".crt,.pem">
|
||||
<button class="btn btn-outline-secondary" type="button" onclick="document.getElementById('certFileUpload').click()"><i class="bi bi-upload"></i></button>
|
||||
</div>
|
||||
</div></div>
|
||||
<div class="col-md-6"><div class="mb-3"><label class="form-label">TLS Private Key File</label>
|
||||
<div class="col-md-6"><div class="mb-3"><label class="form-label">Custom Private Key File</label>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control font-monospace" name="TLS.tls_key_file" value="{{.settings.TLS.tls_key_file}}">
|
||||
<input type="file" class="d-none" id="keyFileUpload" accept=".key,.pem">
|
||||
@@ -203,6 +203,35 @@
|
||||
</div>
|
||||
</div></div>
|
||||
</div>
|
||||
<div class="form-text mb-3">The "custom" certificate: self-signed on first run, or your own uploaded cert/key above.</div>
|
||||
<hr>
|
||||
<p class="mb-2">Which certificate each TLS listener uses — <code>custom</code> (above), or one of the two Let's
|
||||
Encrypt certificates managed on the <a href="/pymta-manager/letsencrypt">Let's Encrypt</a> page. Independent
|
||||
per listener, e.g. an HTTP-01 cert for mail while the dashboard keeps a DNS-01 or custom cert.</p>
|
||||
<div class="row">
|
||||
<div class="col-md-4"><div class="mb-3"><label class="form-label">SMTP (direct-TLS, 465)</label>
|
||||
<select class="form-select" name="TLS.smtp_tls_cert">
|
||||
<option value="custom" {{if eq .settings.TLS.smtp_tls_cert "custom"}}selected{{end}}>Custom / self-signed</option>
|
||||
<option value="letsencrypt_dns" {{if eq .settings.TLS.smtp_tls_cert "letsencrypt_dns"}}selected{{end}}>Let's Encrypt (DNS-01)</option>
|
||||
<option value="letsencrypt_http" {{if eq .settings.TLS.smtp_tls_cert "letsencrypt_http"}}selected{{end}}>Let's Encrypt (HTTP-01)</option>
|
||||
</select>
|
||||
</div></div>
|
||||
<div class="col-md-4"><div class="mb-3"><label class="form-label">IMAP (direct-TLS, 993)</label>
|
||||
<select class="form-select" name="TLS.imap_tls_cert">
|
||||
<option value="custom" {{if eq .settings.TLS.imap_tls_cert "custom"}}selected{{end}}>Custom / self-signed</option>
|
||||
<option value="letsencrypt_dns" {{if eq .settings.TLS.imap_tls_cert "letsencrypt_dns"}}selected{{end}}>Let's Encrypt (DNS-01)</option>
|
||||
<option value="letsencrypt_http" {{if eq .settings.TLS.imap_tls_cert "letsencrypt_http"}}selected{{end}}>Let's Encrypt (HTTP-01)</option>
|
||||
</select>
|
||||
</div></div>
|
||||
<div class="col-md-4"><div class="mb-3"><label class="form-label">Admin/webmail HTTPS</label>
|
||||
<select class="form-select" name="TLS.web_https_cert">
|
||||
<option value="custom" {{if eq .settings.TLS.web_https_cert "custom"}}selected{{end}}>Custom / self-signed</option>
|
||||
<option value="letsencrypt_dns" {{if eq .settings.TLS.web_https_cert "letsencrypt_dns"}}selected{{end}}>Let's Encrypt (DNS-01)</option>
|
||||
<option value="letsencrypt_http" {{if eq .settings.TLS.web_https_cert "letsencrypt_http"}}selected{{end}}>Let's Encrypt (HTTP-01)</option>
|
||||
</select>
|
||||
</div></div>
|
||||
</div>
|
||||
<div class="form-text">Changing which certificate a listener uses needs a restart to take effect. Once assigned, that listener's certificate then hot-reloads automatically on every future obtain/renew, no restart needed for that part.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user