@bprotsyk/aso-core 2.0.38 → 2.0.39
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
|
@@ -215,7 +215,9 @@ class ServerUtil {
|
|
|
215
215
|
async generateNginxConfig(domain, rootPath) {
|
|
216
216
|
const templatePath = path_1.default.join(__dirname, "..", "templates", "nginx-template.conf");
|
|
217
217
|
const template = fs_1.default.readFileSync(templatePath, "utf8");
|
|
218
|
-
|
|
218
|
+
let config = mustache_1.default.render(template, { domain, rootPath });
|
|
219
|
+
// Заміна закодованих символів назад на їх оригінальні значення
|
|
220
|
+
config = config.replace(///g, '/');
|
|
219
221
|
return config;
|
|
220
222
|
}
|
|
221
223
|
async extractUploadedZip(name, file, extractToPath) {
|
package/package.json
CHANGED
package/src/utils/server-util.ts
CHANGED
|
@@ -269,7 +269,9 @@ export class ServerUtil {
|
|
|
269
269
|
"nginx-template.conf"
|
|
270
270
|
);
|
|
271
271
|
const template = fs.readFileSync(templatePath, "utf8");
|
|
272
|
-
|
|
272
|
+
let config = mustache.render(template, { domain, rootPath });
|
|
273
|
+
// Заміна закодованих символів назад на їх оригінальні значення
|
|
274
|
+
config = config.replace(///g, '/');
|
|
273
275
|
return config;
|
|
274
276
|
}
|
|
275
277
|
|