nixpkgs/nixos/modules/services/web-servers
Christian Kauhaus ea7e705cd9 varnish: fix localstatedir for varnish* tools (#17508)
The varnish tools (varnishstat, varnishlog, ...) tried to load the VSM
file from a spurious var directory in the Nix store. Fix the default so
the tools "just work" when also keeping services.varnish.stateDir at the
default.

Notes:
- The tools use $localstatedir/$HOSTNAME so I've adapted the default for
  stateDir as well to contain hostName.
- Added postStop action to remove the localstatedir. There is no point
  in keeping it around when varnish does not run, as it regenerates it
  on startup anyway.

Fixes #7495
2016-08-04 15:25:23 +02:00
..
apache-httpd apache-httpd: add phpPackage option 2016-06-22 21:24:25 +09:00
jboss jobs -> systemd.services 2016-01-07 06:39:06 +00:00
lighttpd nixos/lighttpd: move cgit setup to cgit.nix 2016-07-26 15:37:24 +02:00
nginx nginx module: fix evaluation of root location option 2016-08-01 19:38:10 +02:00
varnish varnish: fix localstatedir for varnish* tools (#17508) 2016-08-04 15:25:23 +02:00
caddy.nix caddy service: add options to change ACME certificate authority (#16969) 2016-07-21 01:51:09 +02:00
fcgiwrap.nix Updated fcgiwrap's systemd unit to match upstream version. 2015-02-18 21:19:12 +00:00
phpfpm.nix Revert "phpfpm service: restructured pool configuration" 2016-07-27 23:53:58 +02:00
shellinabox.nix shellinabox service: intial implementation 2015-07-04 21:18:13 +12:00
tomcat.nix Add missing 'type', 'defaultText' and 'literalExample' in module definitions 2016-01-17 19:41:23 +01:00
uwsgi.nix uwsgi service: use python.buildEnv, fix PATH 2016-03-27 19:23:01 +03:00
winstone.nix Add missing 'type', 'defaultText' and 'literalExample' in module definitions 2016-01-17 19:41:23 +01:00
zope2.nix Add missing 'type', 'defaultText' and 'literalExample' in module definitions 2016-01-17 19:41:23 +01:00