backing up the working dir
This commit is contained in:
parent
82f1d9d5c9
commit
b8d125d448
19 changed files with 622 additions and 4 deletions
24
hosts/lithium/services/monitoring/grafana.nix
Normal file
24
hosts/lithium/services/monitoring/grafana.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ config, pkgs, ... }:
|
||||
let
|
||||
svcDomain = "grafana.${config.networking.domain}";
|
||||
svcPort = config.services.grafana.settings.server.http_port;
|
||||
in
|
||||
{
|
||||
services.caddy.virtualHosts."${svcDomain}".extraConfig = ''
|
||||
reverse_proxy :${toString svcPort}
|
||||
'';
|
||||
|
||||
services.grafana = {
|
||||
enable = true;
|
||||
settings = {
|
||||
server = {
|
||||
http_addr = "127.0.0.1";
|
||||
http_port = 3001;
|
||||
enforce_domain = true;
|
||||
enable_gzip = true;
|
||||
domain = svcDomain;
|
||||
};
|
||||
analytics.reporting_enabled = false; # NOTE: Disable Telemetry
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue