fix nginx config

This commit is contained in:
rotterdam 2023-03-28 18:06:57 -03:00
parent 104c9a1cd1
commit 50d69c0098
2 changed files with 6 additions and 7 deletions

View file

@ -92,6 +92,11 @@ in
};
"${server_name}" = {
useACMEHost = "baduhai.me";
forceSSL = true;
kTLS = true;
root = inputs.homepage;
locations."=/.well-known/matrix/server" = {
# Use the contents of the derivation built previously
alias = "${well_known_server}";
@ -109,7 +114,7 @@ in
extraConfig = ''
# Set the header since by default NGINX thinks it's just bytes
default_type application/json;
# https://matrix.org/docs/spec/client_server/r0.4.0#web-browser-clients
add_header Access-Control-Allow-Origin "*";
'';