From 271e0f7488925baa21f58bfb0742dd6391e5dad8 Mon Sep 17 00:00:00 2001 From: Jaka Hudoklin Date: Mon, 15 Sep 2014 11:38:39 +0200 Subject: [PATCH] nixos/graphite: add host and port options for graphiteApi --- nixos/modules/services/monitoring/graphite.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/monitoring/graphite.nix b/nixos/modules/services/monitoring/graphite.nix index b2c46123d16..ecf144aeee0 100644 --- a/nixos/modules/services/monitoring/graphite.nix +++ b/nixos/modules/services/monitoring/graphite.nix @@ -98,6 +98,18 @@ in { type = types.listOf types.str; }; + host = mkOption { + description = "Graphite web service listen address."; + default = "127.0.0.1"; + type = types.str; + }; + + port = mkOption { + description = "Graphite api service port."; + default = 8080; + type = types.int; + }; + extraConfig = mkOption { description = "Extra configuration for graphite api."; default = '' @@ -320,7 +332,7 @@ in { serviceConfig = { ExecStart = '' ${pkgs.python27Packages.waitress}/bin/waitress-serve \ - --host=${cfg.web.host} --port=${toString cfg.web.port} \ + --host=${cfg.api.host} --port=${toString cfg.api.port} \ graphite_api.app:app ''; User = "graphite";