diff --git a/TODO.txt b/TODO.txt index 146beeb..6496b8e 100644 --- a/TODO.txt +++ b/TODO.txt @@ -18,7 +18,7 @@ Due: January 1, 2023 [x] Make memory info access O(1) [ ] Make config option 'id' optional; print warning if not present started as root. [x] Write install and uninstall scripts -[ ] Add relayd example to contrib/ +[x] Add relayd example to contrib/ [x] Refactor man pages to be prefaced with 'telodendria-' Milestone: v0.2.0 diff --git a/contrib/relayd.conf b/contrib/relayd.conf new file mode 100644 index 0000000..05c6a4f --- /dev/null +++ b/contrib/relayd.conf @@ -0,0 +1,22 @@ +table { localhost } + +http protocol httpproxy { + pass request quick path "/_matrix/*" forward to + pass request quick path "/.well-known/matrix/*" forward to + + # You'll have to generate the following for this to work: + # /etc/ssl/telodendria.crt /etc/ssl/private/telodendria.key + tls keypair "telodendria" + + block + return error +} + +relay proxy { + listen on 127.0.0.1 port https tls + + protocol httpproxy + + transparent forward to port 8008 +} +