zrok/etc/caddy/multiple_upstream.Caddyfile

20 lines
445 B
Plaintext
Raw Normal View History

# Multiple Backends Example
#
2023-08-31 20:05:13 +02:00
http:// {
# Bind to the zrok share
2023-08-31 20:05:13 +02:00
bind {{ .ZrokBindAddress }}
# Handle paths starting with `/zrok/*`
# This will also strip the `/zrok/` from the path before sending to the backend
handle_path /zrok/* {
reverse_proxy https://zrok.io {
header_up Host zrok.io
}
}
# All other traffic goes to localhost:3000
2023-08-31 20:05:13 +02:00
reverse_proxy /* 127.0.0.1:3000 {
header_up Host localhost:3000
}
}