# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 10
# self = https://watcher.sour.is/conv/uobojra
@jlj, before I forget. When you have a chance, remember to contribute that systemd information on Yarn's wiki!
@fastidious Did you need special permission to push to that repo? @prologic, I think that's what this error means, yes?


jj@zoo:~/Projects/yarn.wiki$ git push
Gitea: Unauthorized
Gitea: Unauthorized
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
This is what I have so far, btw. :-)

# Running under systemd

***Note: yarn.social is actively developed. Please see the latest documentation to take advantage of all the latest command line switches and configuration file parameters. The following example will likely be dated (but working!).*

sudo vi /lib/systemd/system/yarnd.service

[Unit]
Description=🧶Yarn.social is an open-source, self-hosted, de-centralised micro-blogging platform
Documentation=https://git.mills.io/yarnsocial/yarn
After=network.target

[Service]
Type=simple
Restart=on-failure
RestartSec=10
StartLimitBurst=5
StartLimitInterval=100
User=yarn.social[^1]
Group=yarn.social
ExecStart=/usr/local/bin/yarnd -OR
EnvironmentFile=/home/yarn.social/yarnd.config[^2]

[Install]
WantedBy=multi-user.target

:wq

sudo systemctl enable yarnd

sudo cat /home/yarn.social/yarnd.config

ADMIN_EMAIL=dog@heaven.above
ADMIN_USER=dog
API_SIGNING_KEY=not-for-m0rtal-eyes
BASE_URL=https://yarn.heaven.above
COOKIE_SECRET=also-not-for-m0rtal-eyes
DATA=/home/yarn.social/data
DESCRIPTION="🧶Yarn.social is a self-hosted, Twitter™-esque, de-centralised micro-blogging platform. No ads, no tracking; your content, your data!"
MAGICLINK_SECRET=definitely-not-for-m0rtal-eyes
SMTP_FROM=gabriel@heaven.above
SMTP_HOST=mail.heaven.above
SMTP_PASS=aaand-fo-ahem-not-for-m0rtal-eyes-either
SMTP_USER=gabriel@heaven.above
STORE=bitcask:///home/yarn.social/yarn.db

sudo systemctl restart yarnd

[^1]: Running this under a separate account is not required.
[^2]: You could also run this from /etc/, of course.****
@jlj Ahh maybe I didn't add you as a Collaborate with "Write" access. Lemme check...
@jlj Ahh maybe I didn't add you as a Collaborate with "Write" access. Lemme check...
Try now 👌
Try now 👌
@prologic That did it! Ta! :-)
@jlj Awesome 👌
@jlj Awesome 👌