feat: 新增 Apache、Tomcat,总计 44 个组件

- Apache: MPM 模型(event/worker/prefork)、SSL、反向代理、模块管理、Gzip
- Tomcat: 连接器配置、线程池、AJP、SSL、JVM 内存(Xms/Xmx)、GC 策略
This commit is contained in:
cnbugs
2026-07-18 19:59:57 +08:00
parent 2916dce148
commit 3d6501efd5
5 changed files with 861 additions and 3 deletions
+8 -1
View File
@@ -1,5 +1,7 @@
// ============ 代理与Web ============
import { nginxSchema, generateNginxConf } from './nginx'
import { apacheSchema, generateApacheConf } from './apache'
import { tomcatSchema, generateTomcatServerXml } from './tomcat'
// ============ 缓存 ============
import { redisSchema, generateRedisConf } from './redis'
@@ -79,6 +81,8 @@ import { ansiblePlaybookSchema, generateAnsiblePlaybookYaml } from './ansible-pl
export const schemas = {
// 代理与Web
nginx: nginxSchema,
apache: apacheSchema,
tomcat: tomcatSchema,
// 缓存
redis: redisSchema,
// 数据库
@@ -143,6 +147,8 @@ export const schemas = {
export const generators = {
nginx: generateNginxConf,
apache: generateApacheConf,
tomcat: generateTomcatServerXml,
redis: generateRedisConf,
mysql: generateMysqlConf,
mongodb: generateMongodbConf,
@@ -194,7 +200,7 @@ export const categories = [
{
name: '代理与Web',
icon: 'Monitor',
items: ['nginx'],
items: ['nginx', 'apache', 'tomcat'],
},
{
name: '缓存',
@@ -299,6 +305,7 @@ export function getLanguage(format) {
toml: 'toml',
properties: 'properties',
ini: 'ini',
xml: 'xml',
}
return map[format] || 'plaintext'
}