feat: add .well-known delegation endpoints for Matrix server and client
This commit is contained in:
14
nginx.conf
14
nginx.conf
@@ -25,6 +25,20 @@ server {
|
|||||||
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0" always;
|
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0" always;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Matrix Server Delegation (.well-known)
|
||||||
|
location /.well-known/matrix/server {
|
||||||
|
default_type application/json;
|
||||||
|
add_header Access-Control-Allow-Origin * always;
|
||||||
|
return 200 '{"m.server": "matrix.mischlabs.de:443"}';
|
||||||
|
}
|
||||||
|
|
||||||
|
# Matrix Client Delegation (.well-known)
|
||||||
|
location /.well-known/matrix/client {
|
||||||
|
default_type application/json;
|
||||||
|
add_header Access-Control-Allow-Origin * always;
|
||||||
|
return 200 '{"m.homeserver":{"base_url":"https://matrix.mischlabs.de"},"org.matrix.msc3575.proxy":{"url":"https://matrix.mischlabs.de"}}';
|
||||||
|
}
|
||||||
|
|
||||||
# Cache static assets
|
# Cache static assets
|
||||||
location ~* \.(css|js|png|jpg|jpeg|gif|ico|svg|woff2?)$ {
|
location ~* \.(css|js|png|jpg|jpeg|gif|ico|svg|woff2?)$ {
|
||||||
expires 7d;
|
expires 7d;
|
||||||
|
|||||||
Reference in New Issue
Block a user