From cc474f3a2ec1b10e65dd7a4dcc6b9492f2d0b9f8 Mon Sep 17 00:00:00 2001 From: shunmusanjay Date: Tue, 7 Nov 2017 01:59:37 +0530 Subject: [PATCH] up-list feature branch --- utils/listFile.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 utils/listFile.js 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