all repos — aaoth.xyz @ 19673654ab83e7a9735c64dad632899855620c9c

aaoth.xyz website

add info about my matrix server

:)
la-ninpre leobrekalini@gmail.com
Sun, 23 May 2021 20:20:13 +0300
commit

19673654ab83e7a9735c64dad632899855620c9c

parent

7d046658ee53378e88404f40aac4a2c8e2d97bf1

M _data/links.yml_data/links.yml

@@ -19,3 +19,6 @@ type: bandcamp

- name: hälsorisk link: https://haelsorisk.bandcamp.com type: bandcamp +#- name: element + #link: https://element.aaoth.xyz + #type: matrix
A _posts/2021-05-23-join-the-test-of-my-matrix-server.md

@@ -0,0 +1,58 @@

+--- +title: join the test of my matrix server +date: 2021-05-23T19:57:34+03:00 +author: la-ninpre +tags: openbsd testing matrix +--- + +i launched my instance of [matrix][0] server recently. it runs on my openbsd vps +and the server software i'm using is [synapse][1]. homeserver address is +(unsurprizingly) `matrix.aaoth.xyz`. + +i also launched an instance of [element][2] matrix web-client on +[element.aaoth.xyz][3], so you can try it. + +[0]:https://matrix.org +[1]:https://matrix.org/docs/projects/server/synapse" +[2]:https://element.io +[3]:https://element.aaoth.xyz + +<!--more--> + +matrix is relatively new standard for instant messaging. the main reason i am +interested in it is that it's open-source. it means that anyone could launch +their instance of synapse and be happy with it. +it also means that the whole system is decentralized, providing protection +against global surveillance. + +## about my server + +after you create an account, you will be connected to the broadcast room. +it is unencrypted and read-only. +there are some links to other rooms. + +note that everything going on with my server should be considered temporary +and i could be able to stop, disable or wipe everything completely, +so don't rely on this as production-ready tool. + +also note that pretty much everything is in russian, because i launched matrix +primarily for my friends. + +## about openbsd + +here is a tutorial by the great man **robert d herb** who addressed a lot of +quirks installing synapse on openbsd, which helped me a lot: +[running a matrix homeserver with synapse and element][4] + +because i haven't figured out completely how openbsd's relayd is working, +i broke my [fossils][5]. i hope i'll fix them later, but now they look messy. +there are some issues, i think, with internal structure of fossil's ui. +it needs to be served directly by httpd. but for synapse to work it is mandatory +to run relayd as reverse proxy. + +if you know how to shift some portion of traffic to relayd and some to httpd, +please, [drop me a line][6]. + +[4]:https://robertdherb.com/things/matrix.html +[5]:https://fsl.aaoth.xyz +[6]:mailto:aaoth@aaoth.xyz
A aaoth_new_post.sh

@@ -0,0 +1,102 @@

+#!/bin/sh + +SITE_DIR="$HOME/Documents/aaoth.xyz" +POSTS_DIR="$SITE_DIR/_posts" + +DATE_SHORT=$(date -I) +DATE_LONG=$(date -Isec) + +usage() { + echo "usage:" + echo " $0 [OPTIONS]" + echo + echo "options:" + echo " -t, --title <title>" + echo " specify new post title" + echo " -g, --tags <tags>" + echo " specify new post tags" + echo " -h, --help" + echo " print usage information" +} + +read_title() { + echo -n "new post title: " + read TITLE +} + +read_tags() { + echo -n "new post tags: " + read TAGS +} + +create_tag_page() { + cat <<- TAG > "$SITE_DIR/tags/$1.md" +--- +layout: tagsort +tag: $1 +title: "tags: $1" +permalink: /tags/$1/ +--- +TAG +} + +cd $SITE_DIR + +# if there are no arguments specified, run interactively +if [ $# -gt 0 ] +then + while [ -n "$1" ] + do + case "$1" in + --title|-t) + shift + TITLE=$1 + ;; + --tags|-g) + shift + TAGS=$1 + ;; + --help|-h) + usage + exit 2 + ;; + *) + usage + exit 1 + ;; + esac + shift + done +fi + +[ -z "$TITLE" ] && read_title +[ -z "$TITLE" ] && echo "title could not be empty" && exit 1 + +[ -z "$TAGS" ] && read_tags +[ -z "$TAGS" ] && echo "specify at least one tag" && exit 1 + +TITLE_FILE=$(echo $TITLE | tr '[A-Z]' '[a-z]' | sed 's/ /-/g') + +POST_FILENAME="$POSTS_DIR/$DATE_SHORT-$TITLE_FILE.md" + +for _tag in $TAGS +do + [ ! -f "./tags/$_tag.md" ] \ + && echo "tag $_tag is not present, creating one" \ + && create_tag_page $_tag +done + +# template is currently hardcoded +cat <<-EOF > "$POST_FILENAME" +--- +title: $TITLE +date: $DATE_LONG +author: la-ninpre +tags: $TAGS +--- + +<!--more--> + +EOF + +nvim -c "normal 6jo" -c "startinsert" $POST_FILENAME
A tags/matrix.md

@@ -0,0 +1,6 @@

+--- +layout: tagsort +tag: matrix +title: "tags: matrix" +permalink: /tags/matrix/ +---
A tags/testing.md

@@ -0,0 +1,6 @@

+--- +layout: tagsort +tag: testing +title: "tags: testing" +permalink: /tags/testing/ +---