fix(build): update tooling configuration and align nginx certificate generation with current dependencies
This commit is contained in:
@@ -27,7 +27,7 @@ export class SmartNginx {
|
||||
this.options.logger
|
||||
? (this.logger = this.options.logger)
|
||||
: (this.logger = new plugins.smartlog.Smartlog({
|
||||
logContext: null
|
||||
logContext: {}
|
||||
}));
|
||||
}
|
||||
|
||||
@@ -122,10 +122,9 @@ export class SmartNginx {
|
||||
);
|
||||
|
||||
// write standard self signed certificate
|
||||
const selfsignedCert = plugins.selfsigned.generate(
|
||||
[{ name: 'commonName', value: 'selfsigned.git.zone' }],
|
||||
{ days: 365 }
|
||||
);
|
||||
const selfsignedCert = await plugins.selfsigned.generate([
|
||||
{ name: 'commonName', value: 'selfsigned.git.zone' },
|
||||
]);
|
||||
|
||||
// deploy hosts
|
||||
await plugins.fs.directory(paths.nginxHostDirPath).recursive().create();
|
||||
|
||||
Reference in New Issue
Block a user