summaryrefslogtreecommitdiffstats
path: root/src/tests/proxy.conf
blob: a6536e7fbb8ce49cbdb588e88e922886d42ae929 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#
#  This is a LOCAL realm
#
realm example.com {
	nostrip
}

#
#  And another one, where we strip the realm
#
realm stripped.example.com {

}

#
#  Some home servers, server pools, and realms.  This tests that
#  the server can load them.  Functionality is in another test.
#
home_server auth_one {
	type = auth
	ipaddr = 127.0.0.1
	port = 12360
	secret = testing123
}

home_server auth_two {
	type = auth
	ipaddr = 127.0.0.1
	port = 12370
	secret = testing123
}

server_pool fail-over {
	type = fail-over
	home_server = auth_one
	home_server = auth_two
}

server_pool load-balance {
	type = load-balance
	home_server = auth_one
	home_server = auth_two
}

server_pool client-balance {
	type = client-balance
	home_server = auth_one
	home_server = auth_two
}

realm fail-over {
	auth_pool = fail-over
}

realm load-balance {
	auth_pool = load-balance
}

realm client-balance {
	auth_pool = client-balance
}