mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-03-26 05:50:05 +01:00
779 lines
24 KiB
HTML
779 lines
24 KiB
HTML
{% extends "baseTemplate/index.html" %}
|
|
{% load i18n %}
|
|
{% block title %}{% trans "LiteSpeed Tuning - CyberPanel" %}{% endblock %}
|
|
{% block content %}
|
|
|
|
{% load static %}
|
|
{% get_current_language as LANGUAGE_CODE %}
|
|
<!-- Current language: {{ LANGUAGE_CODE }} -->
|
|
|
|
<style>
|
|
/* CSS Variables for Dark Mode Support */
|
|
:root {
|
|
/* Text colors */
|
|
--text-primary: #1e293b;
|
|
--text-secondary: #475569;
|
|
--text-muted: #64748b;
|
|
--text-on-gradient: rgba(255, 255, 255, 0.9);
|
|
|
|
/* Background colors */
|
|
--bg-primary: #ffffff;
|
|
--bg-secondary: #f8f9ff;
|
|
--bg-light: #f3f4f6;
|
|
--bg-hover: #f8f9ff;
|
|
--bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
|
|
/* Border colors */
|
|
--border-color: #e8e9ff;
|
|
--border-light: #f1f5f9;
|
|
|
|
/* Accent colors */
|
|
--accent-color: #667eea;
|
|
--accent-hover: #764ba2;
|
|
--accent-bg: #f3e8ff;
|
|
--accent-focus: rgba(102, 126, 234, 0.1);
|
|
--accent-shadow: rgba(102, 126, 234, 0.3);
|
|
|
|
/* Status colors */
|
|
--success-bg: #d1fae5;
|
|
--success-color: #065f46;
|
|
--success-border: #a7f3d0;
|
|
--success-accent: #10b981;
|
|
--success-hover: #059669;
|
|
|
|
--danger-bg: #fee2e2;
|
|
--danger-color: #991b1b;
|
|
--danger-border: #fecaca;
|
|
--danger-accent: #dc2626;
|
|
--danger-hover: #b91c1c;
|
|
|
|
--warning-bg: #fef3c7;
|
|
--warning-color: #92400e;
|
|
--warning-border: #fde68a;
|
|
|
|
--info-bg: #dbeafe;
|
|
--info-color: #1e40af;
|
|
--info-border: #bfdbfe;
|
|
|
|
/* Shadow colors */
|
|
--shadow-light: rgba(0,0,0,0.05);
|
|
--shadow-medium: rgba(0,0,0,0.08);
|
|
--shadow-color: rgba(0,0,0,0.1);
|
|
|
|
/* Console colors */
|
|
--console-bg: #1e293b;
|
|
--console-text: #10b981;
|
|
|
|
/* Input colors */
|
|
--input-bg: #ffffff;
|
|
--input-border: #e5e7eb;
|
|
--input-focus-border: #667eea;
|
|
}
|
|
|
|
[data-theme="dark"] {
|
|
/* Dark mode overrides */
|
|
--text-primary: #e4e4e7;
|
|
--text-secondary: #9ca3af;
|
|
--text-muted: #6b7280;
|
|
--text-on-gradient: rgba(255, 255, 255, 0.9);
|
|
|
|
--bg-primary: #0f0f23;
|
|
--bg-secondary: #1a1a3e;
|
|
--bg-light: #252550;
|
|
--bg-hover: #252550;
|
|
--bg-gradient: linear-gradient(135deg, #7c7ff3 0%, #9b5de5 100%);
|
|
|
|
--border-color: #2a2a5e;
|
|
--border-light: #374151;
|
|
|
|
--accent-color: #7c7ff3;
|
|
--accent-hover: #9b5de5;
|
|
--accent-bg: #3730a3;
|
|
--accent-focus: rgba(124, 127, 243, 0.1);
|
|
--accent-shadow: rgba(124, 127, 243, 0.3);
|
|
|
|
--success-bg: #064e3b;
|
|
--success-color: #34d399;
|
|
--success-border: #065f46;
|
|
--success-accent: #10b981;
|
|
--success-hover: #15803d;
|
|
|
|
--danger-bg: #7f1d1d;
|
|
--danger-color: #fca5a5;
|
|
--danger-border: #991b1b;
|
|
--danger-accent: #ef4444;
|
|
--danger-hover: #dc2626;
|
|
|
|
--warning-bg: #78350f;
|
|
--warning-color: #fbbf24;
|
|
--warning-border: #92400e;
|
|
|
|
--info-bg: #1e3a8a;
|
|
--info-color: #93c5fd;
|
|
--info-border: #1e40af;
|
|
|
|
--shadow-light: rgba(0,0,0,0.3);
|
|
--shadow-medium: rgba(0,0,0,0.4);
|
|
--shadow-color: rgba(0,0,0,0.5);
|
|
|
|
--console-bg: #0f0f23;
|
|
--console-text: #4ade80;
|
|
|
|
--input-bg: #1e1e42;
|
|
--input-border: #374151;
|
|
--input-focus-border: #7c7ff3;
|
|
}
|
|
|
|
.modern-container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 2rem;
|
|
}
|
|
|
|
.page-header {
|
|
text-align: center;
|
|
margin-bottom: 3rem;
|
|
padding: 3rem 0;
|
|
background: var(--bg-gradient);
|
|
border-radius: 20px;
|
|
animation: fadeInDown 0.5s ease-out;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.page-header::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: -50%;
|
|
right: -50%;
|
|
width: 200%;
|
|
height: 200%;
|
|
background: radial-gradient(circle at 70% 30%, var(--accent-bg)) 0%, transparent 50%);
|
|
animation: rotate 30s linear infinite;
|
|
}
|
|
|
|
.header-content {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.page-title {
|
|
font-size: 2.5rem;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
margin-bottom: 1rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.server-icon {
|
|
width: 60px;
|
|
height: 60px;
|
|
background: var(--bg-secondary);
|
|
border-radius: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: var(--shadow-light);
|
|
}
|
|
|
|
.page-subtitle {
|
|
font-size: 1.125rem;
|
|
color: var(--text-secondary);
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.tuning-panel {
|
|
background: var(--bg-secondary);
|
|
border-radius: 16px;
|
|
box-shadow: var(--shadow-light)), var(--shadow-medium);
|
|
border: 1px solid var(--border-light);
|
|
overflow: hidden;
|
|
animation: fadeInUp 0.5s ease-out;
|
|
}
|
|
|
|
.panel-header {
|
|
background: var(--bg-gradient);
|
|
padding: 1.5rem 2rem;
|
|
border-bottom: 1px solid var(--border-light);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.panel-title {
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.status-indicator {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 0.875rem;
|
|
padding: 0.5rem 1rem;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-light);
|
|
border-radius: 8px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.status-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: var(--accent-color);
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
.tuning-form {
|
|
padding: 2rem;
|
|
}
|
|
|
|
.form-section {
|
|
margin-bottom: 3rem;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 1.125rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-bottom: 1.5rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.section-icon {
|
|
width: 32px;
|
|
height: 32px;
|
|
background: var(--accent-bg);
|
|
border-radius: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--accent-color);
|
|
}
|
|
|
|
.form-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.form-label {
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
font-size: 0.875rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.tooltip-icon {
|
|
color: var(--text-muted);
|
|
font-size: 0.875rem;
|
|
cursor: help;
|
|
position: relative;
|
|
}
|
|
|
|
.tooltip-icon:hover .tooltip-content {
|
|
display: block;
|
|
}
|
|
|
|
.tooltip-content {
|
|
display: none;
|
|
position: absolute;
|
|
bottom: 100%;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
background: var(--text-primary);
|
|
color: white;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 6px;
|
|
font-size: 0.75rem;
|
|
white-space: nowrap;
|
|
margin-bottom: 0.5rem;
|
|
z-index: 10;
|
|
}
|
|
|
|
.tooltip-content::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
border: 5px solid transparent;
|
|
border-top-color: var(--text-primary);
|
|
}
|
|
|
|
.form-control {
|
|
width: 100%;
|
|
padding: 0.75rem 1rem;
|
|
border: 1px solid var(--border-light);
|
|
border-radius: 8px;
|
|
font-size: 0.875rem;
|
|
transition: all 0.3s ease;
|
|
background: var(--bg-secondary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.form-control:focus {
|
|
outline: none;
|
|
border-color: var(--accent-focus);
|
|
box-shadow: var(--accent-shadow);
|
|
}
|
|
|
|
.select-control {
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
|
|
background-position: right 0.5rem center;
|
|
background-repeat: no-repeat;
|
|
background-size: 1.5em 1.5em;
|
|
padding-right: 2.5rem;
|
|
}
|
|
|
|
.input-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.input-addon {
|
|
font-size: 0.875rem;
|
|
color: var(--text-secondary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.current-value {
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.action-buttons {
|
|
display: flex;
|
|
gap: 1rem;
|
|
margin-top: 2rem;
|
|
padding-top: 2rem;
|
|
border-top: 1px solid var(--border-light);
|
|
}
|
|
|
|
.btn {
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: 8px;
|
|
font-weight: 500;
|
|
font-size: 0.875rem;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
border: none;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent-color);
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: var(--accent-hover);
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--accent-shadow);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--bg-secondary);
|
|
color: var(--text-secondary);
|
|
border: 1px solid var(--border-light);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: var(--bg-hover);
|
|
border-color: var(--border-color);
|
|
}
|
|
|
|
.loading-spinner {
|
|
width: 20px;
|
|
height: 20px;
|
|
border: 2px solid var(--border-light);
|
|
border-top: 2px solid var(--accent-color);
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
.alert {
|
|
padding: 1rem 1.5rem;
|
|
border-radius: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
margin-top: 1rem;
|
|
animation: slideIn 0.3s ease-out;
|
|
}
|
|
|
|
.alert-icon {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.alert-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.alert-title {
|
|
font-weight: 600;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.alert-message {
|
|
font-size: 0.875rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.alert-success {
|
|
background: var(--success-bg);
|
|
border: 1px solid var(--success-border);
|
|
color: var(--success-color);
|
|
}
|
|
|
|
.alert-error {
|
|
background: var(--danger-bg);
|
|
border: 1px solid var(--danger-border);
|
|
color: var(--danger-color);
|
|
}
|
|
|
|
.alert-warning {
|
|
background: var(--warning-bg);
|
|
border: 1px solid var(--warning-border);
|
|
color: var(--warning-color);
|
|
}
|
|
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 1rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.stat-card {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-light);
|
|
border-radius: 12px;
|
|
padding: 1.5rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.5; }
|
|
}
|
|
|
|
@keyframes rotate {
|
|
from { transform: rotate(0deg); }
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
@keyframes fadeInDown {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(-10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.form-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.stats-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.page-title {
|
|
font-size: 2rem;
|
|
}
|
|
}
|
|
</style>
|
|
|
|
<div class="modern-container" ng-controller="litespeedTuning">
|
|
<div class="page-header">
|
|
<div class="header-content">
|
|
<h1 class="page-title">
|
|
<div class="server-icon">
|
|
<i class="fas fa-server" style="color: var(--accent-color); font-size: 1.75rem;"></i>
|
|
</div>
|
|
{% trans "LiteSpeed Tuning" %}
|
|
</h1>
|
|
<p class="page-subtitle">
|
|
{% trans "Optimize your LiteSpeed web server performance by adjusting key parameters to match your website requirements" %}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Stats Overview -->
|
|
<div class="stats-grid">
|
|
<div class="stat-card">
|
|
<div class="stat-value">{$ maxConnections || '-' $}</div>
|
|
<div class="stat-label">{% trans "Max Connections" %}</div>
|
|
</div>
|
|
<div class="stat-card">
|
|
<div class="stat-value">
|
|
<span ng-if="connectionTimeOut">{$ connectionTimeOut $}<span style="font-size: 1rem; color: var(--text-muted);">s</span></span>
|
|
<span ng-if="!connectionTimeOut">-</span>
|
|
</div>
|
|
<div class="stat-label">{% trans "Connection Timeout" %}</div>
|
|
</div>
|
|
<div class="stat-card">
|
|
<div class="stat-value">
|
|
<span ng-if="cacheSizeInMemory !== undefined">{$ cacheSizeInMemory $}<span style="font-size: 1rem; color: var(--text-muted);">M</span></span>
|
|
<span ng-if="cacheSizeInMemory === undefined">-</span>
|
|
</div>
|
|
<div class="stat-label">{% trans "Cache Size" %}</div>
|
|
</div>
|
|
<div class="stat-card">
|
|
<div class="stat-value">{$ gzipStatus || '-' $}</div>
|
|
<div class="stat-label">{% trans "GZIP Status" %}</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tuning-panel">
|
|
<div class="panel-header">
|
|
<h2 class="panel-title">
|
|
<i class="fas fa-sliders-h"></i>
|
|
{% trans "Server Configuration" %}
|
|
</h2>
|
|
<div class="status-indicator">
|
|
<span class="status-dot"></span>
|
|
{% trans "LiteSpeed Running" %}
|
|
</div>
|
|
</div>
|
|
|
|
<form class="tuning-form">
|
|
<!-- Connection Settings -->
|
|
<div class="form-section">
|
|
<h3 class="section-title">
|
|
<div class="section-icon">
|
|
<i class="fas fa-network-wired"></i>
|
|
</div>
|
|
{% trans "Connection Settings" %}
|
|
</h3>
|
|
|
|
<div class="form-grid">
|
|
<div class="form-group">
|
|
<label class="form-label">
|
|
{% trans "Max Connections" %}
|
|
<span class="tooltip-icon">
|
|
<i class="fas fa-question-circle"></i>
|
|
<div class="tooltip-content">
|
|
{% trans "Maximum number of concurrent connections" %}
|
|
</div>
|
|
</span>
|
|
</label>
|
|
<input type="number" class="form-control" ng-model="maxConnections" min="1" required>
|
|
<span class="current-value">{% trans "Recommended: 10000-20000 for most servers" %}</span>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="form-label">
|
|
{% trans "Max SSL Connections" %}
|
|
<span class="tooltip-icon">
|
|
<i class="fas fa-question-circle"></i>
|
|
<div class="tooltip-content">
|
|
{% trans "Maximum number of SSL connections" %}
|
|
</div>
|
|
</span>
|
|
</label>
|
|
<input type="number" class="form-control" ng-model="maxSSLConnections" min="1" required>
|
|
<span class="current-value">{% trans "Usually 50% of max connections" %}</span>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="form-label">
|
|
{% trans "Connection Timeout" %}
|
|
<span class="tooltip-icon">
|
|
<i class="fas fa-question-circle"></i>
|
|
<div class="tooltip-content">
|
|
{% trans "Time in seconds before closing idle connections" %}
|
|
</div>
|
|
</span>
|
|
</label>
|
|
<div class="input-group">
|
|
<input type="number" class="form-control" ng-model="connectionTimeOut" min="1" required>
|
|
<span class="input-addon">{% trans "seconds" %}</span>
|
|
</div>
|
|
<span class="current-value">{% trans "Default: 300 seconds" %}</span>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="form-label">
|
|
{% trans "Keep-Alive Timeout" %}
|
|
<span class="tooltip-icon">
|
|
<i class="fas fa-question-circle"></i>
|
|
<div class="tooltip-content">
|
|
{% trans "Time to keep connections alive" %}
|
|
</div>
|
|
</span>
|
|
</label>
|
|
<div class="input-group">
|
|
<input type="number" class="form-control" ng-model="keepAliveTimeOut" min="1" required>
|
|
<span class="input-addon">{% trans "seconds" %}</span>
|
|
</div>
|
|
<span class="current-value">{% trans "Default: 5 seconds" %}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Performance Settings -->
|
|
<div class="form-section">
|
|
<h3 class="section-title">
|
|
<div class="section-icon">
|
|
<i class="fas fa-tachometer-alt"></i>
|
|
</div>
|
|
{% trans "Performance Settings" %}
|
|
</h3>
|
|
|
|
<div class="form-grid">
|
|
<div class="form-group">
|
|
<label class="form-label">
|
|
{% trans "Cache Size in Memory" %}
|
|
<span class="tooltip-icon">
|
|
<i class="fas fa-question-circle"></i>
|
|
<div class="tooltip-content">
|
|
{% trans "Amount of RAM allocated for caching" %}
|
|
</div>
|
|
</span>
|
|
</label>
|
|
<div class="input-group">
|
|
<input type="number" class="form-control" ng-model="cacheSizeInMemory" min="0" required>
|
|
<span class="input-addon">MB</span>
|
|
</div>
|
|
<span class="current-value">{% trans "0 = Auto (recommended)" %}</span>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="form-label">
|
|
{% trans "GZIP Compression" %}
|
|
<span class="tooltip-icon">
|
|
<i class="fas fa-question-circle"></i>
|
|
<div class="tooltip-content">
|
|
{% trans "Compress responses to reduce bandwidth" %}
|
|
</div>
|
|
</span>
|
|
</label>
|
|
<select ng-model="gzipCompression" class="form-control select-control">
|
|
<option value="Enable">{% trans "Enable" %}</option>
|
|
<option value="Disable">{% trans "Disable" %}</option>
|
|
</select>
|
|
<span class="current-value">{% trans "Currently:" %} {$ gzipStatus $}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Alerts -->
|
|
<div id="canNotFetchTuning" class="alert alert-warning" style="display: none;">
|
|
<i class="fas fa-exclamation-triangle alert-icon"></i>
|
|
<div class="alert-content">
|
|
<div class="alert-title">{% trans "Cannot Fetch Current Values" %}</div>
|
|
<div class="alert-message">
|
|
{% trans "Unable to retrieve current settings, but you can still submit new changes." %}
|
|
<span ng-if="errMessage"> Error: {$ errMessage $}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="notTuned" class="alert alert-error" style="display: none;">
|
|
<i class="fas fa-times-circle alert-icon"></i>
|
|
<div class="alert-content">
|
|
<div class="alert-title">{% trans "Configuration Failed" %}</div>
|
|
<div class="alert-message">{$ errMessage $}</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="tuned" class="alert alert-success" style="display: none;">
|
|
<i class="fas fa-check-circle alert-icon"></i>
|
|
<div class="alert-content">
|
|
<div class="alert-title">{% trans "Success!" %}</div>
|
|
<div class="alert-message">{% trans "LiteSpeed server has been successfully tuned with your new settings." %}</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Action Buttons -->
|
|
<div class="action-buttons">
|
|
<button type="button" ng-click="saveTuningSettings()" class="btn btn-primary">
|
|
<i class="fas fa-save"></i>
|
|
{% trans "Apply Settings" %}
|
|
<span id="tuningLoading" class="loading-spinner" style="display: none;"></span>
|
|
</button>
|
|
<button type="button" class="btn btn-secondary" onclick="window.location.reload()">
|
|
<i class="fas fa-undo"></i>
|
|
{% trans "Reset Form" %}
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
{% block footer_scripts %}
|
|
<script src="{% static 'tuning/tuning.js' %}"></script>
|
|
{% endblock %} |