@bprotsyk/aso-core 2.0.19 → 2.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/utils/server-util.js
CHANGED
|
@@ -180,7 +180,7 @@ class ServerUtil {
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
async generateNginxConfig(domain, rootPath) {
|
|
183
|
-
const template = fs_1.default.readFileSync("
|
|
183
|
+
const template = fs_1.default.readFileSync("templates/nginx-template.conf", "utf8");
|
|
184
184
|
const config = mustache_1.default.render(template, { domain, rootPath });
|
|
185
185
|
return config;
|
|
186
186
|
}
|
package/package.json
CHANGED
package/src/utils/server-util.ts
CHANGED
|
@@ -219,7 +219,7 @@ export class ServerUtil {
|
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
async generateNginxConfig(domain: string, rootPath: string): Promise<string> {
|
|
222
|
-
const template = fs.readFileSync("
|
|
222
|
+
const template = fs.readFileSync("templates/nginx-template.conf", "utf8");
|
|
223
223
|
const config = mustache.render(template, { domain, rootPath });
|
|
224
224
|
return config;
|
|
225
225
|
}
|
|
File without changes
|