You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rust uses environment variables for a number of configuration options. Some of these include:
variable
value
description
RUST_LOG
debug, info, warn, error
minimum Rust error logging level
RUST_TEST_THREADS
1
maximum number of concurrent threads for testing.
In addition, Sync server configuration options can either be specified as environment variables (prefixed with SYNC_*) or in a configuration file using the --config option.
For example the following are equivalent:
$ SYNC_HOST=0.0.0.0 SYNC_MASTER_SECRET="SuperSikkr3t" SYNC_SYNCSTORAGE__DATABASE_URL=mysql://scott:tiger@localhost/syncstorage cargo run
The storage node URL, protocol + host, to insert into the nodes table on startup. This is the origin where the service is hosted, e.g. "http://localhost:8000".
SYNC_TOKENSERVER__INIT_NODE_CAPACITY
100000
The storage node capacity of the server specified by SYNC_TOKENSERVER__INIT_NODE_URL. Only used if SYNC_TOKENSERVER__INIT_NODE_URL is set.
SYNC_TOKENSERVER__ENABLED
false
Enable tokenserver service
SYNC_TOKENSERVER__RUN_MIGRATIONS
false
Run DB migrations on startup
SYNC_TOKENSERVER__NODE_TYPE
spanner
Storage backend type reported in token response for telemetry. Valid values: "mysql", "postgres", "spanner"
SYNC_TOKENSERVER__STATSD_LABEL
syncstorage.tokenserver
StatsD metrics label prefix
SYNC_TOKENSERVER__TOKEN_DURATION
3600
Token TTL (1 hour)
SYNC_TOKENSERVER__FXA_WEBHOOK_ENABLED
false
Enable the FxA webhook endpoint. When disabled, the route is not registered.