From afa3bb1ea9f252574d7633adfec896e707689f92 Mon Sep 17 00:00:00 2001 From: James Loh Date: Thu, 10 Jul 2025 15:14:39 +1000 Subject: [PATCH] Update AP with additional endpoints and make default proxying easier --- Caddyfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Caddyfile b/Caddyfile index fa0c017..14bd1f2 100644 --- a/Caddyfile +++ b/Caddyfile @@ -13,10 +13,10 @@ rewrite * {re.analytics_match.2} reverse_proxy traffic-analytics:3000 } - + + # ActivityPub # Proxy activitypub requests /.ghost/activitypub/ - @activitypub_paths path_regexp activitypub_match ^/\.ghost/activitypub(.*)$ - handle @activitypub_paths { + handle /.ghost/activitypub/* { reverse_proxy activitypub:8080 } @@ -24,7 +24,11 @@ reverse_proxy activitypub:8080 } - # Default proxy to Ghost + handle /.well-known/nodeinfo { + reverse_proxy activitypub:8080 + } + + # Default proxy everything else to Ghost handle { reverse_proxy ghost:2368 }