got grafana working

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-06-23 22:18:38 -05:00
parent c51987536a
commit 0aba3aac80
6 changed files with 84 additions and 16 deletions

View file

@ -23,25 +23,10 @@ in
};
};
};
system.activationScripts."${name}_directories" = ''
mkdir -p ${hostDataDir}
chown -R root:root ${hostDataDir}
chmod -R 777 ${hostDataDir}
'';
services.nginx.virtualHosts = {
"100.64.0.13" = {
locations."/" = {
return = "301 http://h001.net.joshuabell.xyz";
};
};
"h001.net.joshuabell.xyz" = {
locations = {
"/" = {
proxyWebsockets = true;
proxyPass = "http://127.0.0.1:${builtins.toString v_port}";
};
};
};
};
}