New domainname
This commit is contained in:
parent
6c3fad825d
commit
3093372e4d
16 changed files with 44 additions and 44 deletions
|
|
@ -7,7 +7,7 @@
|
|||
extraEnvironment = { RUST_MIN_STACK = "16777216"; };
|
||||
package = pkgs.unstable.matrix-conduit;
|
||||
settings.global = {
|
||||
server_name = "baduhai.me";
|
||||
server_name = "baduhai.dev";
|
||||
address = "127.0.0.1";
|
||||
port = 6167;
|
||||
max_request_size = 20000000;
|
||||
|
|
@ -17,21 +17,21 @@
|
|||
};
|
||||
};
|
||||
|
||||
nginx.virtualHosts."matrix.baduhai.me" = {
|
||||
useACMEHost = "baduhai.me";
|
||||
nginx.virtualHosts."matrix.baduhai.dev" = {
|
||||
useACMEHost = "baduhai.dev";
|
||||
forceSSL = true;
|
||||
kTLS = true;
|
||||
locations."/".proxyPass = "http://127.0.0.1:${config.ports.cinny2}";
|
||||
locations."/_matrix/".proxyPass = "http://127.0.0.1:6167$request_uri";
|
||||
locations."= /.well-known/matrix/client" = {
|
||||
alias = pkgs.writeText "matrix-wk-client" ''
|
||||
{ "m.homeserver": { "base_url": "https://matrix.baduhai.me" } }
|
||||
{ "m.homeserver": { "base_url": "https://matrix.baduhai.dev" } }
|
||||
'';
|
||||
extraConfig = "add_header Access-Control-Allow-Origin *;";
|
||||
};
|
||||
locations."= /.well-known/matrix/server" = {
|
||||
alias = pkgs.writeText "matrix-wk-server" ''
|
||||
{ "m.server": "matrix.baduhai.me:443" }
|
||||
{ "m.server": "matrix.baduhai.dev:443" }
|
||||
'';
|
||||
extraConfig = "add_header Access-Control-Allow-Origin *;";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue