mirror of
https://github.com/openziti/zrok.git
synced 2025-06-24 19:51:32 +02:00
parent
0c211bcccd
commit
2388447427
@ -1,10 +1,18 @@
|
|||||||
|
# Multiple Backends Example
|
||||||
|
#
|
||||||
http:// {
|
http:// {
|
||||||
|
# Bind to the zrok share
|
||||||
bind {{ .ZrokBindAddress }}
|
bind {{ .ZrokBindAddress }}
|
||||||
|
|
||||||
|
# Handle paths starting with `/zrok/*`
|
||||||
|
# This will also strip the `/zrok/` from the path before sending to the backend
|
||||||
handle_path /zrok/* {
|
handle_path /zrok/* {
|
||||||
reverse_proxy https://zrok.io {
|
reverse_proxy https://zrok.io {
|
||||||
header_up Host zrok.io
|
header_up Host zrok.io
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# All other traffic goes to localhost:3000
|
||||||
reverse_proxy /* 127.0.0.1:3000 {
|
reverse_proxy /* 127.0.0.1:3000 {
|
||||||
header_up Host localhost:3000
|
header_up Host localhost:3000
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user