bekkalokk/ingress: proxy matrix well-known files to bicep
Eval nix flake / evals (push) Successful in 24m0s Details
Eval nix flake / evals (pull_request) Successful in 3m22s Details

This commit is contained in:
Daniel Lovbrotte Olsen 2023-11-28 05:43:23 +01:00
parent 3fae1f6d4e
commit 17d758c01b
1 changed files with 10 additions and 0 deletions

View File

@ -38,6 +38,16 @@
# Redirect everything else to the main website
"/".return = "301 https://www.pvv.ntnu.no$request_uri";
# Proxy the matrix well-known files
# Host has be set before proxy_pass
# The header must be set so nginx on the other side routes it to the right place
"/.well-known/matrix/" = {
extraConfig = ''
proxy_set_header Host matrix.pvv.ntnu.no;
proxy_pass https://matrix.pvv.ntnu.no/.well-known/matrix/;
'';
};
};
};
};