2024-10-22 21:08:23 -04:00
|
|
|
{ pkgs, config, ... }:
|
|
|
|
{
|
|
|
|
services.nginx.virtualHosts = {
|
2024-10-24 23:42:09 -04:00
|
|
|
"${config.domains.jim1}" = {
|
2024-10-22 21:08:23 -04:00
|
|
|
enableACME = true;
|
|
|
|
addSSL = true;
|
|
|
|
root = "/var/www/Jimbo-Landing-Page";
|
|
|
|
locations = {
|
|
|
|
"/.well-known/matrix/client" = {
|
|
|
|
extraConfig = ''
|
|
|
|
default_type application/json;
|
|
|
|
return 200 '
|
|
|
|
{
|
|
|
|
"m.homeserver": {
|
2024-10-24 23:42:09 -04:00
|
|
|
"base_url": "https://matrix.${config.domains.jim1}"
|
2024-10-22 21:08:23 -04:00
|
|
|
},
|
|
|
|
"m.identity_server": {
|
|
|
|
"base_url": "https://matrix.org"
|
|
|
|
},
|
|
|
|
"org.matrix.msc3575.proxy": {
|
2024-10-24 23:42:09 -04:00
|
|
|
"url": "https://matrix.${config.domains.jim1}"
|
2024-10-22 21:08:23 -04:00
|
|
|
}
|
|
|
|
}';
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
"/.well-known/matrix/server" = {
|
|
|
|
extraConfig = ''
|
|
|
|
default_type application/json;
|
2024-10-24 23:42:09 -04:00
|
|
|
return 200 '{"m.server": "matrix.${config.domains.jim1}:443"}';
|
2024-10-22 21:08:23 -04:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
systemd.services.nginx.serviceConfig = {
|
|
|
|
ReadWritePaths = [ "/var/www/Jimbo-Landing-Page/streams/hls/" ];
|
|
|
|
};
|
|
|
|
}
|