2018-07-25 18:23:32 -04:00
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h5 class="modal-title"><%- i18n('dead-hosts', 'form-title', {id: id}) %></h5>
|
|
|
|
<button type="button" class="close cancel" aria-label="Close" data-dismiss="modal"> </button>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body has-tabs">
|
|
|
|
<form>
|
|
|
|
<ul class="nav nav-tabs" role="tablist">
|
|
|
|
<li role="presentation" class="nav-item"><a href="#details" aria-controls="tab1" role="tab" data-toggle="tab" class="nav-link active"><i class="fe fe-zap"></i> <%- i18n('all-hosts', 'details') %></a></li>
|
|
|
|
<li role="presentation" class="nav-item"><a href="#ssl-options" aria-controls="tab2" role="tab" data-toggle="tab" class="nav-link"><i class="fe fe-shield"></i> <%- i18n('str', 'ssl') %></a></li>
|
2018-08-22 00:31:03 -04:00
|
|
|
<li role="presentation" class="nav-item"><a href="#advanced" aria-controls="tab3" role="tab" data-toggle="tab" class="nav-link"><i class="fe fe-settings"></i> <%- i18n('all-hosts', 'advanced') %></a></li>
|
2018-07-25 18:23:32 -04:00
|
|
|
</ul>
|
|
|
|
<div class="tab-content">
|
|
|
|
<!-- Details -->
|
|
|
|
<div role="tabpanel" class="tab-pane active" id="details">
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="col-sm-12 col-md-12">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="form-label"><%- i18n('all-hosts', 'domain-names') %> <span class="form-required">*</span></label>
|
|
|
|
<input type="text" name="domain_names" class="form-control" id="input-domains" value="<%- domain_names.join(',') %>" required>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- SSL -->
|
|
|
|
<div role="tabpanel" class="tab-pane" id="ssl-options">
|
|
|
|
<div class="row">
|
2018-08-15 23:08:56 -04:00
|
|
|
<div class="col-sm-12 col-md-12">
|
2018-07-25 18:23:32 -04:00
|
|
|
<div class="form-group">
|
2018-08-20 18:33:51 -04:00
|
|
|
<label class="form-label"><%- i18n('all-hosts', 'ssl-certificate') %></label>
|
|
|
|
<select name="certificate_id" class="form-control custom-select" placeholder="<%- i18n('all-hosts', 'none') %>">
|
|
|
|
<option selected value="0" data-data="{"id":0}" <%- certificate_id ? '' : 'selected' %>><%- i18n('all-hosts', 'none') %></option>
|
|
|
|
<option selected value="new" data-data="{"id":"new"}"><%- i18n('all-hosts', 'new-cert') %></option>
|
2018-08-15 23:08:56 -04:00
|
|
|
</select>
|
2018-07-25 18:23:32 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-11-12 06:45:23 -05:00
|
|
|
<div class="col-sm-6 col-md-6">
|
2018-07-25 18:23:32 -04:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="custom-switch">
|
2018-08-15 23:08:56 -04:00
|
|
|
<input type="checkbox" class="custom-switch-input" name="ssl_forced" value="1"<%- ssl_forced ? ' checked' : '' %><%- certificate_id ? '' : ' disabled' %>>
|
2018-07-25 18:23:32 -04:00
|
|
|
<span class="custom-switch-indicator"></span>
|
|
|
|
<span class="custom-switch-description"><%- i18n('all-hosts', 'force-ssl') %></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-11-12 06:45:23 -05:00
|
|
|
<div class="col-sm-6 col-md-6">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="custom-switch">
|
|
|
|
<input type="checkbox" class="custom-switch-input" name="http2_support" value="1"<%- http2_support ? ' checked' : '' %><%- certificate_id ? '' : ' disabled' %>>
|
|
|
|
<span class="custom-switch-indicator"></span>
|
|
|
|
<span class="custom-switch-description"><%- i18n('all-hosts', 'http2-support') %></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-02-18 03:21:45 -05:00
|
|
|
<div class="col-sm-6 col-md-6">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="custom-switch">
|
|
|
|
<input type="checkbox" class="custom-switch-input" name="hsts_enabled" value="1"<%- hsts_enabled ? ' checked' : '' %><%- certificate_id && ssl_forced ? '' : ' disabled' %>>
|
|
|
|
<span class="custom-switch-indicator"></span>
|
|
|
|
<span class="custom-switch-description"><%- i18n('all-hosts', 'hsts-enabled') %> <a href="https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security" target="_blank"><i class="fe fe-help-circle"></i></a></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-6 col-md-6">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="custom-switch">
|
|
|
|
<input type="checkbox" class="custom-switch-input" name="hsts_subdomains" value="1"<%- hsts_subdomains ? ' checked' : '' %><%- certificate_id && ssl_forced && hsts_enabled ? '' : ' disabled' %>>
|
|
|
|
<span class="custom-switch-indicator"></span>
|
|
|
|
<span class="custom-switch-description"><%- i18n('all-hosts', 'hsts-subdomains') %></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-07-25 18:23:32 -04:00
|
|
|
|
2020-10-04 17:56:02 -04:00
|
|
|
<!-- DNS challenge -->
|
2020-08-24 05:00:00 -04:00
|
|
|
<div class="col-sm-12 col-md-12 letsencrypt">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="custom-switch">
|
2020-10-04 17:56:02 -04:00
|
|
|
<input
|
|
|
|
type="checkbox"
|
|
|
|
class="custom-switch-input"
|
|
|
|
name="meta[dns_challenge]"
|
|
|
|
value="1"
|
|
|
|
<%- getUseDnsChallenge() ? 'checked' : '' %>
|
|
|
|
>
|
2020-08-24 05:00:00 -04:00
|
|
|
<span class="custom-switch-indicator"></span>
|
2020-10-04 17:56:02 -04:00
|
|
|
<span class="custom-switch-description"><%= i18n('ssl', 'dns-challenge') %></span>
|
2020-08-24 05:00:00 -04:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-10-04 17:56:02 -04:00
|
|
|
<div class="col-sm-12 col-md-12 letsencrypt">
|
|
|
|
<fieldset class="form-fieldset dns-challenge">
|
|
|
|
<div class="text-red mb-4"><i class="fe fe-alert-triangle"></i> <%= i18n('ssl', 'certbot-warning') %></div>
|
|
|
|
|
|
|
|
<!-- Certbot DNS plugin selection -->
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-12 col-md-12">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="form-label"><%- i18n('ssl', 'dns-provider') %> <span class="form-required">*</span></label>
|
|
|
|
<select
|
|
|
|
name="meta[dns_provider]"
|
|
|
|
id="dns_provider"
|
|
|
|
class="form-control custom-select"
|
|
|
|
>
|
|
|
|
<option
|
|
|
|
value=""
|
|
|
|
disabled
|
|
|
|
hidden
|
|
|
|
<%- getDnsProvider() === null ? 'selected' : '' %>
|
|
|
|
>Please Choose...</option>
|
|
|
|
<% _.each(dns_plugins, function(plugin_info, plugin_name){ %>
|
|
|
|
<option
|
|
|
|
value="<%- plugin_name %>"
|
|
|
|
<%- getDnsProvider() === plugin_name ? 'selected' : '' %>
|
|
|
|
><%- plugin_info.display_name %></option>
|
|
|
|
<% }); %>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Certbot credentials file content -->
|
|
|
|
<div class="row credentials-file-content">
|
|
|
|
<div class="col-sm-12 col-md-12">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="form-label"><%- i18n('ssl', 'credentials-file-content') %> <span class="form-required">*</span></label>
|
|
|
|
<textarea
|
|
|
|
name="meta[dns_provider_credentials]"
|
|
|
|
class="form-control text-monospace"
|
|
|
|
id="dns_provider_credentials"
|
|
|
|
><%- getDnsProviderCredentials() %></textarea>
|
|
|
|
<div class="text-secondary small">
|
|
|
|
<i class="fe fe-info"></i>
|
|
|
|
<%= i18n('ssl', 'credentials-file-content-info') %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- DNS propagation delay -->
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-12 col-md-12">
|
|
|
|
<div class="form-group mb-0">
|
|
|
|
<label class="form-label"><%- i18n('ssl', 'propagation-seconds') %></label>
|
|
|
|
<input
|
|
|
|
type="number"
|
|
|
|
min="0"
|
|
|
|
name="meta[propagation_seconds]"
|
|
|
|
class="form-control"
|
|
|
|
id="propagation_seconds"
|
|
|
|
value="<%- getPropagationSeconds() %>"
|
|
|
|
>
|
|
|
|
<div class="text-secondary small">
|
|
|
|
<i class="fe fe-info"></i>
|
|
|
|
<%= i18n('ssl', 'propagation-seconds-info') %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
2020-08-24 05:00:00 -04:00
|
|
|
</div>
|
|
|
|
|
2018-07-25 18:23:32 -04:00
|
|
|
<!-- Lets encrypt -->
|
2018-08-15 23:08:56 -04:00
|
|
|
<div class="col-sm-12 col-md-12 letsencrypt">
|
2018-07-25 18:23:32 -04:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="form-label"><%- i18n('ssl', 'letsencrypt-email') %> <span class="form-required">*</span></label>
|
2018-08-15 23:08:56 -04:00
|
|
|
<input name="meta[letsencrypt_email]" type="email" class="form-control" placeholder="" value="<%- getLetsencryptEmail() %>" required disabled>
|
2018-07-25 18:23:32 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-08-15 23:08:56 -04:00
|
|
|
<div class="col-sm-12 col-md-12 letsencrypt">
|
2018-07-25 18:23:32 -04:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="custom-switch">
|
2018-08-15 23:08:56 -04:00
|
|
|
<input type="checkbox" class="custom-switch-input" name="meta[letsencrypt_agree]" value="1" required disabled>
|
2018-07-25 18:23:32 -04:00
|
|
|
<span class="custom-switch-indicator"></span>
|
|
|
|
<span class="custom-switch-description"><%= i18n('ssl', 'letsencrypt-agree', {url: 'https://letsencrypt.org/repository/'}) %> <span class="form-required">*</span></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-08-22 00:31:03 -04:00
|
|
|
<!-- Advanced -->
|
|
|
|
<div role="tabpanel" class="tab-pane" id="advanced">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="form-group mb-0">
|
|
|
|
<label class="form-label"><%- i18n('all-hosts', 'advanced-config') %></label>
|
|
|
|
<textarea name="advanced_config" rows="8" class="form-control text-monospace" placeholder="# <%- i18n('all-hosts', 'advanced-warning') %>"><%- advanced_config %></textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-07-25 18:23:32 -04:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-secondary cancel" data-dismiss="modal"><%- i18n('str', 'cancel') %></button>
|
|
|
|
<button type="button" class="btn btn-teal save"><%- i18n('str', 'save') %></button>
|
|
|
|
</div>
|
|
|
|
</div>
|