-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathzook.conf
59 lines (52 loc) · 1.2 KB
/
zook.conf
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
[zook]
port = 8080
# To run multiple services, list them separated by commas, like:
http_svcs = static_svc, dynamic_svc
extra_svcs = auth_svc, bank_svc, echo_svc, profile_server_svc
[zookd]
cmd = zookd
uid = 61011
gid = 61011
dir = /jail
[static_svc]
cmd = zookfs
url = /.*\.(html|css|jpg)
uid = 61012
gid = 61012
dir = /jail
# junk uid/gid because this service should not execute anything.
args = 99999 99999
[dynamic_svc]
cmd = zookfs
url = /zoobar/.*\.(py|cgi)(/.*)?
uid = 61013
gid = 61013
dir = /jail
args = 61013 61013
extra_gids = 61000
[auth_svc]
cmd = /zoobar/auth-server.py
args = /authsvc/sock
uid = 61014
gid = 61014
dir = /jail
[bank_svc]
cmd = /zoobar/bank-server.py
args = /banksvc/sock
uid = 61015
gid = 61015
dir = /jail
[echo_svc]
cmd = /zoobar/echo-server.py
args = /echosvc/sock
dir = /jail
uid = 61010
gid = 61010
# You can set supplementary groups with the extra_gids key.
# extra_gids = 61011, 61012, 61013
[profile_server_svc]
cmd = /zoobar/profile-server.py
args = /profilesvc/sock
uid = 0
gid = 0
dir = /jail