47 lines
640 B
TypeScript
47 lines
640 B
TypeScript
|
import * as plugins from "./smartnginx.plugins";
|
||
|
|
||
|
export enum ZoneTypes {
|
||
|
|
||
|
}
|
||
|
|
||
|
export class NginxConfig {
|
||
|
zones:NginxZone[];
|
||
|
constructor(){
|
||
|
|
||
|
};
|
||
|
|
||
|
// interact with Zones
|
||
|
addZone(zoneArg:NginxZone){
|
||
|
|
||
|
}
|
||
|
listZones():NginxZone[] {
|
||
|
return this.zones;
|
||
|
};
|
||
|
removeZones(zoneArg:NginxZone){
|
||
|
|
||
|
}
|
||
|
|
||
|
// handle deployment of zones
|
||
|
deploy(){
|
||
|
|
||
|
};
|
||
|
nginxStart(){
|
||
|
|
||
|
};
|
||
|
nginxStop(){
|
||
|
|
||
|
};
|
||
|
};
|
||
|
|
||
|
export class NginxZone {
|
||
|
domain
|
||
|
constructor(optionsArg:{
|
||
|
zoneName:string,
|
||
|
type:ZoneTypes,
|
||
|
destination:string
|
||
|
}){
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|
||
|
let mynginx = new NginxConfig();
|