1
1
mirror of https://github.com/dali99/nixos-matrix-modules.git synced 2025-01-10 11:21:15 +01:00

Compare commits

...

2 Commits

View File

@ -89,7 +89,7 @@ in
ensureDatabases = [ "matrix-sliding-sync" ]; ensureDatabases = [ "matrix-sliding-sync" ];
ensureUsers = [ rec { ensureUsers = [ rec {
name = "matrix-sliding-sync"; name = "matrix-sliding-sync";
ensurePermissions."DATABASE \"${name}\"" = "ALL PRIVILEGES"; ensureDBOwnership = true;
} ]; } ];
}; };
@ -107,7 +107,7 @@ in
}; };
services.nginx.virtualHosts.${cfg.publicBaseUrl} = lib.mkIf cfg.enableNginx { services.nginx.virtualHosts.${cfg.publicBaseUrl} = lib.mkIf cfg.enableNginx {
enableACME = true; enableACME = lib.mkDefault true;
forceSSL = true; forceSSL = true;
locations."/" = { locations."/" = {
proxyPass = lib.replaceStrings [ "0.0.0.0" "::" ] [ "127.0.0.1" "::1" ] "http://${cfg.settings.SYNCV3_BINDADDR}"; proxyPass = lib.replaceStrings [ "0.0.0.0" "::" ] [ "127.0.0.1" "::1" ] "http://${cfg.settings.SYNCV3_BINDADDR}";