got grafana working
This commit is contained in:
parent
c51987536a
commit
0aba3aac80
6 changed files with 84 additions and 16 deletions
40
hosts/h001/nginx.nix
Normal file
40
hosts/h001/nginx.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
...
|
||||
}:
|
||||
let
|
||||
homarr = {
|
||||
proxyWebsockets = true;
|
||||
proxyPass = "http://localhost:7575";
|
||||
};
|
||||
in
|
||||
{
|
||||
services.nginx.virtualHosts = {
|
||||
"10.12.14.2" = {
|
||||
locations = {
|
||||
"/" = {
|
||||
return = "301 http://h001.local.joshuabell.xyz";
|
||||
};
|
||||
};
|
||||
};
|
||||
"h001.local.joshuabell.xyz" = {
|
||||
locations = {
|
||||
"/" = homarr;
|
||||
};
|
||||
};
|
||||
"100.64.0.13" = {
|
||||
locations."/" = {
|
||||
return = "301 http://h001.net.joshuabell.xyz";
|
||||
};
|
||||
};
|
||||
"h001.net.joshuabell.xyz" = {
|
||||
locations = {
|
||||
"/grafana/" = {
|
||||
proxyPass = "http://localhost:3001";
|
||||
proxyWebsockets = true;
|
||||
recommendedProxySettings = true;
|
||||
};
|
||||
"/" = homarr;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue