diff --git a/utils/listFile.js b/utils/listFile.js new file mode 100644 index 0000000..b0ab224 --- /dev/null +++ b/utils/listFile.js @@ -0,0 +1,13 @@ +// These functions just return paths. + +var list = 'etc/up-serve/servers.up'; + +function list(domain, inPort, outPort) { + if (inPort) { + return (list + ' ' + domain + ':' + outPort + ' ' + 'proxy' + ' ' + inPort); + } else { + return (list + ' ' + domain + ':' + outPort + ' ' + 'static'); + } +} + +module.exports = listFile; \ No newline at end of file