From 6c016b813c9c323d0465e3606d30ecfba862699a Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Mon, 7 Nov 2022 16:19:29 +0000 Subject: [PATCH] Add relayd.conf to contrib/ --- TODO.txt | 2 +- contrib/relayd.conf | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 contrib/relayd.conf 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 +} +