Add _a analytics handler to caddy
This commit is contained in:
parent
13100548b9
commit
6c6ade1b9a
3 changed files with 14 additions and 2 deletions
roles/caddy/files
|
@ -30,8 +30,16 @@
|
|||
}
|
||||
|
||||
(faas) {
|
||||
rewrite * /function/{args[0]}{uri}
|
||||
reverse_proxy https://faas.serguzim.me {
|
||||
rewrite * /function/{args[0]}{uri}
|
||||
reverse_proxy https://faas.serguzim.me {
|
||||
header_up Host {http.reverse_proxy.upstream.hostport}
|
||||
}
|
||||
}
|
||||
|
||||
(analytics) {
|
||||
handle_path /_a/* {
|
||||
reverse_proxy https://analytics.serguzim.me {
|
||||
header_up Host {http.reverse_proxy.upstream.hostport}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue