diff --git a/features/caddy.nix b/features/caddy.nix index e2f8c1b..6cb1602 100644 --- a/features/caddy.nix +++ b/features/caddy.nix @@ -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 - ''; }; } diff --git a/features/prometheus.nix b/features/prometheus.nix new file mode 100644 index 0000000..2ed5b0e --- /dev/null +++ b/features/prometheus.nix @@ -0,0 +1,13 @@ +{ config, ... }: +{ + + services.prometheus = { + enable = true; + port = 9001; + }; + exporters = { + node = { + enable = true; + }; + }; +} diff --git a/features/synapse-matrix.nix b/features/synapse-matrix.nix index 62a2b69..d9149f5 100644 --- a/features/synapse-matrix.nix +++ b/features/synapse-matrix.nix @@ -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; diff --git a/server-configuration.nix b/server-configuration.nix index 7a15b9f..301b3b9 100644 --- a/server-configuration.nix +++ b/server-configuration.nix @@ -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