stockholm/krebs/2configs/shack/grafana.nix

20 lines
477 B
Nix
Raw Normal View History

2019-07-19 22:09:47 +00:00
let
port = 3000;
in {
networking.firewall.allowedTCPPorts = [ port ]; # legacy
services.nginx.virtualHosts."grafana.shack" = {
locations."/".proxyPass = "http://localhost:${toString port}";
};
services.grafana = {
enable = true;
port = port;
addr = "0.0.0.0";
users.allowSignUp = true;
users.allowOrgCreate = true;
users.autoAssignOrg = true;
auth.anonymous.enable = true;
security = import <secrets/grafana_security.nix>;
};
}