zrok/etc/caddy
2023-12-20 08:49:50 -05:00
..
multiple_upstream.Caddyfile stop listening on 2019/tcp with the caddy admin API in zrok caddy backend examples 2023-12-20 08:49:50 -05:00
README.md add zrok-share package 2023-11-15 16:10:19 -05:00
simple_reverse_proxy.Caddyfile stop listening on 2019/tcp with the caddy admin API in zrok caddy backend examples 2023-12-20 08:49:50 -05:00

Caddyfile Samples

The Caddyfile samples in this directory are for use with --backend-mode caddy ./my.Caddyfile which runs an embedded Caddy server.

With a zrok reserved share, you have the option to permanently override the path to the Caddyfile when you run zrok share reserved ${ZROK_RESERVED_TOKEN} --override-endpoint new.Caddyfile.

The Caddyfile must have this structure because it is rendered as a Go template by zrok to bind the HTTP listener.

http:// {
    bind {{ .ZrokBindAddress }}
    # customize reverse_proxy, file_server, etc.
}

Notes

multiple_upstream.Caddyfile is bundled in the zrok-share package for Linux as an example Caddyfile.