Skip to content

Commit

Permalink
even more improved multiple_upstream example (#330, #388)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelquigley committed Sep 7, 2023
1 parent 0c211bc commit 2388447
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions etc/caddy/multiple_upstream.Caddyfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
# Multiple Backends Example
#
http:// {
# Bind to the zrok share
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
reverse_proxy /* 127.0.0.1:3000 {
header_up Host localhost:3000
}
Expand Down

0 comments on commit 2388447

Please sign in to comment.