Skip to content

Lighttpd

services.lighttpd.cgit.configText

Verbatim contents of the cgit runtime configuration file. Documentation (with cgitrc example file) is available in "man cgitrc". Or online: http://git.zx2c4.com/cgit/tree/cgitrc.5.txt

Type: strings concatenated with "\n"

Default

""

Example

'' source-filter=${pkgs.cgit}/lib/cgit/filters/syntax-highlighting.py about-filter=${pkgs.cgit}/lib/cgit/filters/about-formatting.sh cache-size=1000 scan-path=/srv/git''

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/lighttpd/cgit.nix

services.lighttpd.cgit.enable

If true, enable cgit (fast web interface for git repositories) as a sub-service in lighttpd.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/lighttpd/cgit.nix

services.lighttpd.cgit.subdir

The subdirectory in which to serve cgit. The web application will be accessible at http://yourserver/${subdir}

Type: string

Default

"cgit"

Example

""

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/lighttpd/cgit.nix

services.lighttpd.collectd.collectionCgi

Path to collection.cgi script from (collectd sources)/contrib/collection.cgi This option allows to use a customized version

Type: path

Default

config.services.collectd.package configured for lighttpd

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/lighttpd/collectd.nix

services.lighttpd.collectd.enable

Whether to enable collectd subservice accessible at http://yourserver/collectd. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/lighttpd/collectd.nix

services.lighttpd.configText

Overridable config file contents to use for lighttpd. By default, use the contents automatically generated by NixOS.

Type: strings concatenated with "\n"

Default

""

Example

"...verbatim config file contents..."

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/lighttpd/default.nix

services.lighttpd.document-root

Document-root of the web server. Must be readable by the "lighttpd" user.

Type: path

Default

"/srv/www"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/lighttpd/default.nix

services.lighttpd.enable

Enable the lighttpd web server.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/lighttpd/default.nix

services.lighttpd.enableModules

List of lighttpd modules to enable. Sub-services take care of enabling modules as needed, so this option is mainly for when you want to add custom stuff to {option}services.lighttpd.extraConfig that depends on a certain module.

Type: list of string

Default

[ ]

Example

["mod_cgi""mod_status"]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/lighttpd/default.nix

services.lighttpd.enableUpstreamMimeTypes

Whether to include the list of mime types bundled with lighttpd (upstream). If you disable this, no mime types will be added by NixOS and you will have to add your own mime types in {option}services.lighttpd.extraConfig.

Type: boolean

Default

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/lighttpd/default.nix

services.lighttpd.extraConfig

These configuration lines will be appended to the generated lighttpd config file. Note that this mechanism does not work when the manual {option}configText option is used.

Type: strings concatenated with "\n"

Default

""

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/lighttpd/default.nix

services.lighttpd.gitweb.enable

If true, enable gitweb in lighttpd. Access it at http://yourserver/gitweb

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/lighttpd/gitweb.nix

services.lighttpd.mod_status

Show server status overview at /server-status, statistics at /server-statistics and list of loaded modules at /server-config.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/lighttpd/default.nix

services.lighttpd.mod_userdir

If true, requests in the form /~user/page.html are rewritten to take the file public_html/page.html from the home directory of the user.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/lighttpd/default.nix

services.lighttpd.package

The lighttpd package to use. Type: package

Default

pkgs.lighttpd

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/lighttpd/default.nix

services.lighttpd.port

TCP port number for lighttpd to bind to.

Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default

80

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/lighttpd/default.nix