matrix-synapse listen on 0.0.0.0
This commit is contained in:
parent
2776f8c517
commit
3687d7cd73
9
data.nix
9
data.nix
@ -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 = {
|
||||
|
@ -83,6 +83,7 @@
|
||||
myData.ports.grafana
|
||||
myData.ports.prometheus
|
||||
myData.ports.soju
|
||||
myData.ports.matrix-synapse
|
||||
];
|
||||
|
||||
node_exporter.enable = true;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user