-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env.example
130 lines (105 loc) · 6.93 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
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
123
124
125
126
127
128
129
130
#################################################################################################
####################################### EXECUTION SETUP #######################################
#################################################################################################
# NODE_ENV: development - execute the platform in development environment
# test - execute the platform in test environment
# production - execute the platform in production environment
# default value: development
NODE_ENV=development
#################################################################################################
################################## DATA SYNC AGENT API SETUP ####################################
#################################################################################################
# PORT_HTTP: Port used by the Data Sync Agent service to listen for HTTP request.
# default value: 9000
PORT_HTTP=9000
# PORT_HTTPS: Port used to listen for HTTPS request
# default value: 9001
PORT_HTTPS=9001
#################################################################################################
####################################### CERTIFICATES/KEYS #######################################
#################################################################################################
# SSL_CERT_PATH: Certificate SSL
# default value: ./.certs/server_cert.pem
#
# To generate self-signed certificates,
# use the ./create-self-signed-certs.sh script.
SSL_CERT_PATH=./.certs/server_cert.pem
# SSL_KEY_PATH: Private key for SSL certificate
# default value: ./.certs/server_key.pem
#
# To generate self-signed certificates,
# use the ./create-self-signed-certs.sh script.
SSL_KEY_PATH=./.certs/server_key.pem
#################################################################################################
######################################## DATABASES SETUP ########################################
#################################################################################################
# MONGODB_URI: Database connection URI used by the ACCOUNT service for connecting to
# a MongoDB instance if the application is running in development or
# production environment (NODE_ENV=development or NODE_ENV=production).
# default value: mongodb://localhost:27017/ds-agent
MONGODB_URI=mongodb://localhost:27017/ds-agent
# MONGODB_URI_TEST: Database connection URI used by the ACCOUNT service for connecting to
# a MongoDB instance if the application is running test environment
# (NODE_ENV=test).
# default value: mongodb://localhost:27017/ds-agent-test
MONGODB_URI_TEST=mongodb://localhost:27017/ds-agent-test
# MONGODB_ENABLE_TLS: Enables/Disables connection to TLS
# When TLS is used for connection, client certificates
# are required (MONGODB_KEY_PATH, MONGODB_CA_PATH).
#
# default value: false
MONGODB_ENABLE_TLS=false
# MONGODB_KEY_PATH: Client certificate and key in .pem format to connect to MongoDB
# default value: .certs/mongodb/client.pem
MONGODB_KEY_PATH=.certs/mongodb/client.pem
# MONGODB_CA_PATH: MongoDB Certificate of the Authentication entity (CA)
# default value: .certs/mongodb/client.pem
MONGODB_CA_PATH=.certs/mongodb/ca.pem
# REDIS_URI: Redis database connection URI. Using for sync jobs.
# default value: redis://localhost:6379
REDIS_URI=redis://localhost:6379
#################################################################################################
##################################### MESSAGE CHANNEL SETUP #####################################
#################################################################################################
# RABBITMQ_URI: URI for connection to RabbitMQ.
# When TLS is used for connection the protocol is amqps
# and client certificates are required (RABBITMQ_CERT_PATH,
# RABBITMQ_KEY_PATH, RABBITMQ_CA_PATH)
#
# format value: amqp://user:pass@host:port/vhost
# default value: amqp://guest:guest@localhost:5672
RABBITMQ_URI=amqp://guest:guest@localhost:5672
# RABBITMQ_CERT_PATH: RabbitMQ Certificate
# default value: .certs/rabbitmq/server_cert.pem
RABBITMQ_CERT_PATH=.certs/rabbitmq/server_cert.pem
# RABBITMQ_KEY_PATH: RabbitMQ Key
# default value: .certs/rabbitmq/server_key.pem
RABBITMQ_KEY_PATH=.certs/rabbitmq/server_key.pem
# RABBITMQ_CA_PATH: RabbitMQ Certificate of the Authentication entity (CA)
# default value: .certs/rabbitmq/ca.pem
RABBITMQ_CA_PATH=.certs/rabbitmq/ca.pem
#################################################################################################
##################################### FITBIT CLIENT SETUP #######################################
#################################################################################################
# FITBIT_CLIENT_ID: Client Id for Fitbit Application responsible to manage user data.
# default value: CLIENT_ID_HERE
FITBIT_CLIENT_ID=CLIENT_ID_HERE
# FITBIT_CLIENT_SECRET: Client Secret for Fitbit Application responsible to manage user data.
# default value: CLIENT_SECRET_HERE
FITBIT_CLIENT_SECRET=CLIENT_SECRET_HERE
# EXPRESSION_AUTO_SYNC Frequency time that the application will sync the users data in
# background according to the crontab expression.
# For example, the value 0 0 * * 0, means that the sync it will occurs
# every sunday at 00:00.
# default value: 0 0 * * 0
EXPRESSION_AUTO_SYNC=0 0 * * 0
# EXPRESSION_INACTIVE_USERS Frequency time the application will search for inactive users to
# invalidate them in background according to the crontab expression.
# For example, the value 0 * * * *, means that the search it will
# occurs every hour in minute 0.
# default value: 0 * * * *
EXPRESSION_INACTIVE_USERS=0 * * * *
# DAYS_INACTIVE_USERS Number of days used to invalidate Fitbit access for an inactive user.
#
# default value: 14
DAYS_INACTIVE_USERS=14