Allow server to be imported, deprioritize Jimbo. Those who nose.

This commit is contained in:
Jimbo 2025-01-01 02:02:00 -05:00
parent 5f0edcbb09
commit d873588c59
42 changed files with 228 additions and 207 deletions

View file

@ -1,6 +1,6 @@
{ ... }:
{
imports = [
./jim1
./p1
];
}

View file

@ -1,22 +1,22 @@
{ config, ... }:
{ config, lib, ... }:
{
services.nginx.virtualHosts."${config.domains.jim1}" = {
services.nginx.virtualHosts."${config.domains.p1}" = lib.mkIf config.system.server.enable{
enableACME = true;
addSSL = true;
root = "/var/www/Jimbo-Landing-Page";
root = "/var/www/landing-page";
locations = {
"/.well-known/matrix/client".extraConfig = ''
default_type application/json;
return 200 '
{
"m.homeserver": {
"base_url": "https://matrix.${config.domains.jim1}"
"base_url": "https://matrix.${config.domains.p1}"
},
"m.identity_server": {
"base_url": "https://matrix.org"
},
"org.matrix.msc3575.proxy": {
"url": "https://matrix.${config.domains.jim1}"
"url": "https://matrix.${config.domains.p1}"
}
}
';
@ -24,7 +24,7 @@
"/.well-known/matrix/server".extraConfig = ''
default_type application/json;
return 200 '{ "m.server": "matrix.${config.domains.jim1}:443" }';
return 200 '{ "m.server": "matrix.${config.domains.p1}:443" }';
'';
};
};