The standard library’s strconv.ParseBool is used to parse boolean environment variables. It accepts 1, t, T, TRUE, true, True, 0, f, F, FALSE, false, False. Any other value is an implicit false.
For integer values, strconv.Atoi is used which means only base 10 numbers are valid.
- See http://docs.aws.amazon.com/fws/1.1/GettingStartedGuide/index.html?AWSCredentials.html. Used in s3 tests. If not set some tests are skip. If set, queries will be sent to Amazon’s S3 service.
- Path to the directory where Perkeep first looks for the server applications executables, when starting them. It looks in PATH otherwise.
- See server-config. Used as a fallback in pkg/client.Client (except on android) when configuration files lack and ‘auth’ entry. If a client is using the -server commandline to specify the Perkeep instance to talk to, this env var takes precedence over that specified in the configuration files.
- URL set in devcam to act as a baseURL in the devcam launched perkeepd.
n the devcam launched perkeepd.
- Path used by pkg/osutil to override operating system specific cache directory.
- Path used by pkg/osutil to override operating system specific configuration directory.
- Backend specific data source name (DSN). Set in devcam to pass database configuration for the indexer to the devcam launched perkeepd.
- The server alias to use by default. The string is the server’s alias key
in the client-config.json “servers” object. If set, the
CAMLI_DEFAULT_SERVERtakes precedence over the “default” bool in client-config.json.
- If set, the base directory of Perkeep when in dev mode. Used by pkg/server for finding static assests (js, css, html). Used as a signal by pkg/index/* and pkg/server to output more helpful error message when run under devcam.
- Path override for pkg/server. If specified, this path will be used to serve the closure handler.
- If true, importers are disabled (at least automatic background importing, e.g. at start-up). Mostly for debugging.
art-up). Mostly for debugging.
Used by make.go to force building an unrecommended OS/ARCH pair.
- Variables prefixed with
CAMLI_GCE_concern the Google Compute Engine deploy handler in pkg/deploy/gce, which is only used by camweb to launch Perkeep on Google Compute Engine. They do not affect Perkeep’s behaviour.
CAMLI_GCE_*first. This string is used by gce.DeployHandler as the application’s OAuth Client ID. If blank, camweb does not enable the Google Compute Engine launcher.
CAMLI_GCE_*first. Used by gce.DeployHandler as the application’s OAuth Client Secret. If blank, gce.NewDeployHandler returns an error, and camweb fails to start if the Google Compute Engine launcher was enabled.
CAMLI_GCE_*first. Path to the directory where gce.DeployHandler stores the instances configuration and state. If blank, the “camli-gce-data” default is used instead.
CAMLI_GCE_*first. ID of the Google Project that provides the above client ID and secret. It is used when we query for the list of all the existing zones, since such a query requires a project ID. If blank, a hard-coded list of zones is used instead.
CAMLI_GCE_*first. Path to a Google service account JSON file. This account should have at least compute.readonly permissions on the Google Project wih ID CAMLI_GCE_PROJECT. It is used to authenticate when querying for the list of all the existing zones. If blank, a hard-coded list of zones is used instead.
CAMLI_GCE_*first. Used by gce.DeployHandler as the XSRF protection key. If blank, gce.NewDeployHandler generates a new random key instead.
- As gopherjs does not build with go tip, when make.go is run with go devel, CAMLI_GOPHERJS_GOROOT should be set to a Go 1.10 root so that gopherjs can be built with Go 1.10. Otherwise it defaults to $HOME/go1.10.
- Whether to start the hello world app as well. Variable used only by devcam server.
- Enable json export of expvars at /debug/vars
- Enable standard library’s pprof handler at /debug/pprof/
- Override client configuration option ‘ignoredFiles’. Comma-seperated list of files to be ignored by pkg/client when uploading.
- Path to search for files. Referenced in pkg/osutil and used indirectly by go4.org/jsonconfig.ConfigParser to search for files mentioned in configurations. This is used as a last resort after first checking the current directory and the Perkeep config directory. It should be in the OS path form, i.e. unix-like systems would be /path/1:/path/two:/some/other/path, and Windows would be C:\path\one;D:\path\2
- Optional GPG identity to use, taking precedence over config files. Used by devcam commands, in config/dev-server-config.json, and config/dev-client-dir/client-config.json as the public ID of the GPG key to use for signing.
- Enable all the VerifyDb* options in cznic/kv, to e.g. track down corruptions.
- Use cznic/kv as the indexer. Variable used only by devcam server.
- Use syndtr/goleveldb as the indexer. Variable used only by devcam server.
- Use a memory-only indexer. Supported only by devcam server.
- Wipe out mongo based index on startup.
- This will cause the search-for-exists-before-upload step to be skipped when pk put is uploading files.
- Filename base to write a “
.cpu” and “ .mem” profile out to during server start-up. Used to profile index corpus scanning, mostly.
- Whether to start the publisher app as well. Variable used only by devcam server.
- Whether to start the scanning cabinet app as well. Variable used only by devcam server.
- Path to the GPG secret keyring, which is otherwise set by identitySecretRing in the server config, and secretRing in the client config.
- If set, the pkg/client code will never use the on-disk config file.
- Enable operation counts for fuse filesystem.
- Override client configuration option ‘trustedCerts’. Comma-seperated list of paths to trusted certificate fingerprints.
- Enable pkg/client status messages to print to stdout. Used in android client.
- Disable use of djpeg(1) to down-sample JPEG images by a factor of 2, 4 or 8. Only has an effect when djpeg is found in the PATH.
- If true, no thumbnail caching is done, and URLs even have cache buster components, to force browsers to reload a lot.
- If true, the indexer will always index any blob it receives, regardless of whether it thinks it’s done it in the past. This is generally only useful when working on the indexing code and retroactively indexing a subset of content without forcing a global reindexing.
- Path used by pkg/osutil to override operating system specific application storage directory. Generally unused.
- Number from 0-100 of what percentage of the time to fail receiving blobs for the S3 handler.
- Used by perkeepd and pk put to enable additional commandline options. Used in pkg/schema to enable additional logging.
- Enable per-request logging in pkg/webserver.
- Causes pkg/serverconfig to dump low-level configuration derived from high-level configuation on load.
- String containing magic substring(s) to enable debuggging in code.
- Used by pkg/client to enable additional logging.
- Enable extra debugging in pkg/images when decoding images. Used by indexers.
- Whether to enable the use of legacy sha1 blobs. Only used for development, for creating new blobs with the legacy SHA-1 hash, instead of with the current one. It does not affect the ability of Perkeep to read SHA-1 blobs.
- Used by dev/demo.sh for giving presentations with devcam server/put/etc for faster pre-built builds, without calling make.go.
- Rate limit and/or inject latency in pkg/webserver responses. A value of 0 disables traffic-shaping.
- Run known-broken tests.
These variables are yet to be documented: