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,10 +95,10 @@ in
# Connect to Postrges # Connect to Postrges
database_type = "psycopg2"; database_type = "psycopg2";
database_args = { database_args =
user = "matrix-synapse"; { user = "matrix-synapse";
database = "matrix-synapse"; database = "matrix-synapse";
}; };
# Make logging less verbose # Make logging less verbose
log_config = pkgs.writeText "synapse-log.yml" '' log_config = pkgs.writeText "synapse-log.yml" ''
@ -128,12 +128,17 @@ in
max_upload_size = "1000M"; max_upload_size = "1000M";
turn_user_lifetime = "1d"; turn_user_lifetime = "1d";
}; };
# Secrets
services.matrix-synapse.extraConfigFiles = services.matrix-synapse.extraConfigFiles =
[ [
# Needed to restrict access to the TURN # Needed to restrict access to the TURN
# server to only our matrix users. # server to only our matrix users.
config.secrets.matrix.turn.conf 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 # Needed by the register_new_matrix_user script
config.secrets.matrix.registration config.secrets.matrix.registration
]; ];

View File

@ -1,59 +1,65 @@
U2FsdGVkX191uk0AhtEdICnhkSv/so8qXU0ks2TsF9Hu6c9V7Urd0N5f2XtmJJSx U2FsdGVkX1/DS2gDY8xa067Bin7DfUJvh8xWCWr89aVf3BKPa+KqZLiU/2wZV683
dTVFxbpLY4AS/j5hFF+L/9YtCuvE9clJfpvNy1H32t4PPGLCiivqeLcb17BMsBro w8pAykKOAnbKDV9wmJglq6lwuA4D+3M0I/7cwdESLPvtboUY1ZdWe9S52AAOTtmN
yD/n5kgPnJMbdtZnvp4xboomk0xdJcJ3PdgEY95pr2U14gHeLrTVvXtEsUvjmg3U Phew73bzWVgY0oBqOQG2ds1AE3YGVkOt7GdjFOvLyAXG8Wa9USdAriO1W8158gQH
0Z1e0/oj8r5pi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