matrix-synapse listen on 0.0.0.0

This commit is contained in:
2023-08-25 16:14:12 +03:00
parent 2776f8c517
commit 3687d7cd73
3 changed files with 25 additions and 5 deletions

View File

@@ -2,6 +2,7 @@
config,
lib,
pkgs,
myData,
...
}: {
options.mj.services.matrix-synapse = with lib.types; {
@@ -17,6 +18,25 @@
extraConfigFiles = ["/run/matrix-synapse/secrets.yaml"];
settings = {
server_name = "jakstys.lt";
listeners = [
{
bind_addresses = ["0.0.0.0"];
port = myData.ports.matrix-synapse;
type = "http";
tls = false;
x_forwarded = true;
resources = [
{
names = ["client"];
compress = true;
}
{
names = ["federation"];
compress = false;
}
];
}
];
admin_contact = "motiejus@jakstys.lt";
enable_registration = false;
report_stats = true;