aboutsummaryrefslogtreecommitdiffstats
path: root/net/dico/files/dicod.conf
blob: ffa2962941afb9753e039c66b5766d28d24497f9 (plain) (blame)
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
/* A sample configuration for GNU dicod */

capability (mime,xversion);
timing yes;
access-log-file "/var/log/dictd-access_log";
access-log-format "%h %l %u %t \"%r\" %>s %b \"\" \"%C\"";

load-module dict {
	command "dictorg dbdir=/usr/local/share/dict";
}

load-module guile {
	command "guile debug";
}

load-module python {
	command "python";
}

database {
	name "devdict";
	handler "dict database=devils";
}

database {
	name "plnum";
	handler "guile"
		" init-script=/usr/local/share/dict/example.scm"
		" init-fun=example-init"
		" example.db";
}

database {
	name "cznum";
	handler "python "
		"load-path=/usr/local/share/dict "
		"init-script=example "
		"/usr/local/share/dict/example.text";
}

listen (localhost:dict, "/var/tmp/dict.sock");
max-children 10;
inactivity-timeout 5;

log-tag "Dico dictd";

server-info <<EOT
This is a test Dico server.
EOT;