-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.env
More file actions
40 lines (34 loc) · 1.58 KB
/
example.env
File metadata and controls
40 lines (34 loc) · 1.58 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
# This is a template for the .env file.
# Edit the following values and rename this file to .env
# Crypto related
SECRET='SomeRandomString' # Server's secret used for signing
SIG_LEN=5 # Signature character count
HASH_LEN=5 # Hash character count
# Limits related
MAX_PUBLIC_POSTS_RETAINED=50 # Max number of publicly POSTed messages retained. Beyond this, old POSTs are deleted
MAX_PRIVATE_POST_FIELDS=50 # Max number of privately POSTed fields-values allowed
TTL=86400 # Time to live for data in seconds
BODYLIMIT=10000 # Max content-length in bytes. Note: 1 byte = 1 character.
RATELIMIT=20 # Max number of requests within following time period
RATELIMIT_WINDOW=300 # In seconds
CACHE_TTL=86400 # TTL for cache in seconds
CDN_TTL= 30 # TTL for CDN in days
WEBHOOK_TIMEOUT=4000 # Request timeout for POST to webhook, in milliseconds
STREAM_TIMEOUT=60 # TTL of stream/pipe tokens in seconds
MAX_STREAM_COUNT=5 # Max number of stream/pipe tokens in memory
DEFUNCT_PIPE_PLUMB_TIMEOUT=2000 # in milliseconds
PIPING_SERVER_URL='https://ppng.io/' # or, https://httprelay.io/
# Redis credentials to be used for the main database
UPSTASH_REDIS_REST_URL_MAIN=
UPSTASH_REDIS_REST_TOKEN_MAIN=
# Redis credentials to be used for cache
UPSTASH_REDIS_REST_URL_CACHE=
UPSTASH_REDIS_REST_TOKEN_CACHE=
# Disable upstash SDK telemetry for performance
UPSTASH_DISABLE_TELEMETRY=1
# OneSignal credentials for web-push for each app registered @ https://github.com/securelay/apps
ONESIGNAL_API_KEY_FORMONIT=
ONESIGNAL_APP_ID_FORMONIT=
# GitHub credentials for JSON bin
GITHUB_PAT=
GITHUB_OWNER_REPO_REF='securelay/jsonbin/main'