From d110aba7ef0d7c4ffbecde5a3da1331efb76edd1 Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Thu, 4 Jul 2024 16:34:42 +0700 Subject: [PATCH] More updates --- Dockerfile | 5 ++--- README.md | 7 +++---- nginx/server.conf | 6 +++--- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 98bec2f5..0fa29320 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,14 +2,13 @@ FROM node:lts-alpine WORKDIR /opt/activitypub -COPY .eslintrc.js . -COPY tsconfig.json . - COPY package.json . COPY yarn.lock . RUN yarn +COPY tsconfig.json . + COPY src ./src EXPOSE 8080 diff --git a/README.md b/README.md index 484a6839..d751d6a4 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,9 @@ ## Project Overview -**ActivityPub V3 Final** is a multitenant ActivityPub service built using the Fedify framework. This service is designed to integrate seamlessly with the Ghost blogging platform, enabling ActivityPub functionality such as follow requests and publish requests. Ghost communicates with this service to manage all ActivityPub data. +**ActivityPub V3 Final** is a multitenant ActivityPub service built using the Fedify framework. This service is designed to integrate seamlessly with the Ghost blogging platform, enabling ActivityPub functionality such as follow requests and publishing to the fediverse. Ghost communicates with this service to manage all ActivityPub data. -**Note:** This project is intended for development use only and is not suitable for production environments. +**Note:** ⚠️ This project is intended for development use only and is not suitable for production environments. ## How It Works @@ -22,8 +22,7 @@ The service integrates with Ghost by sitting in front of Ghost and intercepting ## Running Locally / Development -To run this service, you need `docker` installed - this has only been tested on MacOS using Docker for Mac and OrbStack. - +You need `docker` installed - this has only been tested on MacOS using Docker for Mac and OrbStack. ### Setup Steps diff --git a/nginx/server.conf b/nginx/server.conf index 41cc2161..33255e7b 100644 --- a/nginx/server.conf +++ b/nginx/server.conf @@ -3,7 +3,7 @@ server { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-Proto https; proxy_pass http://activitypub:8080; } @@ -12,7 +12,7 @@ server { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-Proto https; proxy_pass http://activitypub:8080; } @@ -21,7 +21,7 @@ server { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-Proto https; proxy_pass http://host.docker.internal:2368; }