Przeglądaj źródła

Update nginx.js

Adds ability for custom location templates to handle includes
vipergts450 4 lat temu
rodzic
commit
e4e94d5be0
1 zmienionych plików z 4 dodań i 2 usunięć
  1. 4 2
      backend/internal/nginx.js

+ 4 - 2
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 () => {