fix: matrix to allow federation and use synapse
This commit is contained in:
parent
6c805737f1
commit
75a49c7516
3 changed files with 36 additions and 12 deletions
|
|
@ -12,8 +12,18 @@
|
|||
root * /var/lib/acme/acme-challenge
|
||||
file_server
|
||||
}
|
||||
handle /.well-known/matrix/server {
|
||||
header Access-Control-Allow-Origin "*"
|
||||
header Content-Type "application/json"
|
||||
respond `{"m.server": "matrix.extremist.software:443"}`
|
||||
}
|
||||
handle /.well-known/matrix/client {
|
||||
header Access-Control-Allow-Origin "*"
|
||||
header Content-Type "application/json"
|
||||
respond `{"m.homeserver": {"base_url": "https://matrix.extremist.software"}}`
|
||||
}
|
||||
handle {
|
||||
respond "Hi"
|
||||
redir https://jetpham.com{uri}
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
|
@ -51,8 +61,9 @@
|
|||
|
||||
"matrix.extremist.software" = {
|
||||
extraConfig = ''
|
||||
reverse_proxy /_matrix/* localhost:6167
|
||||
reverse_proxy /_synapse/client/* localhost:6167
|
||||
reverse_proxy /_matrix/* 127.0.0.1:8008
|
||||
reverse_proxy /_synapse/client/* 127.0.0.1:8008
|
||||
reverse_proxy /.well-known/matrix/* 127.0.0.1:8008
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue