mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
28 lines
684 B
Caddyfile
28 lines
684 B
Caddyfile
{
|
|
admin off
|
|
}
|
|
|
|
:8000 {
|
|
# Reverse proxy PostHog through our own domain so ad blockers don't drop analytics requests.
|
|
# Static assets (e.g. array.js) are served from a separate PostHog assets host.
|
|
handle_path /phproxy/static/* {
|
|
rewrite * /static{uri}
|
|
reverse_proxy https://us-assets.i.posthog.com {
|
|
header_up Host us-assets.i.posthog.com
|
|
}
|
|
}
|
|
handle_path /phproxy/* {
|
|
reverse_proxy https://us.i.posthog.com {
|
|
header_up Host us.i.posthog.com
|
|
}
|
|
}
|
|
|
|
root * /usr/share/caddy
|
|
|
|
# Serve clean URLs for landing pages, e.g. /hub -> hub.html.
|
|
try_files {path}.html
|
|
|
|
file_server
|
|
log
|
|
}
|