This commit is contained in:
parent
4725becb44
commit
717592d57e
2 changed files with 36 additions and 9 deletions
|
@ -5,7 +5,9 @@ let
|
|||
base_url = "https://chat.meowy.tech";
|
||||
server_name = "meowy.tech";
|
||||
};
|
||||
"m.identity_server" = { };
|
||||
"org.matrix.msc3575.proxy" = {
|
||||
"url" = "https://sliding-chat.meowy.tech";
|
||||
};
|
||||
};
|
||||
serverConfig."m.server" = "chat.meowy.tech:443";
|
||||
mkWellKnown = data: ''
|
||||
|
@ -18,7 +20,8 @@ let
|
|||
url = "https://git.0x76.dev/v/0x76.dev.git";
|
||||
rev = "ecb7811560650381f41ee537b9c8493e004a108b";
|
||||
};
|
||||
in {
|
||||
in
|
||||
{
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||
|
@ -27,7 +30,10 @@ in {
|
|||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.stateVersion = "21.05"; # Did you read the comment?
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
80
|
||||
443
|
||||
];
|
||||
services = {
|
||||
|
||||
# Generates vhosts for all hosts that have an `exposes` section
|
||||
|
@ -102,10 +108,8 @@ in {
|
|||
add_header Content-Type 'text/html; charset=UTF-8';
|
||||
return 200 '<h1>meow</h1>';
|
||||
'';
|
||||
"= /.well-known/matrix/client".extraConfig =
|
||||
mkWellKnown clientConfig;
|
||||
"= /.well-known/matrix/server".extraConfig =
|
||||
mkWellKnown serverConfig;
|
||||
"= /.well-known/matrix/client".extraConfig = mkWellKnown clientConfig;
|
||||
"= /.well-known/matrix/server".extraConfig = mkWellKnown serverConfig;
|
||||
};
|
||||
};
|
||||
"chat.meowy.tech" = {
|
||||
|
@ -115,6 +119,8 @@ in {
|
|||
"/".extraConfig = ''
|
||||
return 303 https://element.chat.meowy.tech;
|
||||
'';
|
||||
"= /.well-known/matrix/client".extraConfig = mkWellKnown clientConfig;
|
||||
"= /_matrix/client/unstable/org.matrix.msc3575/sync".proxyPass = "http://synapse.olympus:8009";
|
||||
"/_matrix".proxyPass = "http://synapse.olympus:8008";
|
||||
"/_synapse/client".proxyPass = "http://synapse.olympus:8008";
|
||||
"/_synapse/admin" = {
|
||||
|
@ -133,6 +139,11 @@ in {
|
|||
};
|
||||
};
|
||||
};
|
||||
"sliding-chat.meowy.tech" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/".proxyPass = "http://synapse.olympus:8009";
|
||||
};
|
||||
"element.chat.meowy.tech" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue