Setup mail server and restructure some things
This commit is contained in:
parent
4c382e629d
commit
ba93d164cf
90 changed files with 512 additions and 66 deletions
36
config/hosts/matrix/matrix-synapse.nix
Normal file
36
config/hosts/matrix/matrix-synapse.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ ... }:
|
||||
{
|
||||
services.matrix-synapse = {
|
||||
enable = true;
|
||||
settings = {
|
||||
server_name = "nekover.se";
|
||||
public_baseurl = "https://matrix.nekover.se";
|
||||
database = {
|
||||
name = "psycopg2";
|
||||
args.password = "synapse";
|
||||
};
|
||||
email = {
|
||||
smtp_host = "mail.grzb.de";
|
||||
smtp_port = 465;
|
||||
smtp_user = "matrix";
|
||||
force_tls = true;
|
||||
notif_from = "Nekoverse Matrix Server <nyareply@nekover.se>";
|
||||
};
|
||||
max_upload_size = "500M";
|
||||
signing_key_path = "/secrets/matrix-homeserver-signing-key.secret";
|
||||
admin_contact = "mailto:admin@nekover.se";
|
||||
web_client_location = "https://element.nekover.se";
|
||||
turn_uris = [
|
||||
"turns:turn.nekover.se?transport=udp"
|
||||
"turns:turn.nekover.se?transport=tcp"
|
||||
];
|
||||
turn_user_lifetime = 86400000;
|
||||
turn_allow_guests = true;
|
||||
};
|
||||
extraConfigFiles = [
|
||||
"/secrets/matrix-registration-shared-secret.secret"
|
||||
"/secrets/matrix-turn-shared-secret.secret"
|
||||
"/secrets/matrix-email-smtp-pass.secret"
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue