diff --git a/hosts/hackens-org/configuration.nix b/hosts/hackens-org/configuration.nix index d7083a6..a52e139 100644 --- a/hosts/hackens-org/configuration.nix +++ b/hosts/hackens-org/configuration.nix @@ -13,7 +13,7 @@ ./wiki.nix ./webpass.nix ./mosquitto.nix - ./prometheus + ./monitoring ./kfet2mqtt.nix # ./bridge.nix # ./gha.nix diff --git a/hosts/hackens-org/prometheus/config.yaml b/hosts/hackens-org/monitoring/config.yaml similarity index 100% rename from hosts/hackens-org/prometheus/config.yaml rename to hosts/hackens-org/monitoring/config.yaml diff --git a/hosts/hackens-org/prometheus/default.nix b/hosts/hackens-org/monitoring/default.nix similarity index 75% rename from hosts/hackens-org/prometheus/default.nix rename to hosts/hackens-org/monitoring/default.nix index ecd0a8c..022c38b 100644 --- a/hosts/hackens-org/prometheus/default.nix +++ b/hosts/hackens-org/monitoring/default.nix @@ -27,6 +27,14 @@ grafana = { enable = true; }; + services.nginx.virtualHosts."monitoring.new.hackens.org" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://localhost:3000"; + proxyWebsockets = true; + }; + }; }; networking.firewall.allowedTCPPorts = [ 3000 ]; } diff --git a/hosts/hackens-org/prometheus/mqtt2prometheus.nix b/hosts/hackens-org/monitoring/mqtt2prometheus.nix similarity index 100% rename from hosts/hackens-org/prometheus/mqtt2prometheus.nix rename to hosts/hackens-org/monitoring/mqtt2prometheus.nix