2024-10-15 17:46:44 -04:00
|
|
|
{ config, ... }:
|
2024-10-09 03:36:08 -04:00
|
|
|
{
|
2024-10-15 17:46:44 -04:00
|
|
|
services.nginx.virtualHosts."matrix.${config.secrets.jimDomain}" = {
|
2024-10-07 11:42:34 -04:00
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
locations = {
|
|
|
|
"/".extraConfig = ''return 403;'';
|
|
|
|
"/client".proxyPass = "http://127.0.0.1:8009";
|
|
|
|
"/_matrix".proxyPass = "http://127.0.0.1:8008";
|
|
|
|
"/_matrix/client/unstable/org.matrix.msc3575/sync".proxyPass = "http://127.0.0.1:8009";
|
|
|
|
"/_synapse/client".proxyPass = "http://127.0.0.1:8008";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|