Proxy only .well-known/matrix/client

This commit is contained in:
x4u 2023-08-14 08:08:15 +08:00
parent 911c8d9df4
commit 179e669746

View file

@ -225,8 +225,9 @@ ServerName your.server.name # EDIT THIS
AllowEncodedSlashes NoDecode
ProxyPass /_matrix/ http://127.0.0.1:6167/_matrix/ timeout=300 nocanon
ProxyPassReverse /_matrix/ http://127.0.0.1:6167/_matrix/
ProxyPass /.well-known/ http://127.0.0.1:6167/.well-known/ timeout=300 nocanon
ProxyPassReverse /.well-known/ http://127.0.0.1:6167/.well-known/
<Location "/.well-known/matrix/client">
ProxyPass http://127.0.0.1:6167/.well-known/matrix/client timeout=300 nocanon
</Location>
</VirtualHost>
```
@ -248,7 +249,7 @@ Create `/etc/caddy/conf.d/conduit_caddyfile` and enter this (substitute for your
```caddy
your.server.name, your.server.name:8448 {
reverse_proxy /_matrix/* 127.0.0.1:6167
reverse_proxy /.well-known/* 127.0.0.1:6167
reverse_proxy /.well-known/matrix/client 127.0.0.1:6167
}
```
@ -282,7 +283,7 @@ server {
proxy_read_timeout 5m;
}
location /.well-known/ {
location /.well-known/matrix/client {
proxy_pass http://127.0.0.1:6167$request_uri;
proxy_set_header Host $http_host;
proxy_buffering off;