diff --git a/docs/guides/docker-share/_reserved_public_share.mdx b/docs/guides/docker-share/_reserved_public_share.mdx index 34905f8f..827f6b33 100644 --- a/docs/guides/docker-share/_reserved_public_share.mdx +++ b/docs/guides/docker-share/_reserved_public_share.mdx @@ -57,15 +57,26 @@ docker compose down && docker compose up You can require a password or an OAuth login with certain email addresses. -## OAuth Email +### OAuth Email -You can allow specific email addresses or an email domain by setting `ZROK_OAUTH_PROVIDER` to `github` or `google` and `ZROK_SHARE_OPTS` to specify additional command-line options to `zrok reserve public`. Read more about the OAuth features in [this blog post](https://blog.openziti.io/the-zrok-oauth-public-frontend). +You can allow specific email addresses or an email domain by setting `ZROK_OAUTH_PROVIDER` to `github` or `google` and +`ZROK_SHARE_OPTS` to specify additional command-line options to `zrok reserve public`. Read more about the OAuth +features in [this blog post](https://blog.openziti.io/the-zrok-oauth-public-frontend). ```bash title=".env" ZROK_OAUTH_PROVIDER="github" ZROK_SHARE_OPTS="--oauth-email-domains @example.com" ``` +### Password + +You can require a password by setting `ZROK_SHARE_OPTS` to specify additional command-line options to `zrok reserve +public`. + +```bash title=".env" +ZROK_SHARE_OPTS="--basic-auth 'admin:passwd'" +``` + ## Share Something Different The reserved public share project uses zrok's `caddy` mode. Caddy accepts configuration as a Caddyfile that is mounted into the container ([zrok Caddyfile examples](https://github.com/openziti/zrok/tree/main/etc/caddy)).