Added extraWorkersProperties parameter, so that custom tweaks can be added

svn path=/nixos/trunk/; revision=32050
This commit is contained in:
Sander van der Burg 2012-02-06 13:11:48 +00:00
parent 5363c8b8ae
commit 82ca072c23

View File

@ -1,6 +1,8 @@
{ config, pkgs, serverInfo, ... }:
let
extraWorkersProperties = pkgs.lib.optionalString (config ? extraWorkersProperties) config.extraWorkersProperties;
workersProperties = pkgs.writeText "workers.properties" ''
# Define list of workers that will be used
# for mapping requests
@ -22,6 +24,8 @@ worker.loadbalancer.balance_workers=node1
# Status worker for managing load balancer
worker.status.type=status
${extraWorkersProperties}
'';
in
{