Share an HTTP service
The proxy backend mode forwards incoming requests to an HTTP or HTTPS server running on your machine. It's the default
backend mode, so you don't need to specify --backend-mode unless you're switching to a different mode.
-
Run
zrok2 share publicwith your port or URL:zrok2 share public 8080zrok assigns a public URL and opens a full-screen terminal display showing the URL, share type, and a live feed of incoming requests:
The share is active as long as the command is running. Press
Ctrl+Corqto exit and tear down the share. -
Optionally, to disable the terminal UI and send output to
stdout, pass the--headlessflag:zrok2 share public --headless 8080
To create public shares with the agent, see Manage shares with the agent.