This commit is contained in:
Charlotte Van Petegem 2022-11-04 21:33:22 +01:00
parent 2e7067b71b
commit 5586103fc3
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -74,9 +74,8 @@
{ {
fqdn = "vanpetegem.me"; fqdn = "vanpetegem.me";
options = { options = {
locations = locations = {
let "/_matrix" = {
matrixRedirect = {
proxyPass = "http://127.0.0.1:8448"; proxyPass = "http://127.0.0.1:8448";
extraConfig = '' extraConfig = ''
proxy_read_timeout 600; proxy_read_timeout 600;
@ -84,9 +83,6 @@
proxy_set_header X-Forwarded-Ssl on; proxy_set_header X-Forwarded-Ssl on;
''; '';
}; };
in
{
"/_matrix" = matrixRedirect;
"/.well-known/matrix" = { "/.well-known/matrix" = {
root = pkgs.runCommand "well-known-matrix" { } '' root = pkgs.runCommand "well-known-matrix" { } ''
mkdir -p $out/.well-known/matrix mkdir -p $out/.well-known/matrix