update nginx hosts again
This commit is contained in:
@@ -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;
|
proxyPass = "http://127.0.0.1:6167";
|
||||||
forceSSL = true;
|
proxyWebsockets = true;
|
||||||
locations."/" = {
|
};
|
||||||
proxyPass = "http://127.0.0.1:6167";
|
"k3t.dev".locations."/_continuwuity/" = {
|
||||||
proxyWebsockets = true;
|
proxyPass = "http://127.0.0.1:6167";
|
||||||
extraConfig =
|
proxyWebsockets = true;
|
||||||
# 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;"
|
|
||||||
;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user