raddb        = $ENV{RADDB}
modconfdir   = ${raddb}/mods-config
testdir      = $ENV{TEST_PATH}/proxy
pidfile      = ${testdir}/radiusd.pid
panic_action = "gdb -batch -x ${raddb}/panic.gdb %e %p > ${testdir}/gdb-radiusd.log 2>&1; cat ${testdir}/gdb-radiusd.log"
certdir      = ${raddb}/certs
cadir        = ${raddb}/certs
libdir       = $ENV{LIB_PATH}

max_requests = 1048576

thread pool {
	start_servers = 5
	max_servers = 32
	min_spare_servers = 3
	max_spare_servers = 10
	max_requests_per_server = 0
	cleanup_delay = 5
	max_queue_size = 65536
	auto_limit_acct = no
}

#
# Minimum configuration for Proxy Server -> SRADIUSD
#
$INCLUDE ${testdir}/proxy.conf

client local_test {
	ipaddr = 127.0.0.1
	secret = testing123
	proto = *
}

listen {
	type = auth
	ipaddr = 127.0.0.1
	port = $ENV{FR_LOCAL_PREFIX}1812
	proto = udp
	virtual_server = default
}

listen {
	type = acct
	ipaddr = 127.0.0.1
	port = $ENV{FR_LOCAL_PREFIX}1813
	proto = udp
	virtual_server = default
}


server default {
	authorize {
		update control {
			&Home-Server-Pool = "home"
		}
	}

	preacct {
		update control {
			&Home-Server-Pool = "home_acct"
		}
	}
}
