mirror of
https://github.com/openziti/zrok.git
synced 2024-11-07 08:44:14 +01:00
expect the unique-name option in reserved share wrappers
This commit is contained in:
parent
4f457155a7
commit
63d639408c
@ -38,6 +38,7 @@ services:
|
||||
STATE_DIRECTORY: /mnt # zrok homedir in container
|
||||
|
||||
# most relevant options
|
||||
ZROK_SUBDOMAIN: # 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
|
||||
|
@ -110,6 +110,10 @@ case "${ZROK_BACKEND_MODE}" in
|
||||
;;
|
||||
esac
|
||||
|
||||
[[ -n "${ZROK_SUBDOMAIN:-}" ]] && {
|
||||
ZROK_CMD+=" --unique-name ${ZROK_SUBDOMAIN}"
|
||||
}
|
||||
|
||||
ZROK_CMD+=" --backend-mode ${ZROK_BACKEND_MODE} ${ZROK_TARGET}"
|
||||
|
||||
if [[ -n "${ZROK_SHARE_OPTS:-}" ]]; then
|
||||
|
@ -56,7 +56,7 @@ ZROK_BACKEND_MODE="proxy"
|
||||
#ZROK_VERBOSE="--verbose"
|
||||
|
||||
# you MAY set additional command-line options for the share; see "zrok reserve public --help" for hints
|
||||
# WARNING: changing this value requires provisioning a new frontend URL
|
||||
# WARNING: changes take effect the next time the frontend URL is reserved
|
||||
# NOTE: basic auth and oauth are mutually exclusive
|
||||
ZROK_SHARE_OPTS=""
|
||||
|
||||
@ -64,20 +64,25 @@ ZROK_SHARE_OPTS=""
|
||||
## ZROK FRONTEND
|
||||
#
|
||||
|
||||
# you MAY customize the subdomain that is reserved for the frontend; must be a valid DNS subdomain; if not set a random
|
||||
# subdomain is reserved
|
||||
# WARNING: changes take effect the next time the frontend URL is reserved
|
||||
#ZROK_SUBDOMAIN=""
|
||||
|
||||
# you MAY set one OAuth2/OIDC provider; "google" and "github" are valid for the default instance api.zrok.io
|
||||
# WARNING: changing this value requires provisioning a new frontend URL
|
||||
# WARNING: changes take effect the next time the frontend URL is reserved
|
||||
# NOTE: basic auth and oauth are mutually exclusive
|
||||
#ZROK_OAUTH_PROVIDER="google"
|
||||
|
||||
# you MAY restrict access to one or more email addresses or domains; must be a space-separate list
|
||||
# WARNING: changing this value requires provisioning a new frontend URL
|
||||
# WARNING: changes take effect the next time the frontend URL is reserved
|
||||
#ZROK_OAUTH_EMAILS="bob@acme.example.com alice@forge.example.com @corp.example.com"
|
||||
|
||||
# you MAY require a password with HTTP basic authentication
|
||||
# WARNING: changing this value requires provisioning a new frontend URL
|
||||
# WARNING: changes take effect the next time the frontend URL is reserved
|
||||
# NOTE: basic auth and oauth are mutually exclusive
|
||||
#ZROK_BASIC_AUTH=""
|
||||
|
||||
# set if self-hosting zrok and not using only the default frontend name 'public'; must be a space-separated list
|
||||
# WARNING: changing this value requires provisioning a new frontend URL
|
||||
# WARNING: changes take effect the next time the frontend URL is reserved
|
||||
#ZROK_FRONTENDS="public"
|
||||
|
Loading…
Reference in New Issue
Block a user