nixos-config/modules/system/services/server/social/matrix/synapse/nginx/default.nix

14 lines
421 B
Nix
Raw Normal View History

2025-01-02 00:43:00 -05:00
{ config, lib, ... }:
2024-10-09 03:36:08 -04:00
{
2025-01-02 00:43:00 -05:00
services.nginx.virtualHosts."matrix.${config.domains.p1}" = lib.mkIf config.services.matrix-synapse.enable {
enableACME = true;
forceSSL = true;
locations = {
"/".extraConfig = ''return 403;'';
2025-01-02 00:43:00 -05:00
"/client".proxyPass = "http://127.0.0.1:8008";
"/_matrix".proxyPass = "http://127.0.0.1:8008";
"/_synapse/client".proxyPass = "http://127.0.0.1:8008";
};
};
}