From 28df3554c05b31386e1e0ab33c3ed8db56990eea Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 25 Feb 2022 14:07:11 +0100 Subject: surtr: ma1sd: ... --- hosts/surtr/matrix/default.nix | 2 +- hosts/surtr/postgresql.nix | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'hosts/surtr') diff --git a/hosts/surtr/matrix/default.nix b/hosts/surtr/matrix/default.nix index 9f076757..5b5b0112 100644 --- a/hosts/surtr/matrix/default.nix +++ b/hosts/surtr/matrix/default.nix @@ -258,7 +258,7 @@ storage = { backend = "postgresql"; provider.postgresql = { - database = "//file%3A%2F%2F%2Frun%2Fpostgresql%2F.s.PGSQL.5432/ma1sd?socketFactory=org.newsclub.net.unix.AFUNIXSocketFactory%24URIScheme"; + database = "//file%3A%2F%2F%2Frun%2Fpostgresql%2F.s.PGSQL.5432/mxisd?socketFactory=org.newsclub.net.unix.AFUNIXSocketFactory%24URIScheme"; }; }; forward.servers = ["matrix.org"]; diff --git a/hosts/surtr/postgresql.nix b/hosts/surtr/postgresql.nix index 88430823..e622f4e9 100644 --- a/hosts/surtr/postgresql.nix +++ b/hosts/surtr/postgresql.nix @@ -10,10 +10,10 @@ GRANT ALL PRIVILEGES ON DATABASE "matrix-synapse" TO "matrix-synapse"; GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO "matrix-synapse"; - CREATE DATABASE "ma1sd" WITH TEMPLATE "template0" ENCODING "UTF8" LOCALE "C"; - CREATE USER "ma1sd"; - GRANT ALL PRIVILEGES ON DATABASE "ma1sd" TO "ma1sd"; - GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO "ma1sd"; + CREATE DATABASE "mxisd" WITH TEMPLATE "template0" ENCODING "UTF8" LOCALE "C"; + CREATE USER "mxisd"; + GRANT ALL PRIVILEGES ON DATABASE "mxisd" TO "mxisd"; + GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO "mxisd"; ''; }; }; -- cgit v1.2.3