normalize var names with "ZROK_" prefix

This commit is contained in:
Kenneth Bingham 2023-12-11 18:05:29 -05:00
parent 95104a0cf3
commit d4c005ccf3
No known key found for this signature in database
GPG Key ID: 31709281860130B6
5 changed files with 6 additions and 6 deletions

View File

@ -38,7 +38,7 @@ services:
STATE_DIRECTORY: /mnt # zrok homedir in container
# most relevant options
UNIQUE_NAME: # vanity share token is used to construct frontend subdomain, e.g. "myapp" for "myapp.in.zrok.io"
ZROK_UNIQUE_NAME: # vanity share token is used to construct frontend subdomain, e.g. "myapp" for "myapp.in.zrok.io"
ZROK_BACKEND_MODE: # web, caddy, drive, proxy
ZROK_TARGET: # backend target, is a path in container filesystem unless proxy mode
ZROK_INSECURE: # "--insecure" if proxy target has unverifiable TLS server certificate

View File

@ -94,7 +94,7 @@ ZROK_ENABLE_TOKEN="14cbfca9772f"
This becomes the leading part of the domain name of the share, e.g. `https://my-prod-app.in.zrok.io`.
```bash title="/opt/openziti/etc/zrok/zrok-share.env"
UNIQUE_NAME="my-prod-app"
ZROK_UNIQUE_NAME="my-prod-app"
```
## Use Cases

View File

@ -16,7 +16,7 @@ import useBaseUrl from '@docusaurus/useBaseUrl';
<iframe width="100%" height="315" src="https://www.youtube.com/embed/5Vi8GKuTi_I" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
## Overview
## Overview
zrok frontends are the parts of zrok that proxy incoming public web traffic to zrok backend shares via OpenZiti. When you use zrok with a `zrok.io` frontend, you're using **zrok frontdoor**. `zrok.io` is zrok-as-a-service by NetFoundry, the team behind OpenZiti. You need a free account to use **zrok frontdoor**.

View File

@ -110,8 +110,8 @@ case "${ZROK_BACKEND_MODE}" in
;;
esac
[[ -n "${UNIQUE_NAME:-}" ]] && {
ZROK_CMD+=" --unique-name ${UNIQUE_NAME}"
[[ -n "${ZROK_UNIQUE_NAME:-}" ]] && {
ZROK_CMD+=" --unique-name ${ZROK_UNIQUE_NAME}"
}
ZROK_CMD+=" --backend-mode ${ZROK_BACKEND_MODE} ${ZROK_TARGET}"

View File

@ -67,7 +67,7 @@ ZROK_SHARE_OPTS=""
# you MAY customize the share token that is used to construct the reserved subdomain; if not set a random
# subdomain is reserved
# WARNING: changes take effect the next time the frontend URL is reserved
#UNIQUE_NAME=""
#ZROK_UNIQUE_NAME=""
# you MAY set one OAuth2/OIDC provider; "google" and "github" are valid for the default instance api.zrok.io
# WARNING: changes take effect the next time the frontend URL is reserved