mirror of
https://github.com/deltathetawastaken/dotfiles.git
synced 2025-12-06 07:16:37 +03:00
nuc graf nginx upd x2
This commit is contained in:
parent
7c43dda119
commit
e710ac5180
|
|
@ -667,11 +667,11 @@
|
|||
"sops-nix": "sops-nix"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1713901156,
|
||||
"narHash": "sha256-VyDnKIsK7r/VNpqMbl8VlZrUaAgbkxX8Destq961Jkk=",
|
||||
"lastModified": 1714793854,
|
||||
"narHash": "sha256-1wajOrBuEuPUejrkwVfwTH+JS/vEwLfmWgZZv1iFx80=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "4c5ca35a5042bd3ed9653c353acb2d38440eaae1",
|
||||
"revCount": 20,
|
||||
"rev": "4f5717ae46a8d36b4be129184bb0822e9acd024a",
|
||||
"revCount": 22,
|
||||
"type": "git",
|
||||
"url": "ssh://git@github.com/deltathetawastaken/secrets.git"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -82,59 +82,39 @@
|
|||
services.nginx.virtualHosts."grafana" = {
|
||||
forceSSL = false;
|
||||
listen = [{port = 80; addr="0.0.0.0"; ssl=false;}];
|
||||
serverName = "graf1.local";
|
||||
serverName = "graf1.local ${inputs.secrets.work.graf-url}";
|
||||
locations."/".extraConfig = ''
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_pass ${inputs.secrets.work.graf-url};
|
||||
proxy_pass https://${inputs.secrets.work.graf-url};
|
||||
'';
|
||||
locations."/api/live/ws".extraConfig = ''
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_pass ${inputs.secrets.work.graf-url};
|
||||
proxy_pass https://${inputs.secrets.work.graf-url};
|
||||
'';
|
||||
};
|
||||
# services.nginx.virtualHosts."grafana_first" = {
|
||||
# forceSSL = false;
|
||||
# listen = [{port = 80; 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;
|
||||
# proxy_pass ${inputs.secrets.work.graf1};
|
||||
# '';
|
||||
# locations."/api/live/ws".extraConfig = ''
|
||||
# proxy_http_version 1.1;
|
||||
# proxy_set_header Upgrade $http_upgrade;
|
||||
# proxy_set_header Connection "upgrade";
|
||||
# proxy_pass ${inputs.secrets.work.graf1};
|
||||
# '';
|
||||
# };
|
||||
# services.nginx.virtualHosts."grafana_second" = {
|
||||
# forceSSL = false;
|
||||
# listen = [{port = 80; 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;
|
||||
# proxy_pass ${inputs.secrets.work.graf2};
|
||||
# '';
|
||||
# locations."/api/live/ws".extraConfig = ''
|
||||
# proxy_http_version 1.1;
|
||||
# proxy_set_header Upgrade $http_upgrade;
|
||||
# proxy_set_header Connection "upgrade";
|
||||
# proxy_pass ${inputs.secrets.work.graf2};
|
||||
# '';
|
||||
# };
|
||||
services.nginx.virtualHosts."kibana" = {
|
||||
|
||||
services.nginx.virtualHosts."keycloak" = {
|
||||
forceSSL = false;
|
||||
listen = [{port = 80; addr="0.0.0.0"; ssl=false;}];
|
||||
serverName = "kibana.local";
|
||||
serverName = "${inputs.secrets.work.keycloak}";
|
||||
locations."/".extraConfig = ''
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_pass ${inputs.secrets.work.kibana};
|
||||
proxy_pass https://${inputs.secrets.work.keycloak};
|
||||
'';
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."kibana" = {
|
||||
forceSSL = false;
|
||||
listen = [{port = 80; addr="0.0.0.0"; ssl=false;}];
|
||||
serverName = "kibana.local ${inputs.secrets.work.kibana}";
|
||||
locations."/".extraConfig = ''
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_pass https://${inputs.secrets.work.kibana};
|
||||
'';
|
||||
};
|
||||
services.nginx.virtualHosts."zabbix" = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue