Started routing activitypub requests to activitypub container

This commit is contained in:
Joe Grigg
2025-06-03 10:25:07 +01:00
parent 6fae0bdc68
commit 2a65c4ec66
2 changed files with 9 additions and 2 deletions

View File

@@ -13,6 +13,13 @@
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 {
rewrite * {re.activitypub_match.2}
reverse_proxy traffic-analytics:8080
}
# Default proxy to Ghost
handle {

View File

@@ -55,8 +55,8 @@ services:
db:
image: mysql:8.0
restart: always
ports:
- "3306:3306"
expose:
- "3306"
environment:
MYSQL_ROOT_PASSWORD: ${DATABASE_ROOT_PASSWORD:?DATABASE_ROOT_PASSWORD environment variable is required}
MYSQL_USER: ${DATABASE_USER:-ghost}