Added extraWorkersProperties parameter, so that custom tweaks can be added
svn path=/nixos/trunk/; revision=32050
This commit is contained in:
parent
5363c8b8ae
commit
82ca072c23
@ -1,6 +1,8 @@
|
|||||||
{ config, pkgs, serverInfo, ... }:
|
{ config, pkgs, serverInfo, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
extraWorkersProperties = pkgs.lib.optionalString (config ? extraWorkersProperties) config.extraWorkersProperties;
|
||||||
|
|
||||||
workersProperties = pkgs.writeText "workers.properties" ''
|
workersProperties = pkgs.writeText "workers.properties" ''
|
||||||
# Define list of workers that will be used
|
# Define list of workers that will be used
|
||||||
# for mapping requests
|
# for mapping requests
|
||||||
@ -22,6 +24,8 @@ worker.loadbalancer.balance_workers=node1
|
|||||||
|
|
||||||
# Status worker for managing load balancer
|
# Status worker for managing load balancer
|
||||||
worker.status.type=status
|
worker.status.type=status
|
||||||
|
|
||||||
|
${extraWorkersProperties}
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user