This commit is contained in:
Your Name 2024-03-20 20:12:19 +03:00
parent 5ff3382469
commit 8692ff515b
2 changed files with 4 additions and 3 deletions

View file

@ -82,9 +82,7 @@
interfaces.wlp1s0.proxyARP = true; interfaces.wlp1s0.proxyARP = true;
iproute2.enable = true; iproute2.enable = true;
hosts = { hosts = {
"100.92.15.128:2000" = [ "grafanafirst.local" ]; "100.92.15.128" = [ "graf1.local" "graf2.local" "kibana.local" ];
"100.92.15.128:2001" = [ "grafanasecond.local" ];
"100.92.15.128:2002" = [ "kibana.local" ];
}; };
firewall = { firewall = {

View file

@ -73,6 +73,7 @@
services.nginx.virtualHosts."grafana_first" = { services.nginx.virtualHosts."grafana_first" = {
forceSSL = false; forceSSL = false;
listen = [{port = 2000; addr="0.0.0.0"; ssl=false;}]; listen = [{port = 2000; addr="0.0.0.0"; ssl=false;}];
serverName = "graf1.local";
locations."/".extraConfig = '' locations."/".extraConfig = ''
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
@ -88,6 +89,7 @@
services.nginx.virtualHosts."grafana_second" = { services.nginx.virtualHosts."grafana_second" = {
forceSSL = false; forceSSL = false;
listen = [{port = 2001; addr="0.0.0.0"; ssl=false;}]; listen = [{port = 2001; addr="0.0.0.0"; ssl=false;}];
serverName = "graf2.local";
locations."/".extraConfig = '' locations."/".extraConfig = ''
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
@ -103,6 +105,7 @@
services.nginx.virtualHosts."kibana" = { services.nginx.virtualHosts."kibana" = {
forceSSL = false; forceSSL = false;
listen = [{port = 2002; addr="0.0.0.0"; ssl=false;}]; listen = [{port = 2002; addr="0.0.0.0"; ssl=false;}];
serverName = "kibana.local";
locations."/".extraConfig = '' locations."/".extraConfig = ''
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;