update nginx hosts again

This commit is contained in:
k3t
2026-07-26 11:45:38 -06:00
parent 323dc489a0
commit 34c109906d
@@ -20,7 +20,7 @@
services.nginx.virtualHosts = { services.nginx.virtualHosts = {
"k3t.dev".locations."/.well-known/matrix/client" = { "k3t.dev".locations."/.well-known/matrix/client" = {
return = '' return = ''
200 '{"m.homeserver":{"base_url":"https://matrix.k3t.dev"},"m.identity_server":{"base_url":"https://vector.im"}}' 200 '{"m.homeserver":{"base_url":"https://k3t.dev"},"m.identity_server":{"base_url":"https://vector.im"}}'
''; '';
extraConfig = '' extraConfig = ''
default_type application/json; default_type application/json;
@@ -28,25 +28,19 @@
}; };
"k3t.dev".locations."/.well-known/matrix/server" = { "k3t.dev".locations."/.well-known/matrix/server" = {
return = '' return = ''
200 '{"m.server": "matrix.k3t.dev:443"}' 200 '{"m.server": "k3t.dev:443"}'
''; '';
extraConfig = '' extraConfig = ''
default_type application/json; default_type application/json;
''; '';
}; };
"matrix.k3t.dev" = { "k3t.dev".locations."/_matrix/" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:6167"; proxyPass = "http://127.0.0.1:6167";
proxyWebsockets = true; proxyWebsockets = true;
extraConfig =
# required when the target is also TLS server with multiple hosts
"proxy_ssl_server_name on;" +
# required when the server wants to use HTTP Authentication
"proxy_pass_header Authorization;"
;
}; };
"k3t.dev".locations."/_continuwuity/" = {
proxyPass = "http://127.0.0.1:6167";
proxyWebsockets = true;
}; };
}; };
} }