Go to file
2020-02-26 14:24:01 -05:00
uncia stop printing date to systemd log 2020-02-26 14:24:01 -05:00
.gitignore finish up webui 2020-02-08 11:40:28 -05:00
LICENSE rewrite start 2020-01-11 02:08:39 -05:00
README.md multiple fixes and start on account page 2020-02-21 02:59:09 -05:00
reload.cfg multiple fixes and start on account page 2020-02-21 02:59:09 -05:00
requirements.txt finish up webui 2020-02-08 11:40:28 -05:00

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

python3 -m pip install -r requirements.txt

Note: Run this after installing pyenv

Installation

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

python3 -m relay
$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