lighttpd: add services.lighttpd.mod_status option
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.
This commit is contained in:
parent
4b435b173f
commit
161086b205
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue