Browse Source

up-list feature branch

pull/3/head
Shanmugam 7 years ago
parent
commit
cc474f3a2e
  1. 13
      utils/listFile.js

13
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;
Loading…
Cancel
Save