Configuration
The application provides various configuration options which provide further customization options. Note that the application will automatically choose a suitable configuration in development mode while production mode requires an actual configuration file to be present.
Custom configuration files are written in the hcl format and typically loaded
using the -config=<file or directory> flag. You may either specify a single
file (for instance: production.hcl) or an entire directory of configuration
files. When a directory is specified, the files will be loaded in alphabetical
order (previously defined properties will be overridden).
Supported Properties
- plugin-dir
 Default:plugins
 Defines the location from which plugins are loaded (only considered on 64-Bit versions of Linux)
- bind-address
 Default:127.0.0.1:36623
 Specifies the ip address and port on which the server listens for gRPC and REST requests
- ui
 Default:false(truein development mode)
 En- or disables the web interface
- legacy-api
 Default:false(truein development mode)
 En- or disables support for the legacy (Stockpile v1.0) REST API
- storage
 Default:mem(unset in production mode)
 Refer to the Storage Backend page for more information
- ttl
 Refer to the section below for more information
TTL Configuration Properties
- name
 Default:888h
 Specifies how long name <-> profile associations are to be persisted
- name-history
 Default:180h
 Specifies how long name histories are retained
- profile
 Default:168h
 Defines how long profiles are retained
- blacklist
 Default:168h
 Defines how long the server blacklist is persisted
Example Configuration
plugin-dir = "plugins"
bind-address = "127.0.0.1:36623"
ui = true
legacy-api = true
storage "mem" {
}
ttl {
  name = "888h"
  name-history = "180h"
  profile = "168h"
  blacklist = "168h"
}
Next Steps
You may now proceed to the Storage Backend section.