Updated caddy path handling for activitypub

This commit is contained in:
Joe Grigg
2025-06-03 11:07:51 +01:00
parent 7ac2f94615
commit fda8a96f72

View File

@@ -10,14 +10,13 @@
# Proxy analytics requests with any prefix (e.g. /.ghost/analytics/ or /blog/.ghost/analytics/)
@analytics_paths path_regexp analytics_match ^(.*)/\.ghost/analytics(.*)$
handle @analytics_paths {
rewrite * {re.analytics_match.2}
rewrite * {re.analytic_match.2}
reverse_proxy traffic-analytics:3000
}
# Proxy activitypub requests with any prefix (e.g. /.ghost/activitypub/ or /blog/.ghost/activitypub/)
@activitypub_paths path_regexp activitypub_match ^(.*)/\.ghost/activitypub(.*)$
handle @activitypub_paths {
rewrite * {re.activitypub_match.2}
reverse_proxy activitypub:8080
}