@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.
@@ -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
- const config = mustache_1.default.render(template, { domain, rootPath });
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "2.0.38",
3
+ "version": "2.0.39",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -269,7 +269,9 @@ export class ServerUtil {
269
269
  "nginx-template.conf"
270
270
  );
271
271
  const template = fs.readFileSync(templatePath, "utf8");
272
- const config = mustache.render(template, { domain, rootPath });
272
+ let config = mustache.render(template, { domain, rootPath });
273
+ // Заміна закодованих символів назад на їх оригінальні значення
274
+ config = config.replace(///g, '/');
273
275
  return config;
274
276
  }
275
277