我有多个reverse_proxy条目,它们共享同一个目标主机。难道没有一种方法可以在order文件中设置一个全局变量来重用它吗?
app1.dns {
reverse_proxy myhost:xxxx
}
app2.dns {
reverse_proxy myhost:yyyy
}
app3.dns {
reverse_proxy myhost:zzzz
}发布于 2022-03-28 14:22:54
卡迪片段
可重用的全局配置可以在caddyfile中的任何地方定义一次使用,例如在这里。
(snippet) {
respond "Yahaha! You found {args.0}!"
}
(hello) {
respond "Hello {args.0}!"
}
a.example.com {
import snippet "Example A"
}
b.example.com {
import hello "World"
}https://stackoverflow.com/questions/71343818
复制相似问题