mirror of
https://git.gay/xqtc/nixos-config
synced 2024-11-22 21:20:32 +01:00
seraphim: grafana
This commit is contained in:
parent
57fde1f3f8
commit
10d7e7a560
17
hosts/x86_64-linux/seraphim/monitoring.nix
Normal file
17
hosts/x86_64-linux/seraphim/monitoring.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{ config, pkgs, ... }: {
|
||||||
|
# grafana configuration
|
||||||
|
services.grafana = {
|
||||||
|
enable = true;
|
||||||
|
# domain = "grafana";
|
||||||
|
port = 2342;
|
||||||
|
addr = "127.0.0.1";
|
||||||
|
};
|
||||||
|
|
||||||
|
# nginx reverse proxy
|
||||||
|
services.nginx.virtualHosts.${config.services.grafana.domain} = {
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://127.0.0.1:${toString config.services.grafana.port}";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue