A labyrinth of PHP scripts that implement ActivityPub
Go to file
Nat ba8e95fa4f fix: exclude query params from REQUEST_PATH 2024-09-01 14:56:21 -07:00
bin init 2024-09-01 11:54:41 -07:00
etc fix: exclude query params from REQUEST_PATH 2024-09-01 14:56:21 -07:00
public fix: exclude query params from REQUEST_PATH 2024-09-01 14:56:21 -07:00
.gitignore chore: add vim swap files to gitignore 2024-09-01 12:06:50 -07:00
README.md init 2024-09-01 11:54:41 -07:00
database.ddl fix: add foreign references to activity table 2024-09-01 14:53:09 -07:00
init.php init 2024-09-01 11:54:41 -07:00

README.md

hostas2

A backend for your ActivityPub-enabled website

Setup

For Nginx:

export HOSTAS_ROOT=/path/to/root

# Create the database
sudo php init.php

# Link the necessary components around the file system
ln -s $HOSTAS_ROOT/etc /etc/hostas
ln -s $HOSTAS_ROOT/etc/nginx.conf /etc/nginx/sites-enabled/example.net
ln -s $HOSTAS_ROOT/public /var/www/example.net

# Restart Nginx
sudo service nginx restart

# Generate the signing keys for activities
openssl genrsa -out $HOSTAS_ROOT/etc/keys/private.pem 2048
openssl rsa -in $HOSTAS_ROOT/etc/keys/private.pem -outform PEM -pubout -out $HOSTAS_ROOT/etc/keys/public.pem

# Create and set up the config
cp $HOSTAS_ROOT/etc/config.example.php $HOSTAS_ROOT/public/config.php
vim $HOSTAS_ROOT/public/config.php