From f3022138a4a6cd577cc9f23a04e54fe77cf42fbd Mon Sep 17 00:00:00 2001 From: Michael Barrett Date: Tue, 2 Sep 2025 15:28:41 +0100 Subject: [PATCH] Refactored activitypub env vars (#65) no ref Refactored the activitypub env vars: - Removed `USE_MQ` as this is only required when the value needs to be set to `true` - Removed `PORT` as the application is now running on port 8080 by default - Removed `ALLOW_PRIVATE_ADDRES` as this is not needed for `production` environment - Added `ACTIVITYPUB_COLLECTION_PAGE_SIZE` as this is required for the `following` dispatcher to work correctly - Added link to documented env vars --- compose.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/compose.yml b/compose.yml index 9221453..073ac5d 100644 --- a/compose.yml +++ b/compose.yml @@ -109,14 +109,13 @@ services: volumes: - ${UPLOAD_LOCATION:-./data/ghost}:/opt/activitypub/content environment: + # See https://github.com/TryGhost/ActivityPub/blob/main/docs/env-vars.md NODE_ENV: production - PORT: 8080 + ACTIVITYPUB_COLLECTION_PAGE_SIZE: 20 MYSQL_HOST: db MYSQL_USER: ${DATABASE_USER:-ghost} MYSQL_PASSWORD: ${DATABASE_PASSWORD:?DATABASE_PASSWORD environment variable is required} MYSQL_DATABASE: activitypub - ALLOW_PRIVATE_ADDRESS: true - USE_MQ: false LOCAL_STORAGE_PATH: /opt/activitypub/content/images/activitypub LOCAL_STORAGE_HOSTING_URL: https://${DOMAIN}/content/images/activitypub depends_on: