A labyrinth of PHP scripts that implement ActivityPub
Go to file
Nat f1669d6e83 init 2024-09-01 11:54:41 -07:00
bin init 2024-09-01 11:54:41 -07:00
etc init 2024-09-01 11:54:41 -07:00
public init 2024-09-01 11:54:41 -07:00
.gitignore init 2024-09-01 11:54:41 -07:00
README.md init 2024-09-01 11:54:41 -07:00
database.ddl init 2024-09-01 11:54:41 -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