zrok/assets/js/f2348458.3093e5a9.js
2024-08-30 22:27:46 +00:00

1 line
3.5 KiB
JavaScript

"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2992],{2711:(e,s,r)=>{r.r(s),r.d(s,{assets:()=>a,contentTitle:()=>i,default:()=>l,frontMatter:()=>o,metadata:()=>t,toc:()=>h});var n=r(5893),c=r(1151);const o={sidebar_position:10},i="Public Shares",t={id:"concepts/sharing-public",title:"Public Shares",description:"zrok supports public sharing for web-based (HTTP and HTTPS) resources. These resources are easily shared with the general internet through public access points.",source:"@site/../docs/concepts/sharing-public.md",sourceDirName:"concepts",slug:"/concepts/sharing-public",permalink:"/docs/concepts/sharing-public",draft:!1,unlisted:!1,editUrl:"https://github.com/openziti/zrok/blob/main/docs/../docs/concepts/sharing-public.md",tags:[],version:"current",sidebarPosition:10,frontMatter:{sidebar_position:10},sidebar:"tutorialSidebar",previous:{title:"Private Shares",permalink:"/docs/concepts/sharing-private"},next:{title:"Reserved Shares",permalink:"/docs/concepts/sharing-reserved"}},a={},h=[{value:"Peer to Public",id:"peer-to-public",level:2}];function d(e){const s={code:"code",h1:"h1",h2:"h2",header:"header",img:"img",p:"p",...(0,c.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.header,{children:(0,n.jsx)(s.h1,{id:"public-shares",children:"Public Shares"})}),"\n",(0,n.jsxs)(s.p,{children:[(0,n.jsx)(s.code,{children:"zrok"})," supports ",(0,n.jsx)(s.code,{children:"public"})," sharing for web-based (HTTP and HTTPS) resources. These resources are easily shared with the general internet through public access points."]}),"\n",(0,n.jsx)(s.h2,{id:"peer-to-public",children:"Peer to Public"}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.img,{alt:"zrok_public_share",src:r(6831).Z+"",width:"2200",height:"916"})}),"\n",(0,n.jsxs)(s.p,{children:[(0,n.jsx)(s.code,{children:"public"})," sharing is most useful when the person or service accessing your resources does not have ",(0,n.jsx)(s.code,{children:"zrok"})," running locally and cannot make use of the ",(0,n.jsx)(s.code,{children:"private"})," sharing mode built into ",(0,n.jsx)(s.code,{children:"zrok"}),". Many users share development web servers, webhooks, and other HTTP/HTTPS resources."]}),"\n",(0,n.jsxs)(s.p,{children:["As with ",(0,n.jsx)(s.code,{children:"private"})," sharing, ",(0,n.jsx)(s.code,{children:"public"})," sharing does not require you to open any firewall ports or otherwise compromise the security of your local environments. A ",(0,n.jsx)(s.code,{children:"public"})," share goes away as soon as you terminate the ",(0,n.jsx)(s.code,{children:"zrok share"})," command."]}),"\n",(0,n.jsxs)(s.p,{children:["Using ",(0,n.jsx)(s.code,{children:"public"})," shares is easy and is accomplished using the ",(0,n.jsx)(s.code,{children:"zrok share public"})," command. Run ",(0,n.jsx)(s.code,{children:"zrok share public"})," to see the command-line help and to learn how to use ",(0,n.jsx)(s.code,{children:"public"})," shares."]})]})}function l(e={}){const{wrapper:s}={...(0,c.a)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(d,{...e})}):d(e)}},6831:(e,s,r)=>{r.d(s,{Z:()=>n});const n=r.p+"assets/images/zrok_public_share-1eec22cb798395c2bcd3ac10465f62ca.png"},1151:(e,s,r)=>{r.d(s,{Z:()=>t,a:()=>i});var n=r(7294);const c={},o=n.createContext(c);function i(e){const s=n.useContext(o);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function t(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(c):e.components||c:i(e.components),n.createElement(o.Provider,{value:s},e.children)}}}]);