uncia | ||
.gitignore | ||
LICENSE | ||
migrate.py | ||
README.md | ||
relay.py | ||
reload.cfg | ||
requirements.txt |
Uncia Relay
A light, but featureful, ActivityPub relay. Public posts pushed to the relay will be forwarded to every other instance subscribed to the relay
Dependencies
Debian
sudo apt install python3-dev libuv1 libuv1-dev
Note: Still need to figure out all the dependencies
Python
pip install -r requirements.txt
Note: Run this after installing pyenv
Installation
pyenv (optional, but recommended)
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bashrc
Restart terminal session or run bash
again
env PYTHON_CONFIGURE_OPTS="--enabled-shared" pyenv install 3.8.0
PostgreSQL
Create a postgresql user if you haven't already
sudo -u postgres psql -c "CREATE USER $USER WITH createdb;"
###Uncia
Run the relay to generate a default environment file and then edit it if necessary
./relay.py
$EDITOR data/production.env
Copy the link in the terminal output and paste it in your browser to setup the rest of the relay. A new link will be displayed once you restart the relay to setup an admin account