I want Add Path For Zrok Communication

I am using Zrok to communicate between the Tally Prime server and my server. I want to configure a path so that Zrok communicates with a specific path only. Could you please help me with this ASAP?

Hmmm. I'm not sure zrok has this particular feature. I don't recall seeing it but I'm 100% aware of the scope of features zrok contains. If there's a way to do this I'll either comment back or someone else will. Also, all requests for help are answered "ASAP".

Cheers

@Sam I think you want the zrok share backend to send the proxied requests to a specific upstream URL path.

For example, imagine a zrok public share URL like https://myshare.zrok.example.com. You want the incoming requests for / to be sent by the backend to http://127.0.0.1:3000/api/v1.

This way, the original requests to the public share URL do not include the api/v1 part, only the bare root URL path /.

You can do this today with zrok's backend mode caddy. You must write a Caddyfile template based on this example (link to download: https://docs.zrok.io/simple_reverse_proxy.Caddyfile). Your template must contain the {{ .ZrokBindAddress }} token in the http:// section.

zrok reserve public --backend-mode "caddy" --unique-name "myshare" ./Caddyfile
zrok share reserved "myshare"
{
    # no listen on 2019/tcp with admin API
    admin off
}

# zrok site block
http:// {
	bind {{ .ZrokBindAddress }}
	rewrite * /api/v1{uri}
	reverse_proxy 127.0.0.1:3000
}
1 Like

What specific problem are you trying to solve, @Sam? A path, where? zrok communicates using a secure OpenZiti overlay. What's the reason for specifying a specific path?

If you can give us more details of the problem you're trying to solve, we might have better ideas for you.

1 Like

I am using Zrok for communication between the Tally server and my server. On the Tally server, there are multiple companies, but I want to connect to only a specific company. I want to configure a path in Zrok so that it connects only to that specific company

Thanks for that clarification. Within a Tally server, are companies differentiated by URL paths like http://tally.example.com/path/to/acme, filesystem paths like C:\Tally\path\to\acme, or do you mean some other type of "path?"

C:\Tally\path\to\acme this type of path i want to add when zrok established a connection between tally server to my server

I understand your Tally Server instance separates companies by filesystem path, e.g., C:\Tally\path\to\acme.

Do you wish to publish a view of your Tally Server's user interface or API or both, while restricting the companies that are visible in that published view?

To clarify, I'm unsure if you wish to share Tally Server's web interface/console or if you wish to share a list of files from the C-drive for your visitors to download.