🎨 move to nixfmt-rfc-style
This commit is contained in:
@ -17,7 +17,10 @@
|
||||
LC_CTYPE = "C";
|
||||
'';
|
||||
};
|
||||
postgresqlBackup.databases = [ "matrix" "matrix-syncv3" ];
|
||||
postgresqlBackup.databases = [
|
||||
"matrix"
|
||||
"matrix-syncv3"
|
||||
];
|
||||
|
||||
matrix-synapse = {
|
||||
enable = true;
|
||||
@ -28,21 +31,30 @@
|
||||
enable_registration = false;
|
||||
database = {
|
||||
name = "psycopg2";
|
||||
args = { database = "matrix"; };
|
||||
args = {
|
||||
database = "matrix";
|
||||
};
|
||||
};
|
||||
listeners = [{
|
||||
bind_addresses = [
|
||||
"0.0.0.0"
|
||||
];
|
||||
port = 8008;
|
||||
type = "http";
|
||||
tls = false;
|
||||
x_forwarded = true;
|
||||
resources = [{
|
||||
compress = false;
|
||||
names = [ "client" "federation" ];
|
||||
}];
|
||||
}];
|
||||
listeners = [
|
||||
{
|
||||
bind_addresses = [
|
||||
"0.0.0.0"
|
||||
];
|
||||
port = 8008;
|
||||
type = "http";
|
||||
tls = false;
|
||||
x_forwarded = true;
|
||||
resources = [
|
||||
{
|
||||
compress = false;
|
||||
names = [
|
||||
"client"
|
||||
"federation"
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
extraConfigFiles = [
|
||||
config.sops.secrets.matrix-registration-secret.path
|
||||
|
@ -7,13 +7,17 @@
|
||||
"matrix.walkah.chat" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = { proxyPass = "http://100.111.208.75:8008"; };
|
||||
locations."/" = {
|
||||
proxyPass = "http://100.111.208.75:8008";
|
||||
};
|
||||
};
|
||||
|
||||
"syncv3.walkah.chat" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = { proxyPass = "http://100.111.208.75:8088"; };
|
||||
locations."/" = {
|
||||
proxyPass = "http://100.111.208.75:8088";
|
||||
};
|
||||
};
|
||||
|
||||
"walkah.chat" = {
|
||||
@ -21,7 +25,10 @@
|
||||
enableACME = true;
|
||||
locations = {
|
||||
"= /.well-known/matrix/server".extraConfig =
|
||||
let server = { "m.server" = "matrix.walkah.chat:443"; };
|
||||
let
|
||||
server = {
|
||||
"m.server" = "matrix.walkah.chat:443";
|
||||
};
|
||||
in
|
||||
''
|
||||
default_type application/json;
|
||||
@ -31,8 +38,12 @@
|
||||
"= /.well-known/matrix/client".extraConfig =
|
||||
let
|
||||
client = {
|
||||
"m.homeserver" = { "base_url" = "https://matrix.walkah.chat"; };
|
||||
"org.matrix.msc3575.proxy" = { "url" = "https://syncv3.walkah.chat"; };
|
||||
"m.homeserver" = {
|
||||
"base_url" = "https://matrix.walkah.chat";
|
||||
};
|
||||
"org.matrix.msc3575.proxy" = {
|
||||
"url" = "https://syncv3.walkah.chat";
|
||||
};
|
||||
};
|
||||
in
|
||||
''
|
||||
@ -40,7 +51,9 @@
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
return 200 '${builtins.toJSON client}';
|
||||
'';
|
||||
"/" = { root = pkgs.element-web; };
|
||||
"/" = {
|
||||
root = pkgs.element-web;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user