forked from cam-inc/MxTransporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.template
122 lines (98 loc) · 4.11 KB
/
.env.template
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# Require
## e.g. HOST=mongodb+srv://<user name>:<passward>@xxx.yyy.mongodb.net/test?retryWrites=true&w=majority
MONGODB_HOST=
MONGODB_DATABASE=
MONGODB_COLLECTION=
# Optional
## You have to specify this environment variable if you want to export BigQuery, Pub/Sub.
PROJECT_NAME_TO_EXPORT_CHANGE_STREAMS=
# Optional
## You have to specify this environment variable if you want to export BigQuery.
BIGQUERY_DATASET=
BIGQUERY_TABLE=
# Optional
## You have to specify this environment variable if you want to export Kinesis Data Stream.
KINESIS_STREAM_NAME=
KINESIS_STREAM_REGION=
# Optional
## You have to specify this environment variable if you want to export Cloud PubSub.
PUBSUB_TOPIC_NAME=
# Require
## Specify the location you want to export.
## e.g. EXPORT_DESTINATION=bigquery
## e.g. EXPORT_DESTINATION=bigquery,pubsub,kinesisStream,file
EXPORT_DESTINATION=
# Require
## Specify the time zone you run this middleware by referring to the following. (e.g. TIME_ZONE=Asia/Tokyo)
## https://cs.opensource.google/go/go/+/master:src/time/zoneinfo_abbrs_windows.go;drc=72ab424bc899735ec3c1e2bd3301897fc11872ba;l=15
TIME_ZONE=
# File Exporter Relationship ===============================================================================
# Optional
## If you select file as the export destination ("EXPORT_DESTINATION") file full path(default "stdout")
## e.g. FILE_EXPORTER_WRITER=file
## e.g. FILE_EXPORTER_WRITER=stdout
FILE_EXPORTER_WRITER=
# Optional
## If you select file export and no stdout mode, one file max size(mega-bytes)
FILE_EXPORTER_WRITER_MAX_MEGABYTES=
# Optional
## If you select file export and no stdout mode, the maximum number of days to retain (The default is not to remove).
FILE_EXPORTER_WRITER_MAX_DAYS=
# Optional
## the maximum number of old rotated file to retain(The default is to retain all old log files)
FILE_EXPORTER_WRITER_MAX_BACKUPS=
# Optional
## Log type when file is selected as the export destination of change streams.
## Defaul is "changeStream".
FILE_EXPORTER_LOG_TYPE_KEY=
# Optional
## If you select file as the export destination for change streams, the key for the change streams field in the log.
## Defaul is "cs".
FILE_EXPORTER_CHANGE_STREAM_KEY=
# Optional
## JSON time field key. Default is no field itself.
FILE_EXPORTER_TIME_KEY=
# Optional
## JSON time field key. Default is no field itself.
FILE_EXPORTER_NAME_KEY=
# ==========================================================================================================
# Resume Token Relationship =================================================================================
# Require
## One resume token is saved in the location specified here.
## e.g. RESUME_TOKEN_VOLUME_DIR=/dsk/pvc
RESUME_TOKEN_VOLUME_DIR=
# Optional
## specify saved resume token storage type (default value is file)
## e.g. file, s3, gcs
RESUME_TOKEN_VOLUME_TYPE=
# Optional
## specify saved resume token cloud storage bucket name (Not required for file type)
RESUME_TOKEN_VOLUME_BUCKET_NAME=
# Optional
## specify saved resume token file name (default value is {MONGODB_COLLECTION}.dat)
RESUME_TOKEN_FILE_NAME=
# Optional
## specify saved resume token cloud storage bucket region (Not required for file type)
RESUME_TOKEN_BUCKET_REGION=
# Optional
## specify saved resume token interval (default 0 sec)
RESUME_TOKEN_SAVE_INTERVAL_SEC=
# ==========================================================================================================
# Log Relationship ========================================================================================
# Optional
## MxT use zap library.
## Specify the MxT log setting you run this middleware by referring to the following.
### Specify log level, "0" is Info level, "1" is Error level. default is "0".
### e.g. LOG_LEVEL=0
LOG_LEVEL=
### Specify log format, json or console. default is json.
### e.g. LOG_FORMAT=console
LOG_FORMAT=
### Specify log output Directory.
### e.g. LOG_OUTPUT_PATH=/var/log/
### e.g. LOG_OUTPUT_PATH=../../var/log/
LOG_OUTPUT_DIRECTORY=
### Specify log output File.
### e.g. LOG_OUTPUT_FILE=mxt.log
LOG_OUTPUT_FILE=
# ==========================================================================================================