Some notes on how we set up a local Raspberry Pi server as a Federated Wiki Farm.
# Port 80
We need port 80 open for wiki links to work correctly when they are authored locally. However:
> **Warning:** Port 80 is restricted by default by many operating systems as it is a classic attack vector which can pass through firewalls.
Ignoring this issue we temporary permit incoming requests to pi on port 80 with:
sudo setcap 'cap_net_bind_service=+ep' /usr/bin/node
This wil need to be redone everytime we upgrade node. We should instead run wiki behind a lightweight reverse proxy together with mkcert. However we skip this for now.
Next we use systemd to restart the wiki service, and check its launched properly:
systemctl --user restart federated-wiki systemctl --user status federated-wiki