Find a file
2022-06-03 09:52:32 +01:00
public/files replace nunjucks profile rendering with vue, start listing of recent posts on profiel page, support full IRI object ids in object GET route so that remote origin objects can be fetched from local cache for display in Vue pages 2019-10-12 13:30:33 -05:00
test add postman request library 2019-09-30 20:55:54 -05:00
web Button: Fix typo 2022-06-03 09:52:32 +01:00
.dockerignore add docker deployment 2021-11-01 18:05:14 -05:00
.env.defaults add docker deployment 2021-11-01 18:05:14 -05:00
.gitignore add docker deployment 2021-11-01 18:05:14 -05:00
CHANGELOG.md changelog 2022-05-15 14:27:12 -05:00
config-template.json generate keys for local users 2019-09-14 21:49:33 -05:00
docker-compose.yml fix restart policy 2022-01-01 16:28:45 -06:00
Dockerfile add docker deployment 2021-11-01 18:05:14 -05:00
index.js Added PROXY_MODE. Close #45 2022-05-08 10:43:33 -05:00
LICENSE Create LICENSE 2019-09-21 17:03:29 -05:00
package-lock.json 1.2.0 2022-05-15 14:27:15 -05:00
package.json 1.2.0 2022-05-15 14:27:15 -05:00
README.md Added PROXY_MODE. Close #45 2022-05-08 10:43:33 -05:00

Gup.pe

Social groups for the fediverse - making it easy to connect and meet new people based on shared interests without the manipulation of your attention to maximize ad revenue nor the walled garden lock-in of capitalist social media.

This server-2-server ActivityPub implementation adds decentralized, federaded "groups" support across all ActivityPub compliant social media networks. Users join groups by following group-type actors on Guppe servers and contribute to groups by mentioning those same actors in a post. Guppe group actors will automatically forward posts they receive to all group members so that everyone in the group sees any post made to the group. Guppe group actors' profiles (e.g. outboxes) also serve as a group discussion history. Creation of new groups is automatic, users simply search for or mention a new group and it will be created.

Tech stack

Mostly powered by activitypub-express from Immers Space. The gup.pe server app, index.js is 200 lines of code, just adding the auto-create actor, auto-accept follow, and auto-boost from inbox behaviors to the base apex setup.

There's also an HTML front-end using Vue (/web) to display popular groups and provide fallback user profile discovery.

Installation

Dockerfile and docker-compose.yml are provided for easy install

git clone https://github.com/wmurphyrd/guppe.git
cd guppe
cp .env.defaults .env
echo DOMAIN=yourdomain.com >> .env
docker-compose up --build -d

Updating

Backup database:

docker-compose exec -T mongodb sh -c 'mongodump --archive' > guppe.dump

Fetch latest code & restart server:

git pull
docker-compose up --build -d

Optional configuration

Additional values can be set in .env file

Setting Description
PROXY_MODE Enable use behind an SSL-terminating proxy or load balancer, serves over http instead of https and sets Express trust proxy setting to the value of PROXY_MODE (e.g. 1, other options) See note.

Notes on use with a reverse proxy: When setting proxyMode, you must ensure your reverse proxy sets the following headers: X-Forwarded-For, X-Forwarded-Host, and X-Forwarded-Proto (example for nginx below).

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;

License

Copyright (c) 2021 William Murphy. Licensed under the AGPL-3