matrix-synapse listen on 0.0.0.0

compress-drv-tests
Motiejus Jakštys 2023-08-25 16:14:12 +03:00
parent 2776f8c517
commit 3687d7cd73
3 changed files with 25 additions and 5 deletions

View File

@ -15,12 +15,11 @@ rec {
ports = {
grafana = 3000;
gitea = 3001;
prometheus = 9001;
exporters = {
node = 9002;
};
kodi = 8080;
soju = 6697;
matrix-synapse = 8008;
kodi = 8080;
prometheus = 9001;
exporters.node = 9002;
};
people_pubkeys = {

View File

@ -83,6 +83,7 @@
myData.ports.grafana
myData.ports.prometheus
myData.ports.soju
myData.ports.matrix-synapse
];
node_exporter.enable = true;

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;