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.
17 lines
403 B
17 lines
403 B
7 years ago
|
function availableSites() {
|
||
|
var availableSites = "/etc/nginx/available-sites/"
|
||
|
return availableSites
|
||
|
}
|
||
|
|
||
|
function enabledSites() {
|
||
|
var enabledSites = "/etc/nginx/enabled-sites/"
|
||
|
return enabledSites
|
||
|
}
|
||
|
|
||
|
function conf(path, domain) {
|
||
|
return (path + domain + ".conf")
|
||
|
}
|
||
|
|
||
|
module.exports.conf = conf
|
||
|
module.exports.availableSites = availableSites
|
||
|
module.exports.enabledSites = enabledSites
|