mirror of
https://github.com/Mic92/nixos-wiki-infra.git
synced 2025-06-27 05:01:53 +02:00
commit
21b52c4289
@ -7,6 +7,7 @@
|
|||||||
inputs.srvos.nixosModules.hardware-hetzner-cloud
|
inputs.srvos.nixosModules.hardware-hetzner-cloud
|
||||||
inputs.srvos.nixosModules.mixins-telegraf
|
inputs.srvos.nixosModules.mixins-telegraf
|
||||||
./single-disk.nix
|
./single-disk.nix
|
||||||
|
./monitoring.nix
|
||||||
{
|
{
|
||||||
sops.age.keyFile = "/var/lib/secrets/age";
|
sops.age.keyFile = "/var/lib/secrets/age";
|
||||||
}
|
}
|
||||||
|
10
modules/monitoring.nix
Normal file
10
modules/monitoring.nix
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
# Allow Mic92's prometheus server to access telegraf
|
||||||
|
networking.firewall.extraCommands = ''
|
||||||
|
ip6tables -A nixos-fw -p tcp --source 2a03:4000:62:fdb::/128 --dport 9273 -j nixos-fw-accept
|
||||||
|
'';
|
||||||
|
networking.firewall.extraStopCommands = ''
|
||||||
|
ip6tables -D nixos-fw -p tcp --source 2a03:4000:62:fdb::/128 --dport 9273 -j nixos-fw-accept || true
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
|
@ -33,7 +33,9 @@ in
|
|||||||
address = [
|
address = [
|
||||||
# configure addresses including subnet mask
|
# configure addresses including subnet mask
|
||||||
"65.21.240.250/32"
|
"65.21.240.250/32"
|
||||||
|
# TODO: drop this ip and only keep ::1
|
||||||
"2a01:4f9:c012:8178::/64"
|
"2a01:4f9:c012:8178::/64"
|
||||||
|
"2a01:4f9:c012:8178::1/64"
|
||||||
];
|
];
|
||||||
routes = [
|
routes = [
|
||||||
# create default routes for both IPv6 and IPv4
|
# create default routes for both IPv6 and IPv4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user