matrix: add email support

This commit is contained in:
Michele Guerini Rocco 2022-08-11 00:02:33 +02:00
parent 83e132d9c2
commit 848648a229
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450
4 changed files with 83 additions and 63 deletions

View File

@ -95,8 +95,8 @@ in
# Connect to Postrges
database_type = "psycopg2";
database_args = {
user = "matrix-synapse";
database_args =
{ user = "matrix-synapse";
database = "matrix-synapse";
};
@ -128,12 +128,17 @@ in
max_upload_size = "1000M";
turn_user_lifetime = "1d";
};
# Secrets
services.matrix-synapse.extraConfigFiles =
[
# Needed to restrict access to the TURN
# server to only our matrix users.
config.secrets.matrix.turn.conf
# Password reset via email
# Note: can't be put here, see NixOS/nixpkgs#158605
config.secrets.matrix.email.conf
# Needed by the register_new_matrix_user script
config.secrets.matrix.registration
];

View File

@ -1,59 +1,65 @@
U2FsdGVkX191uk0AhtEdICnhkSv/so8qXU0ks2TsF9Hu6c9V7Urd0N5f2XtmJJSx
dTVFxbpLY4AS/j5hFF+L/9YtCuvE9clJfpvNy1H32t4PPGLCiivqeLcb17BMsBro
yD/n5kgPnJMbdtZnvp4xboomk0xdJcJ3PdgEY95pr2U14gHeLrTVvXtEsUvjmg3U
0Z1e0/oj8r5piKSHJ7gMcKDUl60QkQSMqAzewAFNqW0BQzqev8dJaA8wAidxmYCY
zEDIi+yt8RmGiIPP3hUS2hCH6UT1rCwcPJDPpHfPcKsYds5zxUdD3htrtBvndzhj
WFmMe25q3pfTWNSZg7pqNa+V0a1wLhVaA63SwWnuwxOs2VFik5vKEzmnDpmXv8SM
Fs4LV+8l2UrmWvY83JD4sFKK2oDkeH8apuqKhjDmgFfDkNzAwxbzoqePccNPnlec
7UbMpUOdwTGKN6Ps0aQabmbG/kXmLKJHUGGO+dwDICrCb5/HM+1+7/1rboceZCxL
qrAfIDB2CIiGJrk6DxYboLbZIwECVc7htZHsOy9uhtuhAPwF5MYb/z81j351rqV4
JvV126EFdVfFDDxfTGdbXxly3a+0TF72grxat+1fLpc3X+uDzlH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