Files
node-reverse-proxy/src/Program.js
Kaveman 8ce8c25442 Initial Commit
Reverse Proxy Rewrite
2025-10-24 12:41:22 -07:00

23 lines
505 B
JavaScript

'use strict';
const ReverseProxy = require("./ReverseProxy");
/*/ Test GetPath
[
"https://localhost/health",
"http://12/health",
"localhost/health",
"ws://websocket/path?key=value",
"ssh://hello:22/"
].forEach(url => {
console.log(`'${url}' => '${ReverseProxy.GetPath(url)}'`)
})//*/
ReverseProxy.Start()
/*/ Test host resolution
.then(instance => {
["kavemans.dev", "localhost"].forEach(host => {
console.log(`'${host}' => '${instance.TryResolveInternalHost(host)}'`);
});
});//*/