forked from lda/telodendria
Add relayd.conf to contrib/
This commit is contained in:
parent
95c566d314
commit
6c016b813c
2 changed files with 23 additions and 1 deletions
2
TODO.txt
2
TODO.txt
|
@ -18,7 +18,7 @@ Due: January 1, 2023
|
||||||
[x] Make memory info access O(1)
|
[x] Make memory info access O(1)
|
||||||
[ ] Make config option 'id' optional; print warning if not present started as root.
|
[ ] Make config option 'id' optional; print warning if not present started as root.
|
||||||
[x] Write install and uninstall scripts
|
[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-'
|
[x] Refactor man pages to be prefaced with 'telodendria-'
|
||||||
|
|
||||||
Milestone: v0.2.0
|
Milestone: v0.2.0
|
||||||
|
|
22
contrib/relayd.conf
Normal file
22
contrib/relayd.conf
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
table <telodendria> { localhost }
|
||||||
|
|
||||||
|
http protocol httpproxy {
|
||||||
|
pass request quick path "/_matrix/*" forward to <telodendria>
|
||||||
|
pass request quick path "/.well-known/matrix/*" forward to <telodendria>
|
||||||
|
|
||||||
|
# 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 <telodendria> port 8008
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue