-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env.example
92 lines (80 loc) · 2.36 KB
/
.env.example
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
TZ="UTC"
PORT=9220
SWAGGER_UI=1
CIPHER_KEY="SECRET"
# Cluster mode is experimental stage for Tasks Server.
# Do not use in Docker environment.
CLUSTER_MODE=0
# The number of CPUs are available to run threads.
# 🔗 Reference: https://nodejs.org/api/os.html#oscpus
MAX_INSTANCES="MAX"
# Logger
LOG=1
# To ensure easy reading of the Log, set the log display date to your time zone.
# Default: reference to env TZ (UTC)
LOG_TZ=
#
# SQLite
#
# Path to the SQLite Database file
PATH_SQLITE=".database/tasks-dev.db"
# Available backup methods are "LOCAL" or "OBJECT_STORAGE"
# Default: LOCAL
BACKUP_METHOD_SQLITE="LOCAL"
#
# Local backup method
#
# Backup path directory SQLite, example:
# ✅ "/tmp/tasks/bakdb/test"
# ❌ "/tmp/tasks/bakdb/test/"
# ❌ "/tmp/tasks/bakdb/test/tasks.db"
BACKUP_PATH_DIR_SQLITE="/tmp/tasks/bakdb"
#
# Object Storage backup method
#
# The Object Storage compatible service endpoint URL
BACKUP_OBJECT_STORAGE_ENDPOINT=
# Access key
BACKUP_OBJECT_STORAGE_ACCESS_KEY=
# Secret key
BACKUP_OBJECT_STORAGE_SECRET_KEY=
# Bucket name
BACKUP_OBJECT_STORAGE_BUCKET_NAME=
# Path
BACKUP_OBJECT_STORAGE_PATH=
#
# Backup interval
#
# Pattern cron job
# 🔗 This can be generated by tools like https://crontab.guru
# Default: Every day at midnight
BACKUP_CRON_PATTERN_SQLITE="0 0 * * *"
# Timezone cron job
# Default: reference to env TZ (UTC)
BACKUP_CRON_TZ_SQLITE=
# The connectivity hostname is used to verify internet connectivity.
# The task requires an internet connection before it can run.
CONNECTIVITY_HOSTNAME="google.com"
# Interval for connectivity checks in milliseconds
CONNECTIVITY_CHECK_INTERVAL=5000
# Maximum size of the body request in bytes.
# Default: 32kb
MAX_SIZE_BODY_REQUEST=32768
# Maximum size of the data response in bytes.
# Default: 32kb
MAX_SIZE_DATA_RESPONSE=32768
# Maximum requests per MAX_THROTTLE_TIME_WINDOW
MAX_THROTTLE_REQUEST=10
# Maximum time window in milliseconds
# Default: 1 minute
MAX_THROTTLE_TIME_WINDOW=60000
# Dummy target URL
# This URL registration tasks for tests.
DUMMY_TARGET_URL="https://us-central1-adroit-cortex-391921.cloudfunctions.net/on-premise-tasks-wht/cb"
# Configure TLS/SSL to run the server with HTTPS protocol.
# Store TLS/SSL certificates in the tls directory.
# 📌 If you want to include multiple CAs, create a single file .crt and copy/paste the CAs into it.
# Default: EMPTY
PATH_TLS_CA=
PATH_TLS_KEY=
PATH_TLS_CERT=