2013-09-06 04:07:15 +00:00
|
|
|
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.
|
|
|
|
|
|
|
|
AWS_ACCESS_KEY_ID (string):
|
|
|
|
AWS_ACCESS_KEY_SECRET (string):
|
|
|
|
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.
|
|
|
|
|
2014-06-15 21:14:35 +00:00
|
|
|
CAMLI_APP_BINDIR (string):
|
|
|
|
Path to the directory where Camlistore first looks for the server applications
|
|
|
|
executables, when starting them. It looks in PATH otherwise.
|
|
|
|
|
2013-09-06 04:07:15 +00:00
|
|
|
CAMLI_AUTH (string):
|
|
|
|
See http://camlistore.org/docs/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 camlistore instance to talk to, this env var
|
|
|
|
takes precedence over that specified in the configuration files.
|
|
|
|
|
|
|
|
CAMLI_BASEURL (string):
|
|
|
|
URL set in devcam to act as a baseURL in the devcam launched camlistored.
|
|
|
|
|
|
|
|
CAMLI_CACHE_DIR (string):
|
|
|
|
Path used by pkg/osutil to override operating system specific cache
|
|
|
|
directory.
|
|
|
|
|
|
|
|
CAMLI_CONFIG_DIR (string):
|
|
|
|
Path used by pkg/osutil to override operating system specific configuration
|
|
|
|
directory.
|
|
|
|
|
|
|
|
CAMLI_DBNAME (string):
|
|
|
|
Backend specific data source name (DSN).
|
|
|
|
Set in devcam to pass database configuration for the indexer to the devcam
|
|
|
|
launched camlistored.
|
|
|
|
|
|
|
|
CAMLI_DEBUG (bool):
|
|
|
|
Used by camlistored and camput to enable additional commandline options.
|
|
|
|
Used in pkg/schema to enable additional logging.
|
|
|
|
|
|
|
|
CAMLI_DEBUG_CONFIG (bool):
|
|
|
|
Causes pkg/serverconfig to dump low-level configuration derived from
|
|
|
|
high-level configuation on load.
|
|
|
|
|
2015-04-13 17:45:54 +00:00
|
|
|
CAMLI_DEBUG_X (string):
|
|
|
|
String containing magic substring(s) to enable debuggging in code.
|
|
|
|
|
2013-09-06 04:07:15 +00:00
|
|
|
CAMLI_DEBUG_UPLOADS (bool):
|
|
|
|
Used by pkg/client to enable additional logging.
|
|
|
|
|
2014-01-11 18:41:36 +00:00
|
|
|
CAMLI_DEFAULT_SERVER (string):
|
|
|
|
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_SERVER
|
|
|
|
takes precedence over the "default" bool in client-config.json.
|
|
|
|
|
2013-09-06 04:07:15 +00:00
|
|
|
CAMLI_DEV_CAMLI_ROOT (string):
|
|
|
|
If set, the base directory of Camlistore 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.
|
|
|
|
|
|
|
|
CAMLI_DEV_CLOSURE_DIR (string):
|
|
|
|
Path override for pkg/server. If specified, this path will be used to serve
|
|
|
|
the closure handler.
|
|
|
|
|
2015-01-19 03:02:02 +00:00
|
|
|
CAMLI_DISABLE_IMPORTERS (bool):
|
|
|
|
If true, importers are disabled (at least automatic background
|
|
|
|
importing, e.g. at start-up). Mostly for debugging.
|
|
|
|
|
2015-01-19 15:23:46 +00:00
|
|
|
CAMLI_FAST_DEV (bool):
|
|
|
|
Used by dev/demo.sh for giving presentations with devcam server/put/etc
|
|
|
|
for faster pre-built builds, without calling make.go.
|
|
|
|
|
|
|
|
CAMLI_FORCE_OSARCH (bool):
|
|
|
|
Used by make.go to force building an unrecommended OS/ARCH pair.
|
|
|
|
|
|
|
|
CAMLI_GCE_*:
|
|
|
|
Variables prefixed with CAMLI_GCE_ concern the Google Compute Engine deploy handler in
|
|
|
|
pkg/deploy/gce, which is only used by camweb to launch Camlistore on Google Compute
|
|
|
|
Engine. They do not affect Camlistore's behaviour.
|
|
|
|
|
|
|
|
CAMLI_GCE_CLIENTID (string):
|
|
|
|
See 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_CLIENTSECRET (string):
|
|
|
|
See 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_DATA (string):
|
|
|
|
See 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.
|
|
|
|
|
2015-02-11 21:50:21 +00:00
|
|
|
CAMLI_GCE_PROJECT (string):
|
|
|
|
See 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_SERVICE_ACCOUNT (string):
|
|
|
|
See 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.
|
|
|
|
|
2015-01-19 15:23:46 +00:00
|
|
|
CAMLI_GCE_XSRFKEY (string):
|
|
|
|
See CAMLI_GCE_* first. Used by gce.DeployHandler as the XSRF protection key. If blank,
|
|
|
|
gce.NewDeployHandler generates a new random key instead.
|
|
|
|
|
2013-09-06 04:07:15 +00:00
|
|
|
CAMLI_HTTP_DEBUG (bool):
|
|
|
|
Enable per-request logging in pkg/webserver.
|
|
|
|
|
2013-10-05 04:24:24 +00:00
|
|
|
CAMLI_HTTP_EXPVAR (bool):
|
|
|
|
Enable json export of expvars at /debug/vars
|
|
|
|
|
2013-09-06 04:07:15 +00:00
|
|
|
CAMLI_HTTP_PPROF (bool):
|
|
|
|
Enable standard library's pprof handler at /debug/pprof/
|
|
|
|
|
|
|
|
CAMLI_IGNORED_FILES (string):
|
|
|
|
Override client configuration option 'ignoredFiles'.
|
2013-12-14 23:24:21 +00:00
|
|
|
Comma-seperated list of files to be ignored by pkg/client when uploading.
|
2013-09-06 04:07:15 +00:00
|
|
|
|
|
|
|
CAMLI_INCLUDE_PATH (string):
|
|
|
|
Path to search for files.
|
|
|
|
Referenced in pkg/osutil and used indirectly by pkg/jsonconfig.ConfigParser
|
|
|
|
to search for files mentioned in configurations. This is used as a last
|
|
|
|
resort after first checking the current directory and the camlistore 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
|
|
|
|
|
2013-09-20 13:42:05 +00:00
|
|
|
CAMLI_KEYID (string):
|
2014-03-31 14:30:54 +00:00
|
|
|
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.
|
2013-09-20 13:42:05 +00:00
|
|
|
|
2014-03-19 22:47:24 +00:00
|
|
|
CAMLI_KV_VERIFY (bool):
|
|
|
|
Enable all the VerifyDb* options in cznic/kv, to e.g. track down
|
|
|
|
corruptions.
|
|
|
|
|
2015-07-22 21:59:14 +00:00
|
|
|
CAMLI_KVINDEX_ENABLED (bool):
|
|
|
|
Use cznic/kv as the indexer. Variable used only by devcam server.
|
|
|
|
|
|
|
|
CAMLI_LEVELDB_ENABLED (bool):
|
|
|
|
Use syndtr/goleveldb as the indexer. Variable used only by devcam server.
|
|
|
|
|
2014-08-26 16:27:23 +00:00
|
|
|
CAMLI_MEMINDEX_ENABLED (bool):
|
|
|
|
Use a memory-only indexer. Supported only by devcam server.
|
|
|
|
|
2013-09-06 04:07:15 +00:00
|
|
|
CAMLI_MONGO_WIPE (bool):
|
|
|
|
Wipe out mongo based index on startup.
|
|
|
|
|
devcam test: do not "recurse" temp GOPATH, docs, couple more options.
Problem: make.go creates an isolated temp gopath ./tmp/build-gopath. The
integration tests make use of that gopath (by running make.go) to build
the tools, and run the test world in it. Similarly, devcam test uses
make.go to setup that temp gopath, and runs the tests from the source
files in that gopath. Consequently, when the integration tests are run
through devcam test, even though they're run from the temp gopath, they
would use the make.go in it, which would create a nested temp gopath
(CAMLIROOT/tmp/build-gopath/src/camlistore.org/tmp/build-gopath) in
which to run the tests.
This patch addresses this issue by creating a new flag (-envGoPath), and
the corresponding env var (CAMLI_MAKE_USEGOPATH), which tells make.go
not to create a new temporary gopath (and hence not to mirror any
files), and to rely on the already set GOPATH env var instead.
Also refactored make.go a bit, and added a couple options and doc to
devcam test.
Change-Id: Ia8a5d7a31e6e317f05218d9e18fb886001cd19cb
2014-08-06 16:47:42 +00:00
|
|
|
CAMLI_MAKE_USEGOPATH (bool):
|
|
|
|
When running make.go, overrides the -use_gopath flag.
|
|
|
|
|
2013-09-06 04:07:15 +00:00
|
|
|
CAMLI_NO_FILE_DUP_SEARCH (bool):
|
|
|
|
This will cause the search-for-exists-before-upload step to be skipped when
|
|
|
|
camput is uploading files.
|
|
|
|
|
2013-11-30 18:01:32 +00:00
|
|
|
CAMLI_PPROF_START (string):
|
2013-12-08 02:34:13 +00:00
|
|
|
Filename base to write a "<base>.cpu" and "<base>.mem" profile out
|
|
|
|
to during server start-up. Used to profile index corpus scanning,
|
|
|
|
mostly.
|
2013-11-30 18:01:32 +00:00
|
|
|
|
2013-09-06 04:07:15 +00:00
|
|
|
CAMLI_QUIET (bool):
|
|
|
|
Used by devcam to enable -verbose flag for camput/camget.
|
|
|
|
|
2013-09-19 17:24:07 +00:00
|
|
|
CAMLI_SECRET_RING (string):
|
|
|
|
Path to the GPG secret keyring, which is otherwise set by identitySecretRing
|
|
|
|
in the server config, and secretRing in the client config.
|
|
|
|
|
2014-01-20 21:54:42 +00:00
|
|
|
CAMLI_DISABLE_CLIENT_CONFIG_FILE (bool):
|
|
|
|
If set, the pkg/client code will never use the on-disk config file.
|
|
|
|
|
2013-09-06 04:07:15 +00:00
|
|
|
CAMLI_TRACK_FS_STATS (bool):
|
|
|
|
Enable operation counts for fuse filesystem.
|
|
|
|
|
|
|
|
CAMLI_TRUSTED_CERT (string):
|
|
|
|
Override client configuration option 'trustedCerts'.
|
|
|
|
Comma-seperated list of paths to trusted certificate fingerprints.
|
|
|
|
|
|
|
|
CAMPUT_ANDROID_OUTPUT (bool):
|
|
|
|
Enable pkg/client status messages to print to stdout. Used in android client.
|
|
|
|
|
2013-12-17 02:11:52 +00:00
|
|
|
CAMLI_DEBUG_IMAGES (bool):
|
2013-09-06 04:07:15 +00:00
|
|
|
Enable extra debugging in pkg/images when decoding images. Used by indexers.
|
|
|
|
|
2013-10-13 18:11:41 +00:00
|
|
|
CAMLI_DISABLE_DJPEG (bool):
|
|
|
|
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.
|
|
|
|
|
2013-12-17 02:11:52 +00:00
|
|
|
CAMLI_DISABLE_THUMB_CACHE (bool):
|
|
|
|
If true, no thumbnail caching is done, and URLs even have cache
|
|
|
|
buster components, to force browsers to reload a lot.
|
|
|
|
|
2014-02-23 18:18:15 +00:00
|
|
|
CAMLI_VAR_DIR (string):
|
|
|
|
Path used by pkg/osutil to override operating system specific application
|
|
|
|
storage directory. Generally unused.
|
|
|
|
|
2014-03-05 16:26:34 +00:00
|
|
|
CAMLI_S3_FAIL_PERCENT (int):
|
|
|
|
Number from 0-100 of what percentage of the time to fail receiving blobs
|
|
|
|
for the S3 handler.
|
|
|
|
|
2013-09-06 04:07:15 +00:00
|
|
|
DEV_THROTTLE_KBPS (integer):
|
|
|
|
DEV_THROTTLE_LATENCY_MS (integer):
|
|
|
|
Rate limit and/or inject latency in pkg/webserver responses. A value of 0
|
|
|
|
disables traffic-shaping.
|
2013-11-24 23:00:16 +00:00
|
|
|
|
2013-10-13 18:11:41 +00:00
|
|
|
RUN_BROKEN_TESTS (bool):
|
2013-11-24 23:00:16 +00:00
|
|
|
Run known-broken tests.
|