# 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 19
# self = https://watcher.sour.is/conv/tabrhxa
@fastidious Sorry I don't have one myself, I avoid SystemD like the plague 🤣 -- But if one is developed I will happily add it to the repo's codebase in like ./contrib/ or ./deploy and/or to the Wiki 👌
@fastidious Sorry I don't have one myself, I avoid SystemD like the plague 🤣 -- But if one is developed I will happily add it to the repo's codebase in like ./contrib/ or ./deploy and/or to the Wiki 👌
@prologic I will come up with one.
I just nohup my pod like a pauper 🤣
@fastidious 👌
@fastidious 👌
@eldersnake 🤣
@eldersnake 🤣
@fastidious\n\n
\n661 0 jj@royale:~$ cat /etc/systemd/system/multi-user.target.wants/yarnd.service \n[Unit]\nDescription=🧶Yarn.social is an open-source, self-hosted, de-centralised micro-blogging platform\nDocumentation=https://git.mills.io/yarnsocial/yarn\nAfter=network.target\n\n[Service]\nType=simple\nRestart=on-failure\nRestartSec=10\nStartLimitBurst=5\nStartLimitInterval=100\nUser=twt\nGroup=twt\nExecStart=/usr/local/bin/yarnd -ORt "dark"\nEnvironmentFile=/home/twt/twtd_env\n\n[Install]\nWantedBy=multi-user.target\n
@jlj excellent, thank you! The EnvironmentFile is just a file with export VARIABLE=value in it, right?
@fastidious Actually, it works as a simple kv:\n\n
\nADMIN_EMAIL=jlj@ctrl-c.club\nADMIN_USER=support\nAPI_SIGNING_KEY=*redacted*\nBASE_URL=https://twt.nfld.uk\nCOOKIE_SECRET=*redacted*\nDATA=/home/twt/data\nDESCRIPTION="🧶Yarn.social is a self-hosted, Twitter™-esque, de-centralised micro-blogging platform. No ads, no tracking; your content, your data!"\nMAGICLINK_SECRET=*redacted*\nSMTP_FROM=nfld@mailo.com\nSMTP_HOST=mail.mailo.com\nSMTP_PASS=*redacted*\nSMTP_USER=nfld@mailo.com\nSTORE=bitcask:///home/twt/twtxt.db\n
Oh, and, being lazy, I've just symlinked that /usr/local executable to my repo clone, so all I have to do is issue a restart after the make to complete an upgrade.
@jlj I would probably do the same. I call it being efficient. Hahaha!
@jlj can you send a PR for this? 🤔
@jlj can you send a PR for this? 🤔
@jlj perhaps also if you could document setting this up with
SystemD on our wiki? 🤔
@jlj perhaps also if you could document setting this up with
SystemD on our wiki? 🤔
@jlj perhaps also if you could document setting this up with \nSystemD on our wiki? 🤔
@prologic Sure! On both counts! 😁