Files
panel/internal/apps/apache/request.go
T
耗子 0dfe577fc4 feat: Apache 添加参数调优
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-19 22:29:44 +08:00

22 lines
1.0 KiB
Go

package apache
type UpdateConfig struct {
Config string `form:"config" json:"config" validate:"required"`
}
// ConfigTune Apache 配置调整
type ConfigTune struct {
// MPM 事件模型
StartServers string `form:"start_servers" json:"start_servers"`
MinSpareThreads string `form:"min_spare_threads" json:"min_spare_threads"`
MaxSpareThreads string `form:"max_spare_threads" json:"max_spare_threads"`
ThreadsPerChild string `form:"threads_per_child" json:"threads_per_child"`
MaxRequestWorkers string `form:"max_request_workers" json:"max_request_workers"`
MaxConnectionsPerChild string `form:"max_connections_per_child" json:"max_connections_per_child"`
// 连接设置
Timeout string `form:"timeout" json:"timeout"`
KeepAlive string `form:"keep_alive" json:"keep_alive"`
MaxKeepAliveRequests string `form:"max_keep_alive_requests" json:"max_keep_alive_requests"`
KeepAliveTimeout string `form:"keep_alive_timeout" json:"keep_alive_timeout"`
}