compile
This commit is contained in:
parent
e0757600b6
commit
92307b187d
7
dist/smartnginx.classes.nginxconfig.d.ts
vendored
7
dist/smartnginx.classes.nginxconfig.d.ts
vendored
@ -1,10 +1,13 @@
|
|||||||
|
/// <reference types="q" />
|
||||||
|
import * as plugins from "./smartnginx.plugins";
|
||||||
import { NginxZone } from "./smartnginx.classes.nginxzone";
|
import { NginxZone } from "./smartnginx.classes.nginxzone";
|
||||||
export declare class NginxConfig {
|
export declare class NginxConfig {
|
||||||
zones: NginxZone[];
|
zones: NginxZone[];
|
||||||
|
cert: plugins.cert.Cert;
|
||||||
isDeployed: boolean;
|
isDeployed: boolean;
|
||||||
constructor();
|
constructor(optionsArg: plugins.cert.CertConstructorOptions);
|
||||||
addZone(zoneArg: NginxZone): void;
|
addZone(zoneArg: NginxZone): void;
|
||||||
listZones(): NginxZone[];
|
listZones(): NginxZone[];
|
||||||
removeZones(zoneArg: NginxZone): void;
|
removeZones(zoneArg: NginxZone): void;
|
||||||
deploy(nginxRestartArg?: boolean): void;
|
deploy(nginxRestartArg?: boolean): plugins.q.Promise<{}>;
|
||||||
}
|
}
|
||||||
|
34
dist/smartnginx.classes.nginxconfig.js
vendored
34
dist/smartnginx.classes.nginxconfig.js
vendored
@ -5,9 +5,15 @@ var command = require("./smartnginx.command");
|
|||||||
var snippets = require("./smartnginx.snippets");
|
var snippets = require("./smartnginx.snippets");
|
||||||
var allConfigs = [];
|
var allConfigs = [];
|
||||||
var NginxConfig = (function () {
|
var NginxConfig = (function () {
|
||||||
function NginxConfig() {
|
function NginxConfig(optionsArg) {
|
||||||
this.zones = [];
|
this.zones = [];
|
||||||
this.isDeployed = false;
|
this.isDeployed = false;
|
||||||
|
this.cert = new plugins.cert.Cert({
|
||||||
|
cfEmail: optionsArg.cfEmail,
|
||||||
|
cfKey: optionsArg.cfKey,
|
||||||
|
sslDir: optionsArg.sslDir,
|
||||||
|
gitOriginRepo: optionsArg.gitOriginRepo
|
||||||
|
});
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
// interact with Zones
|
// interact with Zones
|
||||||
@ -22,30 +28,42 @@ var NginxConfig = (function () {
|
|||||||
};
|
};
|
||||||
// handle deployment of zones
|
// handle deployment of zones
|
||||||
NginxConfig.prototype.deploy = function (nginxRestartArg) {
|
NginxConfig.prototype.deploy = function (nginxRestartArg) {
|
||||||
|
var _this = this;
|
||||||
if (nginxRestartArg === void 0) { nginxRestartArg = false; }
|
if (nginxRestartArg === void 0) { nginxRestartArg = false; }
|
||||||
|
var done = plugins.q.defer();
|
||||||
plugins.smartfile.fs.removeSync(paths.nginxConfigBase);
|
plugins.smartfile.fs.removeSync(paths.nginxConfigBase);
|
||||||
plugins.smartfile.fs.ensureDirSync(paths.nginxConfigBase);
|
plugins.smartfile.fs.ensureDirSync(paths.nginxConfigBase);
|
||||||
plugins.smartfile.fs.ensureDirSync(paths.nginxZoneBase);
|
plugins.smartfile.fs.ensureDirSync(paths.nginxZoneBase);
|
||||||
|
plugins.smartfile.fs.ensureDirSync(paths.nginxCertBase);
|
||||||
for (var _i = 0, allConfigs_1 = allConfigs; _i < allConfigs_1.length; _i++) {
|
for (var _i = 0, allConfigs_1 = allConfigs; _i < allConfigs_1.length; _i++) {
|
||||||
var config = allConfigs_1[_i];
|
var config = allConfigs_1[_i];
|
||||||
config.isDeployed = false;
|
config.isDeployed = false;
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
this.isDeployed = true;
|
this.isDeployed = true;
|
||||||
|
// write base config
|
||||||
|
plugins.smartfile.memory.toFsSync(snippets.getBaseConfigString(), plugins.path.join(paths.nginxConfigBase, "nginx.conf"));
|
||||||
|
// deploy zones
|
||||||
|
var promiseArray = [];
|
||||||
for (var _a = 0, _b = this.zones; _a < _b.length; _a++) {
|
for (var _a = 0, _b = this.zones; _a < _b.length; _a++) {
|
||||||
var zone = _b[_a];
|
var zone = _b[_a];
|
||||||
zone.deploy();
|
promiseArray.push(zone.deploy(this.cert));
|
||||||
}
|
|
||||||
;
|
|
||||||
plugins.smartfile.memory.toFsSync(snippets.getBaseConfigString(), plugins.path.join(paths.nginxConfigBase, "nginx.conf"));
|
|
||||||
if (nginxRestartArg) {
|
|
||||||
command.restart(this);
|
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
plugins.q.all(promiseArray)
|
||||||
|
.then(function () {
|
||||||
|
// restart nginx
|
||||||
|
if (nginxRestartArg) {
|
||||||
|
command.restart(_this);
|
||||||
|
}
|
||||||
|
;
|
||||||
|
done.resolve();
|
||||||
|
});
|
||||||
|
return done.promise;
|
||||||
};
|
};
|
||||||
;
|
;
|
||||||
return NginxConfig;
|
return NginxConfig;
|
||||||
}());
|
}());
|
||||||
exports.NginxConfig = NginxConfig;
|
exports.NginxConfig = NginxConfig;
|
||||||
;
|
;
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRuZ2lueC5jbGFzc2VzLm5naW54Y29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRuZ2lueC5jbGFzc2VzLm5naW54Y29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxJQUFZLE9BQU8sV0FBTSxzQkFBc0IsQ0FBQyxDQUFBO0FBQ2hELElBQVksS0FBSyxXQUFNLG9CQUFvQixDQUFDLENBQUE7QUFDNUMsSUFBWSxPQUFPLFdBQU0sc0JBQXNCLENBQUMsQ0FBQTtBQUNoRCxJQUFZLFFBQVEsV0FBTSx1QkFDMUIsQ0FBQyxDQURnRDtBQUVqRCxJQUFJLFVBQVUsR0FBaUIsRUFBRSxDQUFDO0FBRWxDO0lBR0k7UUFGQSxVQUFLLEdBQWUsRUFBRSxDQUFDO1FBQ3ZCLGVBQVUsR0FBVyxLQUFLLENBQUM7SUFHM0IsQ0FBQzs7SUFFRCxzQkFBc0I7SUFDdEIsNkJBQU8sR0FBUCxVQUFRLE9BQWlCO1FBQ3JCLElBQUksQ0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LElBQUksQ0FBQyxPQUFPLENBQUM7SUFDeEIsQ0FBQzs7SUFDTCxrQkFBQztBQUFELENBQUMsQUF4REQsSUF3REM7QUF4RFksbUJBQVcsY0F3RHZCLENBQUE7QUFBQSxDQUFDIn0=
|
4
dist/smartnginx.classes.nginxzone.d.ts
vendored
4
dist/smartnginx.classes.nginxzone.d.ts
vendored
@ -1,3 +1,5 @@
|
|||||||
|
/// <reference types="q" />
|
||||||
|
import * as plugins from "./smartnginx.plugins";
|
||||||
export declare enum zoneTypes {
|
export declare enum zoneTypes {
|
||||||
reverseProxy = 0,
|
reverseProxy = 0,
|
||||||
static = 1,
|
static = 1,
|
||||||
@ -12,5 +14,5 @@ export declare class NginxZone {
|
|||||||
type: zoneTypes;
|
type: zoneTypes;
|
||||||
destination: string;
|
destination: string;
|
||||||
});
|
});
|
||||||
deploy(): void;
|
deploy(certInstanceArg: plugins.cert.Cert): plugins.q.Promise<{}>;
|
||||||
}
|
}
|
||||||
|
10
dist/smartnginx.classes.nginxzone.js
vendored
10
dist/smartnginx.classes.nginxzone.js
vendored
@ -15,13 +15,19 @@ var NginxZone = (function () {
|
|||||||
this.configString = snippets.getZoneConfigString(optionsArg.zoneName, optionsArg.destination);
|
this.configString = snippets.getZoneConfigString(optionsArg.zoneName, optionsArg.destination);
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
NginxZone.prototype.deploy = function () {
|
NginxZone.prototype.deploy = function (certInstanceArg) {
|
||||||
|
var done = plugins.q.defer();
|
||||||
var filePath = plugins.path.join(paths.nginxZoneBase, this.zoneName + ".conf");
|
var filePath = plugins.path.join(paths.nginxZoneBase, this.zoneName + ".conf");
|
||||||
|
// writeConfig
|
||||||
plugins.smartfile.memory.toFsSync(this.configString, filePath);
|
plugins.smartfile.memory.toFsSync(this.configString, filePath);
|
||||||
|
// get cert
|
||||||
|
certInstanceArg.getDomainCert(this.zoneName)
|
||||||
|
.then(done.resolve);
|
||||||
|
return done.promise;
|
||||||
};
|
};
|
||||||
;
|
;
|
||||||
return NginxZone;
|
return NginxZone;
|
||||||
}());
|
}());
|
||||||
exports.NginxZone = NginxZone;
|
exports.NginxZone = NginxZone;
|
||||||
;
|
;
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRuZ2lueC5jbGFzc2VzLm5naW54em9uZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0bmdpbnguY2xhc3Nlcy5uZ2lueHpvbmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLElBQVksT0FBTyxXQUFNLHNCQUFzQixDQUFDLENBQUE7QUFDaEQsSUFBWSxLQUFLLFdBQU0sb0JBQW9CLENBQUMsQ0FBQTtBQUU1QyxJQUFZLFFBQVEsV0FBTSx1QkFDMUIsQ0FBQyxDQURnRDtBQUNqRCxXQUFZLFNBQVM7SUFDZCx5REFBWSxDQUFBO0lBQ1osNkNBQU0sQ0FBQTtBQUNiLENBQUMsRUFIVyxpQkFBUyxLQUFULGlCQUFTLFFBR3BCO0FBSEQsSUFBWSxTQUFTLEdBQVQsaUJBR1gsQ0FBQTtBQUVEO0lBS0ksbUJBQVksVUFJWDtRQUNHLElBQUksQ0FBQyxRQUFRLEdBQUcsVUFBVSxDQUFDLFFBQVEsQ0FBQztRQUNwQyxJQUFJLENBQUMsSUFBSSxHQUFHLFVBQVUsQ0FBQyxJQUFJLENBQUM7UUFDNUIsSUFBSSxDQUFDLFdBQVcsR0FBRyxVQUFVLENBQUMsV0FBVyxDQUFDO1FBQzFDLElBQUksQ0FBQyxZQUFZLEdBQUcsUUFBUSxDQUFDLG1CQUFtQixDQUFDLFVBQVUsQ0FBQyxRQUFRLEVBQUMsVUFBVSxDQUFDLFdBQVcsQ0FBQyxDQUFDO0lBQ2pHLENBQUM7O0lBQ0QsMEJBQU0sR0FBTjtRQUNJLElBQUksUUFBUSxHQUFHLE9BQU8sQ0FBQyxJQU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DO1FBQzFDLElBQUksQ0FBQyxZQUFZLEdBQUcsUUFBUSxDQUFDLG1CQUFtQixDQUFDLFVBQVUsQ0FBQyxRQUFRLEVBQUMsVUFBVSxDQUFDLFdBQVcsQ0FBQyxDQUFDO0lBQ2pHLENBQUM7O0lBQ0QsMEJBQU0sR0FBTixVQUFPLGVBQWlDO1FBQ3BDLElBQUksSUFBSSxHQUFHLE9BQU8sQ0FBQyxDQUFDLENBQUMsS0FBSyxFQUFFLENBQUM7UUFDN0IsSUFBSSxRQUFRLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLGFBQWEsRUFBQyxJQUFJLENBQUMsUUFBUSxHQUFHLE9BQU8sQ0FBQyxDQUFDO1FBQzlFLGNBQWM7UUFDZCxPQUFPLENBQUMsU0FBUyxDQUFDLE1BQU0sQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFDLFlBQVksRUFBQyxRQUFRLENBQUMsQ0FBQztRQUM5RCxXQUFXO1FBQ1gsZUFBZSxDQUFDLGFBQWEsQ0FBQyxJQUFJLENBQUMsUUFBUSxDQUFDO2FBQ3ZDLElBQUksQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLENBQUM7UUFDeEIsTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUM7SUFDeEIsQ0FBQzs7SUFDTCxnQkFBQztBQUFELENBQUMsQUF6QkQsSUF5QkM7QUF6QlksaUJBQVMsWUF5QnJCLENBQUE7QUFBQSxDQUFDIn0=
|
1
dist/smartnginx.paths.d.ts
vendored
1
dist/smartnginx.paths.d.ts
vendored
@ -1,3 +1,4 @@
|
|||||||
export declare let packageBase: string;
|
export declare let packageBase: string;
|
||||||
export declare let nginxConfigBase: string;
|
export declare let nginxConfigBase: string;
|
||||||
export declare let nginxZoneBase: string;
|
export declare let nginxZoneBase: string;
|
||||||
|
export declare let nginxCertBase: string;
|
||||||
|
5
dist/smartnginx.paths.js
vendored
5
dist/smartnginx.paths.js
vendored
@ -1,6 +1,7 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
var plugins = require("./smartnginx.plugins");
|
var plugins = require("./smartnginx.plugins");
|
||||||
exports.packageBase = plugins.path.join(__dirname, "../");
|
exports.packageBase = plugins.path.join(__dirname, "../");
|
||||||
exports.nginxConfigBase = plugins.path.join(exports.packageBase, "nginxconfig/");
|
exports.nginxConfigBase = plugins.path.join(exports.packageBase, "nginxconfig");
|
||||||
exports.nginxZoneBase = plugins.path.join(exports.nginxConfigBase, "zones");
|
exports.nginxZoneBase = plugins.path.join(exports.nginxConfigBase, "zones");
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRuZ2lueC5wYXRocy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0bmdpbngucGF0aHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLElBQVksT0FBTyxXQUFNLHNCQUV6QixDQUFDLENBRjhDO0FBRXBDLG1CQUFXLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsU0FBUyxFQUFDLEtBQUssQ0FBQyxDQUFDO0FBQ2pELHVCQUFlLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsbUJBQVcsRUFBQyxjQUFjLENBQUMsQ0FBQztBQUNoRSxxQkFBYSxHQUFHLE9BQU8sQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLHVCQUFlLEVBQUMsT0FBTyxDQUFDLENBQUMifQ==
|
exports.nginxCertBase = plugins.path.join(exports.nginxConfigBase, "cert");
|
||||||
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRuZ2lueC5wYXRocy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0bmdpbngucGF0aHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLElBQVksT0FBTyxXQUFNLHNCQUV6QixDQUFDLENBRjhDO0FBRXBDLG1CQUFXLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsU0FBUyxFQUFDLEtBQUssQ0FBQyxDQUFDO0FBQ2pELHVCQUFlLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsbUJBQVcsRUFBQyxhQUFhLENBQUMsQ0FBQztBQUMvRCxxQkFBYSxHQUFHLE9BQU8sQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLHVCQUFlLEVBQUMsT0FBTyxDQUFDLENBQUM7QUFDM0QscUJBQWEsR0FBRyxPQUFPLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyx1QkFBZSxFQUFDLE1BQU0sQ0FBQyxDQUFDIn0=
|
Loading…
Reference in New Issue
Block a user