fixes
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
|
||||
{% if message %}
|
||||
<div class="alert alert-{{ message_type|default('info') }} alert-dismissible fade show" role="alert">
|
||||
<i class="bi bi-{% if message_type == 'success' %}check-circle{% elif message_type == 'danger' %}exclamation-circle{% else %}info-circle{% endif %} me-2"></i>
|
||||
<i class="bi bi-{% if message_type == 'success' %}check-circle{% elif message_type == 'danger' %}exclamation-circle{% elif message_type == 'warning' %}exclamation-triangle{% else %}info-circle{% endif %} me-2"></i>
|
||||
{{ message }}
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
||||
</div>
|
||||
@@ -98,12 +98,13 @@
|
||||
<div class="col-md-6">
|
||||
<label for="lb_method" class="form-label">Load Balancing Method</label>
|
||||
<select class="form-select" id="lb_method" name="lb_method" required>
|
||||
<option value="no-lb">No Load Balancing (single host)</option>
|
||||
<option value="roundrobin">Round Robin</option>
|
||||
<option value="leastconn">Least Connections</option>
|
||||
<option value="source">Source IP Hash</option>
|
||||
<option value="uri">URI Hash</option>
|
||||
<option value="static-rr">Static Round Robin (WRR)</option>
|
||||
<option value="no-lb">No Load Balancing (single host)</option>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -138,7 +139,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Backend SSL Redirect -->
|
||||
<!-- HTTP to HTTPS Redirect -->
|
||||
<div class="row g-3 mb-3">
|
||||
<div class="col-md-12">
|
||||
<div class="form-check">
|
||||
@@ -147,16 +148,23 @@
|
||||
<label class="form-check-label" for="backend_ssl_redirect">
|
||||
<i class="bi bi-arrow-repeat me-1"></i>Add HTTP Redirect to HTTPS
|
||||
</label>
|
||||
<small class="text-muted d-block">Creates additional frontend on port 80</small>
|
||||
<small class="text-muted d-block">Creates additional frontend to redirect HTTP traffic to HTTPS</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row g-3 mb-3 d-none" id="backend_ssl_fields">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-6">
|
||||
<label for="ssl_redirect_backend_name" class="form-label">Redirect Backend Name</label>
|
||||
<input type="text" class="form-control" id="ssl_redirect_backend_name"
|
||||
name="ssl_redirect_backend_name" placeholder="e.g. redirect">
|
||||
<small class="text-muted">Name for the redirect backend</small>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label for="ssl_redirect_port" class="form-label">HTTP Redirect Port</label>
|
||||
<input type="number" class="form-control" id="ssl_redirect_port"
|
||||
name="ssl_redirect_port" value="80" min="1" max="65535">
|
||||
<small class="text-muted">Default: 80 (leave empty for standard)</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user