mirror of
https://github.com/aykhans/my-self-host-services.git
synced 2026-10-17 20:43:52 +00:00
add matrix
This commit is contained in:
1 parent
14f48aae55
commit
c2622dc6ac
7 files changed
+117
-4
No files matched your search
@@ -45,6 +45,9 @@ GOPKG_PROXY_DOMAIN=
|
||||
############# Ech0 #############
|
||||
ECH0_DOMAIN=
|
||||
|
||||
############# Matrix #############
|
||||
MATRIX_DOMAIN=
|
||||
|
||||
############# CrowdSec #############
|
||||
# Same value as CROWDSEC_BOUNCER_KEY_CADDY in crowdsec/.env
|
||||
CROWDSEC_API_KEY=
|
||||
+33
-4
@@ -155,10 +155,23 @@
|
||||
request_body {
|
||||
max_size 124MB
|
||||
}
|
||||
route {
|
||||
import security
|
||||
reverse_proxy http://ghost:2368 {
|
||||
header_up Host {http.request.host}
|
||||
# Matrix federation/client delegation (server_name = apex domain)
|
||||
handle /.well-known/matrix/server {
|
||||
header Content-Type application/json
|
||||
header Access-Control-Allow-Origin *
|
||||
respond `{"m.server":"{$MATRIX_DOMAIN}:443"}`
|
||||
}
|
||||
handle /.well-known/matrix/client {
|
||||
header Content-Type application/json
|
||||
header Access-Control-Allow-Origin *
|
||||
respond `{"m.homeserver":{"base_url":"https://{$MATRIX_DOMAIN}"}}`
|
||||
}
|
||||
handle {
|
||||
route {
|
||||
import security
|
||||
reverse_proxy http://ghost:2368 {
|
||||
header_up Host {http.request.host}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -252,4 +265,20 @@
|
||||
}
|
||||
}
|
||||
|
||||
############## matrix (synapse) ##############
|
||||
{$MATRIX_DOMAIN} {
|
||||
import access-log
|
||||
request_body {
|
||||
max_size 512MB
|
||||
}
|
||||
route {
|
||||
import security
|
||||
@matrix path /_matrix/* /_synapse/client/*
|
||||
reverse_proxy @matrix http://synapse:8008 {
|
||||
header_up Host {http.request.host}
|
||||
}
|
||||
respond 404
|
||||
}
|
||||
}
|
||||
|
||||
import Caddyfile.private
|
||||
Reference in new issue
Block a user