From 161086b205fdd50e29f75d561aa87c87f6f97e5a Mon Sep 17 00:00:00 2001 From: Evgeny Egorochkin Date: Mon, 6 May 2013 13:31:17 +0300 Subject: [PATCH] lighttpd: add services.lighttpd.mod_status option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If true, show server status overview at /server-status, statistics at /server-statistics and list of loaded modules at /server-config. Patch contributed by Bjørn Forsman. --- .../services/web-servers/lighttpd/default.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/modules/services/web-servers/lighttpd/default.nix b/modules/services/web-servers/lighttpd/default.nix index 588fece257e..1d1cd6fa178 100644 --- a/modules/services/web-servers/lighttpd/default.nix +++ b/modules/services/web-servers/lighttpd/default.nix @@ -41,6 +41,13 @@ let userdir.path = "public_html" '' else ""} + ${if cfg.mod_status then '' + server.modules += ("mod_status") + status.status-url = "/server-status" + status.statistics-url = "/server-statistics" + status.config-url = "/server-config" + '' else ""} + ${cfg.extraConfig} ''; @@ -85,6 +92,15 @@ in ''; }; + mod_status = mkOption { + default = false; + type = types.uniq types.bool; + description = '' + Show server status overview at /server-status, statistics at + /server-statistics and list of loaded modules at /server-config. + ''; + }; + configText = mkOption { default = ""; type = types.string;