22 lines
547 B
Nix
22 lines
547 B
Nix
# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
|
|
#
|
|
# SPDX-License-Identifier: EUPL-1.2
|
|
|
|
let
|
|
port = 9428;
|
|
in
|
|
|
|
{
|
|
services.victorialogs = {
|
|
enable = true;
|
|
|
|
flags = {
|
|
retentionPeriod = "52w";
|
|
# FIXME: We need to listen so that we are available for both the APs and the grafana
|
|
httpListenAddr = "0.0.0.0:${builtins.toString port}";
|
|
};
|
|
};
|
|
|
|
# FIXME: @catvayor please do a nft rule to open the firewall on the AP-facing interfaces
|
|
networking.firewall.interfaces.wt0.allowedTCPPorts = [ port ];
|
|
}
|