feat: 新增 Apache、Tomcat,总计 44 个组件
- Apache: MPM 模型(event/worker/prefork)、SSL、反向代理、模块管理、Gzip - Tomcat: 连接器配置、线程池、AJP、SSL、JVM 内存(Xms/Xmx)、GC 策略
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user