mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 10:43:27 +00:00
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, ... }:
|
||||
|
||||
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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user