-
Notifications
You must be signed in to change notification settings - Fork 0
/
dist.env
55 lines (43 loc) · 1.75 KB
/
dist.env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# When adding new environment variables, make sure to update
# expectedEnvVariables in package.json if said variables should definitely be
# defined.
# If !false, Next's bundle(s) will be analyzed and report files generated
ANALYZE=false
# This is the default NODE_ENV setting for the application. Recognized values:
# development
# test
# production
#
# This can be overwritten in the cli, i.e. `NODE_ENV=production npm run test-ib`
NODE_ENV=development
# MongoDB connect URI
# Specify auth credentials if necessary
# MUST SPECIFY A DATABASE AT THE END! i.e. mongodb://.../your-database-here
MONGODB_URI=
# Determines the maximum number of items returned by paginated endpoints
MAX_LIMIT=50
# If !false, all rate limits and exponential soft banning will be ignored
IGNORE_RATE_LIMITS=false
# If !false, no one will be able to use the API
LOCKOUT_ALL_KEYS=false
# Controls what request methods are allowed. Empty means all are allowed
# (default).
#
# Example, to make API read-only:
# DISALLOWED_METHODS=POST,PUT
DISALLOWED_METHODS=
# Every Nth request will be be cancelled and an HTTP 555 response returned. Set
# to 0 to disable
REQUESTS_PER_CONTRIVED_ERROR=10
# Maximum allowed number of options per election
MAX_OPTIONS_PER_ELECTION=15
# Maximum allowed number of voter rankings per election
MAX_RANKINGS_PER_ELECTION=1000
# Maximum allowed size of a request body and Content-Length header in bytes.
# Should be a string like 1kb, 1mb, 500b
MAX_CONTENT_LENGTH_BYTES=100kb
# Optional environment variable that, if !false, instructs the app to DESTROY
# the contents of the current database and replace it with dummy data when a
# client visits the index page. This will only work when NODE_ENV=development to
# protect against accidental use.
HYDRATE_DB_ON_STARTUP=false