2016-08-02 13:32:06 +00:00
|
|
|
/// <reference types="q" />
|
|
|
|
import * as plugins from "./smartnginx.plugins";
|
|
|
|
/**
|
|
|
|
* the host config data that NginxHost needs to create a valid instance
|
|
|
|
*/
|
2016-08-02 21:47:27 +00:00
|
|
|
export interface IHostConfigData {
|
2016-08-02 13:32:06 +00:00
|
|
|
hostName: string;
|
|
|
|
type: hostTypes;
|
|
|
|
destination: string;
|
|
|
|
}
|
|
|
|
export declare enum hostTypes {
|
|
|
|
reverseProxy = 0,
|
|
|
|
static = 1,
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* manages a single nginx host
|
|
|
|
*/
|
|
|
|
export declare class NginxHost {
|
|
|
|
hostName: string;
|
|
|
|
type: hostTypes;
|
|
|
|
destination: string;
|
|
|
|
configString: string;
|
2016-08-02 21:47:27 +00:00
|
|
|
constructor(optionsArg: IHostConfigData);
|
2016-08-02 13:32:06 +00:00
|
|
|
deploy(certInstanceArg: plugins.cert.Cert): plugins.q.Promise<{}>;
|
|
|
|
}
|