fixed synapse who was not binding to ipv4

This commit is contained in:
Harry 2024-07-19 20:13:30 +02:00
parent 1b7fecf202
commit bbe94ad466
4 changed files with 22 additions and 12 deletions

View file

@ -9,16 +9,10 @@
virtualHosts.":3001".extraConfig = ''
reverse_proxy :3000
'';
virtualHosts.":4001".extraConfig = ''
reverse_proxy :4000
'';
virtualHosts.":8009".extraConfig = ''
reverse_proxy :8008
'';
virtualHosts.":8449".extraConfig = ''
reverse_proxy :8448
'';
};
}

13
features/prometheus.nix Normal file
View file

@ -0,0 +1,13 @@
{ config, ... }:
{
services.prometheus = {
enable = true;
port = 9001;
};
exporters = {
node = {
enable = true;
};
};
}

View file

@ -9,7 +9,7 @@ let
baseUrl = "https://talk.hypervirtual.world";
in
{
networking.domain = "hypervirtual.world";
sops.secrets.data = {
sopsFile = ../secrets/matrix.yaml;
format = "yaml";
@ -20,13 +20,16 @@ in
enable = true;
settings = {
serverName = baseUrl;
serverName = "hypervirtual.world";
public_baseurl = baseUrl;
enable_registration = false;
listeners = [
{
port = 8008;
bind_addresses = [ "::1" ];
bind_addresses = [
"::1"
"127.0.0.1"
];
type = "http";
tls = false;
x_forwarded = true;

View file

@ -53,9 +53,9 @@ in
4001 # uptime-kuma
5030 # slskd
8080 # searxng
8008
8448
8083 # calibre-web
8009 # matrix
8449
8400 # crafty-controller
9000 # authentik
9091 # transmission