Update nginx.js

Adds ability for custom location templates to handle includes
This commit is contained in:
vipergts450 2021-05-06 14:50:09 -04:00 committed by GitHub
parent a3b896fa70
commit e4e94d5be0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 () => {