-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env.example
95 lines (77 loc) · 5.08 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
#################################################################################################
####################################### 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
#################################################################################################
####################################### MHEALTH API SETUP #######################################
#################################################################################################
# PORT_HTTP: Port used by the m-health service to listen for HTTP request.
# default value: 4000
PORT_HTTP=4000
# PORT_HTTPS: Port used to listen for HTTPS request
# default value: 4001
PORT_HTTPS=4001
#################################################################################################
####################################### 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 MHEALTH 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/mhealth-service
MONGODB_URI=mongodb://localhost:27017/mhealth-service
# MONGODB_URI_TEST: Database connection URI used by the MHEALTH service for connecting to
# a MongoDB instance if the application is running test environment
# (NODE_ENV=test).
# default value: mongodb://localhost:27017/mhealth-service-test
MONGODB_URI_TEST=mongodb://localhost:27017/mhealth-service-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
#################################################################################################
##################################### MESSAGE CHANNEL SETUP #####################################
#################################################################################################
# RABBITMQ_URI: URI for connection to RabbitMQ.
# When TLS is used for conection 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/cert.pem
RABBITMQ_CERT_PATH=.certs/rabbitmq/cert.pem
# RABBITMQ_KEY_PATH: RabbitMQ Key
# default value: .certs/rabbitmq/key.pem
RABBITMQ_KEY_PATH=.certs/rabbitmq/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