Fix matrix
This commit is contained in:
parent
872abb1522
commit
6a4fce5a37
6 changed files with 43 additions and 34 deletions
|
@ -1,5 +1,9 @@
|
|||
{ pkgs, config, ... }:
|
||||
{
|
||||
imports = [
|
||||
./nginx
|
||||
];
|
||||
|
||||
services.matrix-synapse = {
|
||||
enable = config.system.server.enable;
|
||||
settings = {
|
||||
|
@ -11,7 +15,13 @@
|
|||
{
|
||||
port = 8008;
|
||||
bind_addresses = [ "::" "0.0.0.0" ];
|
||||
resources = [ { compress = true; names = [ "client" "federation" ]; } ];
|
||||
resources = [{
|
||||
compress = true;
|
||||
names = [
|
||||
"client"
|
||||
"federation"
|
||||
];
|
||||
}];
|
||||
type = "http";
|
||||
tls = false;
|
||||
x_forwarded = true;
|
||||
|
@ -19,7 +29,7 @@
|
|||
];
|
||||
|
||||
email = {
|
||||
notif_from = "Jimbo's Matrix <noreply@${config.domains.p1}>";
|
||||
notif_from = "NixFox Matrix <noreply@${config.domains.p1}>";
|
||||
smtp_host = "mx.${config.domains.p1}";
|
||||
smtp_user = "noreply@${config.domains.p1}";
|
||||
smtp_pass = config.secrets.noreplyPassword;
|
||||
|
@ -33,10 +43,6 @@
|
|||
|
||||
# Allow only this range of emails
|
||||
allowed_local_3pids = [
|
||||
{
|
||||
medium = "email";
|
||||
pattern = ''^[^@]+@jimbosfiles\.com$'';
|
||||
}
|
||||
{
|
||||
medium = "email";
|
||||
pattern = ''^[^@]+@nixfox\.ca$'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue