summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorJaka Hudoklin <jakahudoklin@gmail.com>2013-10-11 11:44:26 +0200
committerJaka Hudoklin <jakahudoklin@gmail.com>2013-10-12 12:34:26 +0200
commit677ecf4868f6a15d494de9367ffc598ce060212f (patch)
tree41871aee69b9c3cc0ec35df123fa8190c1f3ab0c /nixos
parent29b99ed9fa6c50ac7bef28ac41f8c82a1762ee8b (diff)
downloadnixpkgs-677ecf4868f6a15d494de9367ffc598ce060212f.tar
nixpkgs-677ecf4868f6a15d494de9367ffc598ce060212f.tar.gz
nixpkgs-677ecf4868f6a15d494de9367ffc598ce060212f.tar.bz2
nixpkgs-677ecf4868f6a15d494de9367ffc598ce060212f.tar.lz
nixpkgs-677ecf4868f6a15d494de9367ffc598ce060212f.tar.xz
nixpkgs-677ecf4868f6a15d494de9367ffc598ce060212f.tar.zst
nixpkgs-677ecf4868f6a15d494de9367ffc598ce060212f.zip
nixos/graphite: listen on localhost by default
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/monitoring/graphite.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/nixos/modules/services/monitoring/graphite.nix b/nixos/modules/services/monitoring/graphite.nix
index ec36db7b21c..b1ff561a5fd 100644
--- a/nixos/modules/services/monitoring/graphite.nix
+++ b/nixos/modules/services/monitoring/graphite.nix
@@ -34,7 +34,14 @@ in {
     carbon = {
       config = mkOption {
         description = "Content of carbon configuration file";
-        default = "";
+        default = ''
+          [cache]
+          # Listen on localhost by default for security reasons
+          UDP_RECEIVER_INTERFACE = 127.0.0.1
+          PICKLE_RECEIVER_INTERFACE = 127.0.0.1
+          LINE_RECEIVER_INTERFACE = 127.0.0.1
+          CACHE_QUERY_INTERFACE = 127.0.0.1
+        '';
         type = types.uniq types.string;
       };