ActivityPub with Ghost in a subdirectory

Hi all,

I am very excited about the ActivityPub functionality in Ghost. It seems though that using it is currently not possible if Ghost is used within a subdirectory of the domain it’s running on, and not in the root (www.myblog.com/blog vs. www.myblog.com) – this is stated so at https://ghost.org/help/social-web/

However, there’s no reason, technical or whatever, given why that’s the case. Could anyone shed some light on that limitation? Is it going to change in the future? Is there maybe even a workaround? I’d love to use ActivityPub with my Ghost blog, but moving it out of the subdirectory would suck.

Thanks!

I think it probably relates to some baked-in assumptions about where the content is, when the activitypub service talks to Ghost. You could /possibly/ handle it by proxying.

I’d be happy to proxy things. @Cathy_Sarisky, any hints what exactly may need to be proxied/redirected?

I’ve found the relevant commit in the meantime, but that one also doesn’t give any reasoning…

Ah, interesting. So it’ll need a rewrite, too, I guess.

I’ll get in touch with sagzy, the author of the relevant code portions, he can likely shed some light on that particular limitation. once I know more, I’ll update the thread of course :+1: