nix-config/hosts/public-access-proxy/stats.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
319 B
Nix
Raw Permalink Normal View History

2022-12-04 08:53:28 +01:00
{ pkgs, ... }:
{
c3d2.hq.statistics.enable = true;
services.collectd.plugins.exec = ''
Exec "collectd" "${pkgs.ruby}/bin/ruby" "${./haproxy-stats.rb}"
'';
# add a socket that is world-accessible
services.haproxy.config = ''
global
stats socket /run/haproxy/haproxy-stats.sock mode 666
'';
}