mirror of
https://github.com/openziti/zrok.git
synced 2025-02-09 06:50:54 +01:00
stop trying to print the public frontend endpoint for private shares
This commit is contained in:
parent
14e3fa1836
commit
d780ce43b7
@ -217,12 +217,14 @@ else
|
|||||||
echo "ERROR: invalid JSON in $(realpath ~/.zrok)/reserved.json" >&2
|
echo "ERROR: invalid JSON in $(realpath ~/.zrok)/reserved.json" >&2
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
ZROK_PUBLIC_URLS=$(jq -cr '.frontend_endpoints' ~/.zrok/reserved.json 2>/dev/null)
|
if [[ "${ZROK_FRONTEND_MODE:-}" == reserved-public ]]; then
|
||||||
if [[ -z "${ZROK_PUBLIC_URLS}" || "${ZROK_PUBLIC_URLS}" == null ]]; then
|
ZROK_PUBLIC_URLS=$(jq -cr '.frontend_endpoints' ~/.zrok/reserved.json 2>/dev/null)
|
||||||
echo "ERROR: frontend endpoints not defined in $(realpath ~/.zrok)/reserved.json" >&2
|
if [[ -z "${ZROK_PUBLIC_URLS}" || "${ZROK_PUBLIC_URLS}" == null ]]; then
|
||||||
exit 1
|
echo "ERROR: frontend endpoints not defined in $(realpath ~/.zrok)/reserved.json" >&2
|
||||||
else
|
exit 1
|
||||||
echo "INFO: zrok public URLs: ${ZROK_PUBLIC_URLS}"
|
else
|
||||||
|
echo "INFO: zrok public URLs: ${ZROK_PUBLIC_URLS}"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
ZROK_RESERVED_TOKEN=$(jq -r '.token' ~/.zrok/reserved.json 2>/dev/null)
|
ZROK_RESERVED_TOKEN=$(jq -r '.token' ~/.zrok/reserved.json 2>/dev/null)
|
||||||
if [[ -z "${ZROK_RESERVED_TOKEN}" || "${ZROK_RESERVED_TOKEN}" == null ]]; then
|
if [[ -z "${ZROK_RESERVED_TOKEN}" || "${ZROK_RESERVED_TOKEN}" == null ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user