diff --git a/Caddyfile b/Caddyfile index 4c5cba5..fa0c017 100644 --- a/Caddyfile +++ b/Caddyfile @@ -14,12 +14,16 @@ 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(.*)$ + # Proxy activitypub requests /.ghost/activitypub/ + @activitypub_paths path_regexp activitypub_match ^/\.ghost/activitypub(.*)$ handle @activitypub_paths { reverse_proxy activitypub:8080 } + handle /.well-known/webfinger { + reverse_proxy activitypub:8080 + } + # Default proxy to Ghost handle { reverse_proxy ghost:2368