From e4e94d5be067ebac41f76b2f4156d25c06770bc2 Mon Sep 17 00:00:00 2001 From: vipergts450 <60085845+vipergts450@users.noreply.github.com> Date: Thu, 6 May 2021 14:50:09 -0400 Subject: [PATCH] Update nginx.js Adds ability for custom location templates to handle includes --- backend/internal/nginx.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/internal/nginx.js b/backend/internal/nginx.js index 9972d417..336a462c 100644 --- a/backend/internal/nginx.js +++ b/backend/internal/nginx.js @@ -101,7 +101,7 @@ const internalNginx = { logger.info('Testing Nginx configuration'); } - return utils.exec('/usr/sbin/nginx -t -g "error_log off;"'); + return utils.exec('/usr/sbin/nginx -t '); }, /** @@ -146,7 +146,9 @@ const internalNginx = { return; } - let renderer = new Liquid(); + let renderer = new Liquid({ + root: __dirname + '/../templates/' + }); let renderedLocations = ''; const locationRendering = async () => {