Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,22 @@
rewrite * {re.analytics_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 {

# ActivityPub
# Proxy activitypub requests /.ghost/activitypub/
handle /.ghost/activitypub/* {
reverse_proxy activitypub:8080
}

handle /.well-known/webfinger {
reverse_proxy activitypub:8080
}

handle /.well-known/nodeinfo {
reverse_proxy activitypub:8080
}

# Default proxy to Ghost
# Default proxy everything else to Ghost
handle {
reverse_proxy ghost:2368
}
Expand Down