diff --git a/hosts/dlaptop/configuration.nix b/hosts/dlaptop/configuration.nix index bd7b0b5..f9d223e 100644 --- a/hosts/dlaptop/configuration.nix +++ b/hosts/dlaptop/configuration.nix @@ -82,9 +82,7 @@ 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" ]; + "100.92.15.128" = [ "graf1.local" "graf2.local" "kibana.local" ]; }; firewall = { diff --git a/hosts/intelnuc/configuration.nix b/hosts/intelnuc/configuration.nix index f40643b..6afa9dd 100644 --- a/hosts/intelnuc/configuration.nix +++ b/hosts/intelnuc/configuration.nix @@ -73,6 +73,7 @@ services.nginx.virtualHosts."grafana_first" = { forceSSL = false; listen = [{port = 2000; addr="0.0.0.0"; ssl=false;}]; + serverName = "graf1.local"; locations."/".extraConfig = '' proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; @@ -88,6 +89,7 @@ services.nginx.virtualHosts."grafana_second" = { forceSSL = false; listen = [{port = 2001; addr="0.0.0.0"; ssl=false;}]; + serverName = "graf2.local"; locations."/".extraConfig = '' proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; @@ -103,6 +105,7 @@ services.nginx.virtualHosts."kibana" = { forceSSL = false; listen = [{port = 2002; addr="0.0.0.0"; ssl=false;}]; + serverName = "kibana.local"; locations."/".extraConfig = '' proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr;