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;