This commit is contained in:
michaelquigley 2024-01-22 15:48:56 +00:00
parent d775b352ac
commit 06223100b8
43 changed files with 172 additions and 87 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[993],{2121:(e,n,o)=>{o.r(n),o.d(n,{assets:()=>a,contentTitle:()=>r,default:()=>h,frontMatter:()=>i,metadata:()=>c,toc:()=>d});var t=o(5893),s=o(1151);const i={title:"Use Another zrok Instance",sidebar_label:"Instance Config"},r=void 0,c={id:"guides/self-hosting/instance-configuration",title:"Use Another zrok Instance",description:"This guide is relevant if you are self-hosting or using a friend's zrok instance instead of using zrok-as-a-service from zrok.io.",source:"@site/../docs/guides/self-hosting/instance-configuration.mdx",sourceDirName:"guides/self-hosting",slug:"/guides/self-hosting/instance-configuration",permalink:"/docs/guides/self-hosting/instance-configuration",draft:!1,unlisted:!1,editUrl:"https://github.com/openziti/zrok/blob/main/docs/../docs/guides/self-hosting/instance-configuration.mdx",tags:[],version:"current",frontMatter:{title:"Use Another zrok Instance",sidebar_label:"Instance Config"},sidebar:"tutorialSidebar",previous:{title:"OAuth Public Frontend Configuration",permalink:"/docs/guides/self-hosting/oauth/configuring-oauth"}},a={},d=[];function l(e){const n={admonition:"admonition",code:"code",em:"em",p:"p",pre:"pre",...(0,s.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.admonition,{type:"note",children:(0,t.jsxs)(n.p,{children:["This guide is relevant if you are self-hosting or using a friend's ",(0,t.jsx)(n.code,{children:"zrok"})," instance instead of using zrok-as-a-service from ",(0,t.jsx)(n.code,{children:"zrok.io"}),"."]})}),"\n",(0,t.jsxs)(n.p,{children:["The ",(0,t.jsx)(n.code,{children:"zrok"})," ",(0,t.jsx)(n.em,{children:"command"})," on your omputer uses a ",(0,t.jsx)(n.code,{children:"zrok"})," ",(0,t.jsx)(n.em,{children:"instance"})," over the network."]}),"\n",(0,t.jsxs)(n.p,{children:["The default instance API endpoint for the ",(0,t.jsx)(n.code,{children:"zrok"})," command is ",(0,t.jsx)(n.code,{children:"api.zrok.io"}),". Set the API endpoint to another instance's API endpoint:"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-text",children:"zrok config set apiEndpoint https://zrok.example.com\n"})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-buttonless",metastring:'title="Output"',children:"[WARNING]: unable to open environment metadata; ignoring\n\nzrok configuration updated\n"})}),"\n",(0,t.jsx)(n.admonition,{type:"note",children:(0,t.jsxs)(n.p,{children:["The ",(0,t.jsx)(n.code,{children:"WARNING"})," about ",(0,t.jsx)(n.code,{children:"environment metadata"})," is expected when you run ",(0,t.jsx)(n.code,{children:"zrok config set"})," before ",(0,t.jsx)(n.code,{children:"zrok enable"}),"."]})}),"\n",(0,t.jsxs)(n.p,{children:["You can use the ",(0,t.jsx)(n.code,{children:"zrok status"})," command to inspect the state of your local ",(0,t.jsx)(n.em,{children:"environment"}),". ",(0,t.jsx)(n.code,{children:"zrok"})," refers to each shell where you install and ",(0,t.jsx)(n.code,{children:"enable"})," a copy of ",(0,t.jsx)(n.code,{children:"zrok"})," as an ",(0,t.jsx)(n.em,{children:"environment"}),"."]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-text",children:"zrok status\n"})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-buttonless",metastring:'title="Output"',children:"Config:\n\n CONFIG VALUE SOURCE \n apiEndpoint https://zrok.mydomain.com config \n\n[WARNING]: Unable to load your local environment!\n\nTo create a local environment use the zrok enable command.\n"})}),"\n",(0,t.jsxs)(n.p,{children:["The ",(0,t.jsx)(n.code,{children:"zrok status"})," command shows the configured API service that your environment is using, as well as the ",(0,t.jsx)(n.code,{children:"SOURCE"})," where the setting was retrieved. In this case, ",(0,t.jsx)(n.code,{children:"config"})," means that the setting was set into the environment using the ",(0,t.jsx)(n.code,{children:"zrok config"})," command."]})]})}function h(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},1151:(e,n,o)=>{o.d(n,{Z:()=>c,a:()=>r});var t=o(7294);const s={},i=t.createContext(s);function r(e){const n=t.useContext(i);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:r(e.components),t.createElement(i.Provider,{value:n},e.children)}}}]);

View File

@ -0,0 +1 @@
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[993],{2121:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>a,contentTitle:()=>r,default:()=>h,frontMatter:()=>i,metadata:()=>c,toc:()=>d});var o=t(5893),s=t(1151);const i={title:"Use Another zrok Instance",sidebar_label:"Instance Config"},r=void 0,c={id:"guides/self-hosting/instance-configuration",title:"Use Another zrok Instance",description:"This guide is relevant if you are self-hosting or using a friend's zrok instance instead of using zrok-as-a-service from zrok.io.",source:"@site/../docs/guides/self-hosting/instance-configuration.mdx",sourceDirName:"guides/self-hosting",slug:"/guides/self-hosting/instance-configuration",permalink:"/docs/guides/self-hosting/instance-configuration",draft:!1,unlisted:!1,editUrl:"https://github.com/openziti/zrok/blob/main/docs/../docs/guides/self-hosting/instance-configuration.mdx",tags:[],version:"current",frontMatter:{title:"Use Another zrok Instance",sidebar_label:"Instance Config"},sidebar:"tutorialSidebar",previous:{title:"OAuth Public Frontend Configuration",permalink:"/docs/guides/self-hosting/oauth/configuring-oauth"},next:{title:"The Drives CLI",permalink:"/docs/guides/drives/cli"}},a={},d=[];function l(e){const n={admonition:"admonition",code:"code",em:"em",p:"p",pre:"pre",...(0,s.a)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.admonition,{type:"note",children:(0,o.jsxs)(n.p,{children:["This guide is relevant if you are self-hosting or using a friend's ",(0,o.jsx)(n.code,{children:"zrok"})," instance instead of using zrok-as-a-service from ",(0,o.jsx)(n.code,{children:"zrok.io"}),"."]})}),"\n",(0,o.jsxs)(n.p,{children:["The ",(0,o.jsx)(n.code,{children:"zrok"})," ",(0,o.jsx)(n.em,{children:"command"})," on your omputer uses a ",(0,o.jsx)(n.code,{children:"zrok"})," ",(0,o.jsx)(n.em,{children:"instance"})," over the network."]}),"\n",(0,o.jsxs)(n.p,{children:["The default instance API endpoint for the ",(0,o.jsx)(n.code,{children:"zrok"})," command is ",(0,o.jsx)(n.code,{children:"api.zrok.io"}),". Set the API endpoint to another instance's API endpoint:"]}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-text",children:"zrok config set apiEndpoint https://zrok.example.com\n"})}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-buttonless",metastring:'title="Output"',children:"[WARNING]: unable to open environment metadata; ignoring\n\nzrok configuration updated\n"})}),"\n",(0,o.jsx)(n.admonition,{type:"note",children:(0,o.jsxs)(n.p,{children:["The ",(0,o.jsx)(n.code,{children:"WARNING"})," about ",(0,o.jsx)(n.code,{children:"environment metadata"})," is expected when you run ",(0,o.jsx)(n.code,{children:"zrok config set"})," before ",(0,o.jsx)(n.code,{children:"zrok enable"}),"."]})}),"\n",(0,o.jsxs)(n.p,{children:["You can use the ",(0,o.jsx)(n.code,{children:"zrok status"})," command to inspect the state of your local ",(0,o.jsx)(n.em,{children:"environment"}),". ",(0,o.jsx)(n.code,{children:"zrok"})," refers to each shell where you install and ",(0,o.jsx)(n.code,{children:"enable"})," a copy of ",(0,o.jsx)(n.code,{children:"zrok"})," as an ",(0,o.jsx)(n.em,{children:"environment"}),"."]}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-text",children:"zrok status\n"})}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-buttonless",metastring:'title="Output"',children:"Config:\n\n CONFIG VALUE SOURCE \n apiEndpoint https://zrok.mydomain.com config \n\n[WARNING]: Unable to load your local environment!\n\nTo create a local environment use the zrok enable command.\n"})}),"\n",(0,o.jsxs)(n.p,{children:["The ",(0,o.jsx)(n.code,{children:"zrok status"})," command shows the configured API service that your environment is using, as well as the ",(0,o.jsx)(n.code,{children:"SOURCE"})," where the setting was retrieved. In this case, ",(0,o.jsx)(n.code,{children:"config"})," means that the setting was set into the environment using the ",(0,o.jsx)(n.code,{children:"zrok config"})," command."]})]})}function h(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},1151:(e,n,t)=>{t.d(n,{Z:()=>c,a:()=>r});var o=t(7294);const s={},i=o.createContext(s);function r(e){const n=o.useContext(i);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:r(e.components),o.createElement(i.Provider,{value:n},e.children)}}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -10,8 +10,8 @@
<link rel="search" type="application/opensearchdescription+xml" title="Zrok" href="/opensearch.xml"><link rel="stylesheet" href="/assets/css/styles.e053e05e.css">
<script src="/assets/js/runtime~main.2781c475.js" defer="defer"></script>
<script src="/assets/js/main.3aa65c40.js" defer="defer"></script>
<script src="/assets/js/runtime~main.9ba4b30b.js" defer="defer"></script>
<script src="/assets/js/main.529bb6a8.js" defer="defer"></script>
</head>
<body class="navigation-with-keyboard">
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){try{return new URLSearchParams(window.location.search).get("docusaurus-theme")}catch(t){}}()||function(){try{return localStorage.getItem("theme")}catch(t){}}();t(null!==e?e:"dark")}(),function(){try{const c=new URLSearchParams(window.location.search).entries();for(var[t,e]of c)if(t.startsWith("docusaurus-data-")){var a=t.replace("docusaurus-data-","data-");document.documentElement.setAttribute(a,e)}}catch(t){}}()</script><div id="__docusaurus"></div>

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"><url><loc>https://docs.zrok.io/search/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/category/docker-share/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/category/guides/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/category/metrics-and-limits/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/category/oauth/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/category/self-hosting/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/concepts/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/concepts/files/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/concepts/hosting/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/concepts/http/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/concepts/opensource/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/concepts/sharing-private/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/concepts/sharing-public/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/concepts/sharing-reserved/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/concepts/tunnels/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/getting-started/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/guides/docker-share/docker_private_share_guide/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/guides/docker-share/docker_public_share_guide/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/guides/frontdoor/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/guides/install/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/guides/install/linux/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/guides/install/macos/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/guides/install/windows/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/guides/self-hosting/instance-configuration/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/guides/self-hosting/metrics-and-limits/configuring-limits/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/guides/self-hosting/metrics-and-limits/configuring-metrics/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/guides/self-hosting/nginx_tls_guide/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/guides/self-hosting/oauth/configuring-oauth/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/guides/self-hosting/self_hosting_guide/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url></urlset>
<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"><url><loc>https://docs.zrok.io/search/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/category/docker-share/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/category/guides/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/category/metrics-and-limits/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/category/oauth/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/category/self-hosting/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/concepts/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/concepts/files/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/concepts/hosting/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/concepts/http/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/concepts/opensource/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/concepts/sharing-private/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/concepts/sharing-public/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/concepts/sharing-reserved/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/concepts/tunnels/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/getting-started/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/guides/docker-share/docker_private_share_guide/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/guides/docker-share/docker_public_share_guide/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/guides/drives/cli/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/guides/frontdoor/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/guides/install/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/guides/install/linux/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/guides/install/macos/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/guides/install/windows/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/guides/self-hosting/instance-configuration/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/guides/self-hosting/metrics-and-limits/configuring-limits/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/guides/self-hosting/metrics-and-limits/configuring-metrics/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/guides/self-hosting/nginx_tls_guide/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/guides/self-hosting/oauth/configuring-oauth/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/docs/guides/self-hosting/self_hosting_guide/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url><loc>https://docs.zrok.io/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url></urlset>