~otheb/kb

3a59761403c6b621c7284cacdf724e1c56f438ca — Olie Ayre 2 months ago 25f02ab
Config for API

Now points at a different default path. The example config now contains
every option too.
2 files changed, 3 insertions(+), 1 deletions(-)

M kb-api/example-config
M kb-api/main.d
M kb-api/example-config => kb-api/example-config +2 -0
@@ 3,6 3,8 @@
	"data" : "./data" ,
	"tag-match" : 10 ,
	"tag-similar" : 5 ,
	"title-match" : 5 ,
	"title-similar" : 3 ,
	"content-match" : 3 ,
	"content-similar" : 1
}

M kb-api/main.d => kb-api/main.d +1 -1
@@ 14,7 14,7 @@ import std.stdio : writeln ;
import lighttp ;

// default config file
private const string CONFFILE = "/etc/kbs/config" ;
private const string CONFFILE = "/etc/kb-api/config" ;
// port to listen on
private ushort PORT = 8000 ;
// directory containing data files