mirror of
https://github.com/d0zingcat/ghost-docker.git
synced 2026-05-19 15:09:59 +00:00
Updated caddy path handling for activitypub
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user