NixOS-Config/modules/system/services/server/social/matrix/synapse/nginx/default.nix

15 lines
465 B
Nix
Raw Permalink Normal View History

{ config, ... }:
2024-10-09 03:36:08 -04:00
{
services.nginx.virtualHosts."matrix.${config.domains.jim1}" = {
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";
};
};
}