mirror of
https://github.com/openziti/zrok.git
synced 2025-02-03 12:00:05 +01:00
Merge branch 'main' into limits-classes
This commit is contained in:
commit
fc403a6c22
@ -64,6 +64,7 @@ ZROK_ADMIN_TOKEN=zroktoken
|
|||||||
```
|
```
|
||||||
|
|
||||||
```bash title=".env options"
|
```bash title=".env options"
|
||||||
|
# Caddy TLS option: rename caddy.compose.override.yml to compose.override.yml and set these vars; allow 80,443 in firewall
|
||||||
# plugin name for your DNS provider
|
# plugin name for your DNS provider
|
||||||
CADDY_DNS_PLUGIN=cloudflare
|
CADDY_DNS_PLUGIN=cloudflare
|
||||||
# API token from your DNS provider
|
# API token from your DNS provider
|
||||||
@ -71,12 +72,13 @@ CADDY_DNS_PLUGIN_TOKEN=abcd1234
|
|||||||
# use the staging API until you're sure everything is working to avoid hitting the rate limit
|
# use the staging API until you're sure everything is working to avoid hitting the rate limit
|
||||||
CADDY_ACME_API=https://acme-staging-v02.api.letsencrypt.org/directory
|
CADDY_ACME_API=https://acme-staging-v02.api.letsencrypt.org/directory
|
||||||
|
|
||||||
# zrok version, e.g., 1.0.0
|
# no TLS option: publish the insecure ports to the internet and allow them in the firewall
|
||||||
ZROK_IMAGE_TAG=latest
|
ZROK_INSECURE_INTERFACE=0.0.0.0
|
||||||
|
ZROK_CTRL_PORT=18080
|
||||||
|
ZROK_FRONTEND_PORT=8080
|
||||||
|
ZROK_OAUTH_PORT=8081
|
||||||
|
|
||||||
# ziti version, e.g., 1.0.0
|
# ziti ports must be published to the internet and allowed by firewall
|
||||||
ZITI_IMAGE_TAG=latest
|
|
||||||
# ziti ports
|
|
||||||
ZITI_CTRL_ADVERTISED_PORT=1280
|
ZITI_CTRL_ADVERTISED_PORT=1280
|
||||||
ZITI_ROUTER_PORT=3022
|
ZITI_ROUTER_PORT=3022
|
||||||
|
|
||||||
@ -86,6 +88,11 @@ ZROK_OAUTH_GITHUB_CLIENT_ID=abcd1234
|
|||||||
ZROK_OAUTH_GITHUB_CLIENT_SECRET=abcd1234
|
ZROK_OAUTH_GITHUB_CLIENT_SECRET=abcd1234
|
||||||
ZROK_OAUTH_GOOGLE_CLIENT_ID=abcd1234
|
ZROK_OAUTH_GOOGLE_CLIENT_ID=abcd1234
|
||||||
ZROK_OAUTH_GOOGLE_CLIENT_SECRET=abcd1234
|
ZROK_OAUTH_GOOGLE_CLIENT_SECRET=abcd1234
|
||||||
|
|
||||||
|
# zrok version, e.g., 1.0.0
|
||||||
|
ZROK_IMAGE_TAG=latest
|
||||||
|
# ziti version, e.g., 1.0.0
|
||||||
|
ZITI_IMAGE_TAG=latest
|
||||||
```
|
```
|
||||||
|
|
||||||
### Start the Docker Compose Project
|
### Start the Docker Compose Project
|
||||||
|
@ -110,7 +110,7 @@ services:
|
|||||||
expose:
|
expose:
|
||||||
- ${ZROK_CTRL_PORT:-18080} # (not published)
|
- ${ZROK_CTRL_PORT:-18080} # (not published)
|
||||||
ports:
|
ports:
|
||||||
- 127.0.0.1:${ZROK_CTRL_PORT:-18080}:${ZROK_CTRL_PORT:-18080}
|
- ${ZROK_INSECURE_INTERFACE:-127.0.0.1}:${ZROK_CTRL_PORT:-18080}:${ZROK_CTRL_PORT:-18080}
|
||||||
environment:
|
environment:
|
||||||
ZROK_USER_PWD: ${ZROK_USER_PWD} # admin account password (initial user account)
|
ZROK_USER_PWD: ${ZROK_USER_PWD} # admin account password (initial user account)
|
||||||
ZROK_USER_EMAIL: ${ZROK_USER_EMAIL} # login email address (initial user account)
|
ZROK_USER_EMAIL: ${ZROK_USER_EMAIL} # login email address (initial user account)
|
||||||
@ -144,8 +144,8 @@ services:
|
|||||||
- ${ZROK_FRONTEND_PORT:-8080} # (not published)
|
- ${ZROK_FRONTEND_PORT:-8080} # (not published)
|
||||||
- ${ZROK_OAUTH_PORT:-8081} # (not published)
|
- ${ZROK_OAUTH_PORT:-8081} # (not published)
|
||||||
ports:
|
ports:
|
||||||
- 127.0.0.1:${ZROK_FRONTEND_PORT:-8080}:${ZROK_FRONTEND_PORT:-8080}
|
- ${ZROK_INSECURE_INTERFACE:-127.0.0.1}:${ZROK_FRONTEND_PORT:-8080}:${ZROK_FRONTEND_PORT:-8080}
|
||||||
- 127.0.0.1:${ZROK_OAUTH_PORT:-8081}:${ZROK_OAUTH_PORT:-8081}
|
- ${ZROK_INSECURE_INTERFACE:-127.0.0.1}:${ZROK_OAUTH_PORT:-8081}:${ZROK_OAUTH_PORT:-8081}
|
||||||
environment:
|
environment:
|
||||||
HOME: /var/lib/zrok-frontend
|
HOME: /var/lib/zrok-frontend
|
||||||
ZROK_DNS_ZONE: ${ZROK_DNS_ZONE} # e.g., "example.com" or "127.0.0.1.sslip.io"
|
ZROK_DNS_ZONE: ${ZROK_DNS_ZONE} # e.g., "example.com" or "127.0.0.1.sslip.io"
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
services:
|
services:
|
||||||
zrok-init:
|
zrok-init:
|
||||||
image: busybox
|
image: busybox
|
||||||
# matches uid:gid of "nobody" in zrok container image
|
# matches uid:gid of "ziggy" in zrok container image
|
||||||
command: chown -Rc 65534:65534 /mnt/.zrok
|
command: chown -Rc 2171:2171 /mnt/.zrok
|
||||||
user: root
|
user: root
|
||||||
volumes:
|
volumes:
|
||||||
- zrok_env:/mnt/.zrok
|
- zrok_env:/mnt/.zrok
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
services:
|
services:
|
||||||
zrok-init:
|
zrok-init:
|
||||||
image: busybox
|
image: busybox
|
||||||
# matches uid:gid of "nobody" in zrok container image
|
# matches uid:gid of "ziggy" in zrok container image
|
||||||
command: chown -Rc 65534:65534 /mnt/.zrok
|
command: chown -Rc 2171:2171 /mnt/.zrok
|
||||||
user: root
|
user: root
|
||||||
volumes:
|
volumes:
|
||||||
- zrok_env:/mnt/.zrok
|
- zrok_env:/mnt/.zrok
|
||||||
|
@ -2,8 +2,8 @@ services:
|
|||||||
# set file ownership
|
# set file ownership
|
||||||
zrok-init:
|
zrok-init:
|
||||||
image: busybox
|
image: busybox
|
||||||
# matches uid:gid of "nobody" in zrok container image
|
# matches uid:gid of "ziggy" in zrok container image
|
||||||
command: chown -Rc 65534:65534 /mnt/
|
command: chown -Rc 2171:2171 /mnt/
|
||||||
user: root
|
user: root
|
||||||
volumes:
|
volumes:
|
||||||
- zrok_env:/mnt
|
- zrok_env:/mnt
|
||||||
|
@ -3,8 +3,8 @@ services:
|
|||||||
# set file ownership
|
# set file ownership
|
||||||
zrok-init:
|
zrok-init:
|
||||||
image: busybox
|
image: busybox
|
||||||
# matches uid:gid of "nobody" in zrok container image
|
# matches uid:gid of "ziggy" in zrok container image
|
||||||
command: chown -Rc 65534:65534 /mnt/.zrok
|
command: chown -Rc 2171:2171 /mnt/.zrok
|
||||||
user: root
|
user: root
|
||||||
volumes:
|
volumes:
|
||||||
- zrok_env:/mnt/.zrok
|
- zrok_env:/mnt/.zrok
|
||||||
|
@ -32,6 +32,8 @@ zrok frontends are the parts of zrok that proxy incoming public web traffic to z
|
|||||||
|
|
||||||
Choose between installing the Linux package or running zrok with Docker (Linux, macOS, or Windows).
|
Choose between installing the Linux package or running zrok with Docker (Linux, macOS, or Windows).
|
||||||
|
|
||||||
|
{/* The OsTabs component must be aligned with these specific values: `Linux`, `Docker` which are auto-selected based on
|
||||||
|
the detected OS of the visitor's browser */}
|
||||||
<OsTabs
|
<OsTabs
|
||||||
queryString="os"
|
queryString="os"
|
||||||
values={[
|
values={[
|
||||||
|
@ -7,9 +7,9 @@ function OsTabs(props) {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// Based on the OS or any other client-side condition, set the default value
|
// Based on the OS or any other client-side condition, set the default value
|
||||||
const tabs = ['Mac OS', 'Windows', 'Linux']
|
const dockerTabs = ['Mac OS', 'Windows']
|
||||||
if (tabs.includes(osName)) {
|
if (dockerTabs.includes(osName)) {
|
||||||
setDefaultValue(osName);
|
setDefaultValue('Docker');
|
||||||
} else {
|
} else {
|
||||||
setDefaultValue('Linux');
|
setDefaultValue('Linux');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user