mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-11 01:01:09 +08:00
【上线】雷池WAF站点和雷池WAF部署
This commit is contained in:
@@ -77,6 +77,8 @@ export default defineComponent({
|
||||
{ label: $t('t_15_1745735768976'), value: 'tencentcloud-cos', category: 'tencentcloud', icon: 'tencentcloud' },
|
||||
{ label: $t('t_16_1745735766712'), value: 'aliyun-cdn', category: 'aliyun', icon: 'aliyun' },
|
||||
{ label: $t('t_2_1746697487164'), value: 'aliyun-oss', category: 'aliyun', icon: 'aliyun' },
|
||||
{ label: $t('雷池WAF站点'), value: 'safeline-site', category: 'safeline', icon: 'safeline' },
|
||||
{ label: $t('雷池WAF'), value: 'safeline-panel', category: 'safeline', icon: 'safeline' },
|
||||
]
|
||||
const certOptions = ref<{ label: string; value: string }[]>([]) // 证书选项
|
||||
const current = ref(1) // 当前步骤
|
||||
@@ -173,10 +175,11 @@ export default defineComponent({
|
||||
break
|
||||
case 'btwaf-site':
|
||||
case 'btpanel-site':
|
||||
case 'safeline-site':
|
||||
config.push(
|
||||
...[
|
||||
useFormInput($t('网站名'), 'siteName', {
|
||||
placeholder: $t('请输入网址名'),
|
||||
useFormInput($t('t_0_1747296173751'), 'siteName', {
|
||||
placeholder: $t('t_1_1747296175494'),
|
||||
onInput: (val: string) => (param.value.siteName = val.trim()),
|
||||
}),
|
||||
],
|
||||
@@ -355,6 +358,7 @@ export default defineComponent({
|
||||
<NTabPane name="1panel" tab={$t('t_9_1747271284765')} />
|
||||
<NTabPane name="tencentcloud" tab={$t('t_3_1747019616129')} />
|
||||
<NTabPane name="aliyun" tab={$t('t_2_1747019616224')} />
|
||||
<NTabPane name="safeline" tab={$t('雷池WAF')} />
|
||||
</NTabs>
|
||||
</div>
|
||||
<div class={styles.rightPanel}>
|
||||
|
||||
@@ -39,7 +39,7 @@ export default {
|
||||
// btpanel相关字段
|
||||
siteName: {
|
||||
required: true,
|
||||
message: $t('请输入网址名'),
|
||||
message: $t('t_1_1747296175494'),
|
||||
trigger: 'input',
|
||||
},
|
||||
// 1panel相关字段
|
||||
|
||||
@@ -227,7 +227,9 @@ export interface DeployConfig<
|
||||
| 'tencentcloud-cdn'
|
||||
| 'tencentcloud-cos'
|
||||
| 'aliyun-cdn'
|
||||
| 'aliyun-oss',
|
||||
| 'aliyun-oss'
|
||||
| 'safeline-site'
|
||||
| 'safeline-panel',
|
||||
> {
|
||||
provider: T
|
||||
provider_id: string
|
||||
@@ -246,10 +248,12 @@ export interface DeploySSHConfig {
|
||||
}
|
||||
|
||||
// 部署本地节点配置
|
||||
export interface DeployLocalConfig extends DeploySSHConfig {}
|
||||
export interface DeployLocalConfig extends DeploySSHConfig {
|
||||
[key: string]: unknown
|
||||
}
|
||||
|
||||
// 部署节点配置(宝塔面板)
|
||||
export interface DeployBTPanelConfig {
|
||||
export interface DeployBTPanelSiteConfig {
|
||||
siteName: string
|
||||
}
|
||||
|
||||
@@ -257,6 +261,10 @@ export interface DeployBTPanelConfig {
|
||||
export interface Deploy1PanelConfig {
|
||||
site_id: string
|
||||
}
|
||||
// 部署节点配置(1Panel站点)
|
||||
export interface Deploy1PanelSiteConfig extends Deploy1PanelConfig {
|
||||
[key: string]: unknown
|
||||
}
|
||||
|
||||
// 部署腾讯云CDN/阿里云CDN
|
||||
export interface DeployCDNConfig {
|
||||
@@ -270,9 +278,28 @@ export interface DeployStorageConfig {
|
||||
bucket: string
|
||||
}
|
||||
|
||||
// 部署节点配置(雷池WAF)
|
||||
export interface DeploySafelineConfig {
|
||||
[key: string]: unknown
|
||||
}
|
||||
|
||||
// 部署节点配置(雷池WAF站点)
|
||||
export interface DeploySafelineSiteConfig extends DeployBTPanelSiteConfig {
|
||||
[key: string]: unknown
|
||||
}
|
||||
|
||||
// 部署节点配置
|
||||
export type DeployNodeConfig = DeployConfig<
|
||||
DeploySSHConfig | DeployLocalConfig | DeployBTPanelConfig | Deploy1PanelConfig | DeployCDNConfig | DeployStorageConfig
|
||||
| DeploySSHConfig // 部署节点配置(ssh)
|
||||
| DeployLocalConfig // 部署节点配置(本地)
|
||||
| DeployBTPanelConfig // 部署节点配置(宝塔面板)
|
||||
| DeployBTPanelSiteConfig // 部署节点配置(宝塔面板站点)
|
||||
| Deploy1PanelConfig // 部署节点配置(1Panel)
|
||||
| Deploy1PanelSiteConfig // 部署节点配置(1Panel站点)
|
||||
| DeployCDNConfig // 部署节点配置(腾讯云CDN/阿里云CDN)
|
||||
| DeployStorageConfig // 部署节点配置(腾讯云COS/阿里云OSS)
|
||||
| DeploySafelineConfig // 部署节点配置(雷池WAF)
|
||||
| DeploySafelineSiteConfig // 部署节点配置(雷池WAF站点)
|
||||
>
|
||||
|
||||
// 部署节点输入配置
|
||||
|
||||
Reference in New Issue
Block a user