Skip to content

Commit e4e94d5

Browse files
authored
Update nginx.js
Adds ability for custom location templates to handle includes
1 parent a3b896f commit e4e94d5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

backend/internal/nginx.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const internalNginx = {
101101
logger.info('Testing Nginx configuration');
102102
}
103103

104-
return utils.exec('/usr/sbin/nginx -t -g "error_log off;"');
104+
return utils.exec('/usr/sbin/nginx -t ');
105105
},
106106

107107
/**
@@ -146,7 +146,9 @@ const internalNginx = {
146146
return;
147147
}
148148

149-
let renderer = new Liquid();
149+
let renderer = new Liquid({
150+
root: __dirname + '/../templates/'
151+
});
150152
let renderedLocations = '';
151153

152154
const locationRendering = async () => {

0 commit comments

Comments
 (0)