forked from hound-search/hound
-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
config-example.json
92 lines (92 loc) · 2.81 KB
/
config-example.json
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"max-concurrent-indexers" : 2,
"max-concurrent-searchers" : 2,
"max-repos-in-first-result" : 10,
"max-repos-in-next-result" : 30,
"dbpath" : "data",
"title" : "Hound",
"health-check-uri" : "/healthz",
"init-search": {
"excludeFiles": "ui/bindata.go"
},
"ads": [
"Try it here: <a href=\"https://search.odooism.com/\">search.odooism.com</a>"
],
"repos": [
{
"name" : "SomeGitRepo",
"url" : "https://www.github.com/YourOrganization/RepoOne.git"
},
{
"name" : "AnotherGitRepo",
"url" : "https://www.github.com/YourOrganization/RepoOne.git",
"ms-between-poll": 10000,
"exclude-dot-files": true,
"vcs-config": {
"ref": "master"
}
},
{
"name" : "SomeMercurialRepo",
"url" : "https://www.example.com/foo/hg",
"vcs" : "hg"
},
{
"name" : "Subversion",
"url" : "http://my-svn.com/repo",
"url-pattern" : {
"base-url" : "{url}/{path}{anchor}"
},
"vcs" : "svn"
},
{
"name" : "SubversionWithCreds",
"url" : "http://my-private-svn.com/repo",
"url-pattern" : {
"base-url" : "{url}/{path}{anchor}"
},
"vcs" : "svn",
"vcs-config" : {
"username" : "username_for_ro_account",
"password" : "password_for_ro_account"
}
},
{
"name" : "LocalFolder",
"url" : "file:///absolute/path/to/directory"
},
{
"name" : "RepoWithCustomUrls",
"url" : "https://github.com/username/Foo.git",
"url-pattern" : {
"base-url" : "{url}/files/{path}{anchor}",
"anchor" : "#line={line}"
}
},
{
"name" : "BitbucketCustomUrl",
"url" : "[email protected]:organization/project.git",
"url-pattern" : {
"base-url" : "https://{url}/src/master/{path}{anchor}",
"anchor" : "#{filename}-{line}"
}
},
{
"name" : "RepoWithPollingDisabled",
"url" : "https://www.github.com/YourOrganization/RepoOne.git",
"enable-poll-updates" : false
},
{
"name" : "RepoWithPushingEnabled",
"url" : "https://www.github.com/YourOrganization/RepoOne.git",
"enable-push-updates" : true
},
{
"name" : "RepoIsGitHubWiki",
"url" : "https://github.com/YourOrganization/RepoWithWiki.wiki.git",
"url-pattern" : {
"base-url" : "{url}/{path}"
}
}
]
}