nixpkgs/modules/services/web-servers
Evgeny Egorochkin 5e32c9c8eb lighttpd: generate a default config file
Instead of forcing users to configure lighttpd manually, make it an
option. The current services.lighttpd.configText option can still be
used for manual configuration, but if it is left blank (default) we'll
use the new generated config file.

The generated config file ensures that the server drops root priveleges
and runs as the "lighttpd" user. It pulls in some new config params that
can be set in configuration.nix (here with default values):

  services.lighttpd.document-root = "/srv/www"
  services.lighttpd.port = 80
  services.lighttpd.extraConfig = ""  # appended to the generated file

And it enables access and error logging to the systemd journal.

Patch contributed by Bjørn Forsman.
2013-05-06 13:51:08 +03:00
..
apache-httpd Don't set $TZ 2013-04-22 18:56:19 +02:00
jboss Reverting revisions 30103-30106: "always set nixpkgs.config.{state,store}Dir", etc. 2011-10-30 15:19:58 +00:00
lighttpd lighttpd: generate a default config file 2013-05-06 13:51:08 +03:00
nginx Set required nginx options and sane default 2013-04-14 11:17:16 +02:00
tomcat.nix Don't set $TZ 2013-04-22 18:56:19 +02:00