A cli tool to quickly create and manage nginx server blocks. https://up.js.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

20 lines
521 B

// These functions just return paths. Later, these should be modified to poll from nginx's config.
function availableSites() {
var availableSites = "/etc/nginx/sites-available/";
return availableSites;
}
function enabledSites() {
var enabledSites = "/etc/nginx/sites-enabled/";
return enabledSites;
}
function webRoot() {
var webRoot = "/var/www/";
return webRoot;
}
module.exports.availableSites = availableSites;
module.exports.enabledSites = enabledSites;
module.exports.webRoot = webRoot;