mirror of
https://github.com/d0zingcat/ghost-docker.git
synced 2026-05-31 07:26:54 +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/)
|
# Proxy analytics requests with any prefix (e.g. /.ghost/analytics/ or /blog/.ghost/analytics/)
|
||||||
@analytics_paths path_regexp analytics_match ^(.*)/\.ghost/analytics(.*)$
|
@analytics_paths path_regexp analytics_match ^(.*)/\.ghost/analytics(.*)$
|
||||||
handle @analytics_paths {
|
handle @analytics_paths {
|
||||||
rewrite * {re.analytics_match.2}
|
rewrite * {re.analytic_match.2}
|
||||||
reverse_proxy traffic-analytics:3000
|
reverse_proxy traffic-analytics:3000
|
||||||
}
|
}
|
||||||
|
|
||||||
# Proxy activitypub requests with any prefix (e.g. /.ghost/activitypub/ or /blog/.ghost/activitypub/)
|
# Proxy activitypub requests with any prefix (e.g. /.ghost/activitypub/ or /blog/.ghost/activitypub/)
|
||||||
@activitypub_paths path_regexp activitypub_match ^(.*)/\.ghost/activitypub(.*)$
|
@activitypub_paths path_regexp activitypub_match ^(.*)/\.ghost/activitypub(.*)$
|
||||||
handle @activitypub_paths {
|
handle @activitypub_paths {
|
||||||
rewrite * {re.activitypub_match.2}
|
|
||||||
reverse_proxy activitypub:8080
|
reverse_proxy activitypub:8080
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user