From 5ff338246942dfbe586772222ef394de09e2455c Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 20 Mar 2024 19:08:59 +0300 Subject: [PATCH] kibana --- hosts/dlaptop/configuration.nix | 7 +++++++ hosts/intelnuc/configuration.nix | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/hosts/dlaptop/configuration.nix b/hosts/dlaptop/configuration.nix index 49324ac..bd7b0b5 100644 --- a/hosts/dlaptop/configuration.nix +++ b/hosts/dlaptop/configuration.nix @@ -81,6 +81,12 @@ useDHCP = lib.mkDefault true; interfaces.wlp1s0.proxyARP = true; iproute2.enable = true; + hosts = { + "100.92.15.128:2000" = [ "grafanafirst.local" ]; + "100.92.15.128:2001" = [ "grafanasecond.local" ]; + "100.92.15.128:2002" = [ "kibana.local" ]; + }; + firewall = { enable = true; allowedTCPPorts = [ @@ -316,6 +322,7 @@ gnomeExtensions.clipboard-indicator gnomeExtensions.tiling-assistant #gnomeExtensions.wintile-windows-10-window-tiling-for-gnome + gnomeExtensions.cloudflare-warp-toggle gnome.gnome-tweaks mojave-gtk-theme diff --git a/hosts/intelnuc/configuration.nix b/hosts/intelnuc/configuration.nix index 54e5dda..f40643b 100644 --- a/hosts/intelnuc/configuration.nix +++ b/hosts/intelnuc/configuration.nix @@ -100,6 +100,15 @@ proxy_set_header Connection "upgrade"; ''; }; + services.nginx.virtualHosts."kibana" = { + forceSSL = false; + listen = [{port = 2002; addr="0.0.0.0"; ssl=false;}]; + locations."/".extraConfig = '' + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_pass http://123.123.123.123:5601; + ''; + }; system.stateVersion = "22.11"; }