@pushrocks/smartnginx
Version:
control nginx from node, TypeScript ready
27 lines (26 loc) • 680 B
TypeScript
import { SmartNginx } from './smartnginx.classes.smartnginx';
import { IHostConfig } from './interfaces/hostconfig';
export declare enum hostTypes {
reverseProxy = 0
}
/**
* manages a single nginx host
*/
export declare class NginxHost implements IHostConfig {
/**
* smartnginxInstance this NginHost belongs to
*/
smartnginxInstance: SmartNginx;
hostName: string;
destination: string;
destinationPort: number;
configString: string;
privateKey: string;
publicKey: string;
constructor(smartnginxInstanceArg: SmartNginx, optionsArg: IHostConfig);
/**
*
* @param certInstanceArg
*/
deploy(): Promise<void>;
}