1
0
Fork 0
forked from Bun/nixos-config
This commit is contained in:
Jimbo 2024-09-10 21:39:12 -04:00
parent cac7046d3c
commit dcc845a67c
9 changed files with 19 additions and 27 deletions

View file

@ -17,19 +17,19 @@
locations = {
"/.well-known/matrix/client" = {
extraConfig = ''
default_type application/json;
return 200 '
{
"m.homeserver": {
"base_url": "https://matrix.${outputs.secrets.jimDomain}"
},
"m.identity_server": {
"base_url": "https://matrix.org"
},
"org.matrix.msc3575.proxy": {
"url": "https://matrix.${outputs.secrets.jimDomain}"
}
}';
default_type application/json;
return 200 '
{
"m.homeserver": {
"base_url": "https://matrix.${outputs.secrets.jimDomain}"
},
"m.identity_server": {
"base_url": "https://matrix.org"
},
"org.matrix.msc3575.proxy": {
"url": "https://matrix.${outputs.secrets.jimDomain}"
}
}';
'';
};
"/.well-known/matrix/server" = {
@ -68,9 +68,7 @@
};
# Open HTTP and HTTPs ports
networking.firewall = {
allowedTCPPorts = [
80 443
];
};
networking.firewall.allowedTCPPorts = [
80 443
];
}