mirror of
https://github.com/openziti/zrok.git
synced 2024-11-21 23:53:19 +01:00
fix public frontends array
This commit is contained in:
parent
8e0d333460
commit
54941a60e0
@ -21,7 +21,7 @@ program
|
||||
|
||||
// Create the zrok private share that will represent this web server
|
||||
console.log("Now creating your private zrok share...")
|
||||
let shr = await zrok.CreateShare(root, new zrok.ShareRequest(zrok.PROXY_BACKEND_MODE, zrok.PRIVATE_SHARE_MODE, "http-server", ["private"]));
|
||||
let shr = await zrok.CreateShare(root, new zrok.ShareRequest(zrok.PROXY_BACKEND_MODE, zrok.PRIVATE_SHARE_MODE, "http-server", []));
|
||||
console.log(`access your private HTTP Server on another machine using: 'zrok access private ${shr.Token}'`)
|
||||
|
||||
// Create a NodeJS Express web server that listens NOT on a TCP port, but for incoming Ziti connections to the private zrok share
|
||||
|
@ -22,7 +22,7 @@ program
|
||||
let root = zrok.Load()
|
||||
await zrok.init( root ).catch(( err: Error ) => { console.error(err); return process.exit(1) });
|
||||
console.log("setting up zrok.CreateShare...")
|
||||
let shr = await zrok.CreateShare(root, new zrok.ShareRequest(zrok.TCP_TUNNEL_BACKEND_MODE, zrok.PRIVATE_SHARE_MODE, "pastebin", ["private"]));
|
||||
let shr = await zrok.CreateShare(root, new zrok.ShareRequest(zrok.TCP_TUNNEL_BACKEND_MODE, zrok.PRIVATE_SHARE_MODE, "pastebin", []));
|
||||
console.log(`access your pastebin using 'pastefrom ${shr.Token}'`)
|
||||
|
||||
zrok.listener(
|
||||
|
Loading…
Reference in New Issue
Block a user