Config Options

April 19, 2023 ยท View on GitHub

Config Options

Most of Hound's behavior is defined by a single config.json configuration file. A list of its available options are provided below, along with their defaults. keys used in the config json file are the options,description provides details about keys.Default values gives idea about value which can be used for the option.

ConfigOptionDescriptionDefault Values
max-concurrent-indexersdefines the total number of indexers required to be used for indexing code2
health-check-urihealth check url for hound/healthz
dbpathabsolute file path where the config.json file existsdata
titleTitle used for the applicationHound
url-patterncomposed of base url and anchor values in form of key value pairsn/a
vcs-configholds the version control config, default VCS used in Hound is git.Other options for VCS are svn,mercurial,bitbucket,hg, etc.Refer to config-example.json to get the list of vcs and usage. Below tables provide detailed options list of each type of vcsgit
reposholds the list of repos which are required to be indexed by Hound . Each Repo is added with reponame as a Json Key with options associated with repo as values similar to example provided in config-example.jsonn/a

Git Options

List of options associated with git vcs in repos

GitOptionsDescriptionDefault Values
ms-between-polltime interval to poll the repo url30s
detect-refused to determine branchmaster branch
refused to provide reference for the branch for repon/a

SVN Options

List of options available for SVN vcs in repos

SvnOptionsDescriptionsDefault Values
usernameuser name for the svn repon/a
passwordpassword to authenticate use for svn repon/a

URL Options

Options for url used for repo link under repos

URLOptionsDescriptionDefault Values
display-namealternative display name for repo""
url-patternwhen provided used by Hound for config{url}/blob/{rev}/{path}{anchor}
anchorwhen provided used for vcs config#L{line}

Misc Options

These options are available for repos

OptionsDescriptionDefault Values
exclude-dot-filesexcludes filenames that start with dottrue
auto-generated-filesmarks filenames as autogenerated in UI[] (for git, Hound checks for git attributes with the linguist-generated attribute)