2016-07-12 21:20:08 +00:00
|
|
|
/// <reference types="q" />
|
|
|
|
import * as plugins from "./smartnginx.plugins";
|
2016-08-02 13:32:06 +00:00
|
|
|
import { NginxHost } from "./smartnginx.classes.nginxhost";
|
2016-07-24 23:54:36 +00:00
|
|
|
import { NginxProcess } from "./smartnginx.classes.nginxprocess";
|
2016-08-02 13:32:06 +00:00
|
|
|
/**
|
|
|
|
* main class that manages a NginxInstance
|
|
|
|
*/
|
2016-07-06 01:14:44 +00:00
|
|
|
export declare class NginxConfig {
|
2016-08-02 13:32:06 +00:00
|
|
|
hosts: NginxHost[];
|
2016-07-12 21:20:08 +00:00
|
|
|
cert: plugins.cert.Cert;
|
2016-07-24 23:54:36 +00:00
|
|
|
nginxProcess: NginxProcess;
|
2016-07-06 04:33:31 +00:00
|
|
|
isDeployed: boolean;
|
2016-07-13 11:04:48 +00:00
|
|
|
constructor(optionsArg: plugins.cert.ICertConstructorOptions);
|
2016-08-02 13:32:06 +00:00
|
|
|
addHost(nginxHostArg: NginxHost): void;
|
|
|
|
listHosts(): NginxHost[];
|
|
|
|
removeHost(nginxHostArg: NginxHost): void;
|
2016-07-21 00:24:54 +00:00
|
|
|
clean(): void;
|
2016-07-24 23:54:36 +00:00
|
|
|
deploy(): plugins.q.Promise<{}>;
|
2016-07-06 01:14:44 +00:00
|
|
|
}
|