1Panel/frontend/src/api/interface/nginx.ts
zhengkunwang 4720bda29b
Some checks failed
sync2gitee / repo-sync (push) Failing after -9m27s
feat: OpenResty 增加默认扩展 (#6556)
2024-09-23 18:32:20 +08:00

53 lines
1.1 KiB
Go

export namespace Nginx {
export interface NginxScopeReq {
scope: string;
}
export interface NginxParam {
name: string;
params: string[];
}
export interface NginxConfigReq {
operate: string;
websiteId?: number;
scope: string;
params?: any;
}
export interface NginxStatus {
accepts: string;
handled: string;
active: string;
requests: string;
reading: string;
writing: string;
waiting: string;
}
export interface NginxFileUpdate {
content: string;
backup: boolean;
}
export interface NginxBuildReq {
taskID: string;
mirror: string;
}
export interface NginxModule {
name: string;
script?: string;
packages?: string;
enable: boolean;
params: string;
}
export interface NginxBuildConfig {
mirror: string;
modules: NginxModule[];
}
export interface NginxModuleUpdate extends NginxModule {
operate: string;
}
}