From f5ceeb9fe8efd16e94e086b8d3108d9d460f31cd Mon Sep 17 00:00:00 2001 From: Kenneth Bingham Date: Thu, 30 Jan 2025 10:40:48 -0500 Subject: [PATCH] refine readme Signed-off-by: Kenneth Bingham --- sdk/python/examples/proxy/README.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/sdk/python/examples/proxy/README.md b/sdk/python/examples/proxy/README.md index a5fff84f..0e6df289 100644 --- a/sdk/python/examples/proxy/README.md +++ b/sdk/python/examples/proxy/README.md @@ -24,14 +24,13 @@ Expected output: from zrok.proxy import ProxyShare import zrok -# Load the environment -root = zrok.environment.root.Load() +# Load the user's zrok environment from ~/.zrok +zrok_env = zrok.environment.root.Load() # Create a temporary proxy share (will be cleaned up on exit) -proxy = ProxyShare.create(root=root, target="http://my-target-service") +proxy = ProxyShare.create(root=zrok_env, target="http://127.0.0.1:3000") -# Access the proxy's endpoints and token -print(f"Access proxy at: {proxy.endpoints}") +print(f"Public URL: {proxy.endpoints}") proxy.run() ``` @@ -43,6 +42,6 @@ To create a share token that persists and can be reused, run the example `proxy. proxy = ProxyShare.create( root=root, target="http://127.0.0.1:3000", - unique_name="my-persistent-proxy" + unique_name="myuniquename" ) ```