Add _a analytics handler to caddy

This commit is contained in:
Tobias Reisinger 2023-12-18 09:17:09 +01:00
parent 13100548b9
commit 6c6ade1b9a
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
3 changed files with 14 additions and 2 deletions
roles/caddy/files

View file

@ -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}
}
}
}