-
-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy path.env.template
More file actions
47 lines (41 loc) · 2.45 KB
/
Copy path.env.template
File metadata and controls
47 lines (41 loc) · 2.45 KB
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
### Connection details - PORT, TEST_PORT, REDIS, POSTGRES, POSTGRES_TESTING, S3_ENDPOINT,
### S3_PORT and S3_SSL - are generated per git worktree by `npm run dev:env` and appended to
### the managed section at the bottom of `.env`. Don't set them here.
###
### Everything above that section is yours and is preserved when the ports are regenerated.
### Prefix prepended to all redis keys. Servers and workers that should see each other must
### agree on it.
REDIS_PREFIX=yhub
### S3 credentials. These are also the credentials of the local minio dev container.
S3_ACCESS_KEY=minioadmin
S3_SECRET_KEY=minioadmin
### S3 bucket for storing yjs documents. Persistence to S3 is disabled while this is unset.
S3_YHUB_BUCKET=yhub
### Development only: bucket used by the test suite. Never store in the main bucket!
S3_YHUB_TEST_BUCKET=yhub-testing
### Origin(s) allowed to call the api from a browser. Comma-separated for an allowlist; an
### entry may start its host with '*.': https://*.example.com matches every host under example.com.
### '*' allows every origin (and logs a warning). While unset, cross-origin browser access is
### closed - same-origin pages and non-browser clients always work. Cross-origin websocket
### connections and api requests are denied unless the origin is allowed; browsers do not
### enforce cors on those requests, so yhub does.
# CORS_ORIGIN=https://app.example.com
### Log level: trace | debug | info | warn | error | fatal | silent
LOG_LEVEL=info
### Expert configurations
## For debugging purposes and expert use.
## Changing these variables can be very dangerous. The default is carefully
## chosen. Be sure that you know what you are doing!
##
## Redis messages exist for at least one minute on the redis stream
# REDIS_MIN_MESSAGE_LIFETIME=60000
## After this timeout, a worker will pick up a task and clean up a stream.
# REDIS_TASK_DEBOUNCE=10000
## Max total size in bytes of a request's http header block (request line + all headers,
## cookies included). Enforced natively by uWebSockets.js - larger requests are rejected with
## "431 Request Header Fields Too Large" before yhub sees them. Default is 4096. Raise this if
## clients send large cookies. Must be set in the environment at process startup - it is read
## once when the uws addon loads.
## See https://github.com/uNetworking/uWebSockets/issues/1659 and
## https://github.com/uNetworking/uWebSockets/blob/c8da12b537516489b2e01dacf4d836b5bc74e826/src/HttpParser.h#L51
# UWS_HTTP_MAX_HEADERS_SIZE=32768