26 lines
617 B
TypeScript
26 lines
617 B
TypeScript
/// <reference types="q" />
|
|
import * as plugins from "./smartnginx.plugins";
|
|
/**
|
|
* the host config data that NginxHost needs to create a valid instance
|
|
*/
|
|
export interface hostConfigData {
|
|
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;
|
|
constructor(optionsArg: hostConfigData);
|
|
deploy(certInstanceArg: plugins.cert.Cert): plugins.q.Promise<{}>;
|
|
}
|