-
Notifications
You must be signed in to change notification settings - Fork 3
/
.env.example
executable file
·138 lines (106 loc) · 6.55 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
131
132
133
134
135
136
137
138
#################################################################################################
####################################### 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
#################################################################################################
####################################### OCARIoT API SETUP #######################################
#################################################################################################
# PORT_HTTP: Port used by the API GATEWAY service to listen for HTTP request.
# default value: 80
PORT_HTTP=80
# PORT_HTTPS: Port used by the API GATEWAY service to listen for HTTPS request.
# default value: 443
PORT_HTTPS=443
# API_GATEWAY_HOSTNAME: API Gateway hostname.
# default value: localhost
API_GATEWAY_HOSTNAME=localhost
# API_IOT_HOSTNAME: API IoT hostname.
# default value: iot.localhost
API_IOT_HOSTNAME=iot.localhost
# RABBIT_MGT_HOSTNAME: RabbitMQ Management hostname.
# default value: rabbit.localhost
RABBIT_MGT_HOSTNAME=rabbit.localhost
#################################################################################################
############################## AUTHORIZATION/AUTHENTICATION SETUP ###############################
#################################################################################################
# ISSUER: issuer used to validate the JWT token sent into the requests
# default value: ocariot
ISSUER=ocariot
#################################################################################################
####################################### CERTIFICATES/KEYS #######################################
#################################################################################################
# SSL_KEY_PATH: Private key for SSL certificate
# default value: ./.certs/tls.key
SSL_KEY_PATH=./.certs/server.key
# SSL_CERT_PATH: Certificate SSL
# default value: ./.certs/tls.pem
SSL_CERT_PATH=./.certs/server.crt
# SSL_IOT_KEY_PATH: Private key for IoT service SSL certificate
# default value: ./.certs/iot_server.key
SSL_IOT_KEY_PATH=./.certs/iot_server.key
# SSL_IOT_CERT_PATH: Certificate SSL for IoT service
# default value: ./.certs/iot_server.crt
SSL_IOT_CERT_PATH=./.certs/iot_server.crt
# SSL_IOT_CA_PATH: CA SSL for IoT service
# default value: ./.certs/ca.crt
SSL_IOT_CA_PATH=./.certs/ca.crt
# JWT_PUBLIC_KEY_PATH: JWT public key used for token verification (should be the same as provided
# in the account microservice)
# default value: ./.certs/jwt.pub
JWT_PUBLIC_KEY_PATH=./.certs/jwt.key.pub
# VAULT_ACCESS_TOKEN: Token for http access to the vault
# default value: vault_access_token
VAULT_ACCESS_TOKEN=vault_access_token
#################################################################################################
#################################### SERVICES ENDPOINTS SETUP ###################################
#################################################################################################
# ACCOUNT_SERVICE: URI used to connect to the account service
# default value: https://localhost:3001
ACCOUNT_SERVICE=https://localhost:3001
# IOT_TRACKING_SERVICE: URI used to connect to the iot tracking service
# default value: https://localhost:4001
IOT_TRACKING_SERVICE=https://localhost:4001
# DS_AGENT_SERVICE: URI used to connect to the data sync agent service
# default value: https://localhost:5001
DS_AGENT_SERVICE=https://localhost:5001
# QUESTIONNAIRE_SERVICE: URI used to connect to the questinnaire service
# default value: https://localhost:6001
QUESTIONNAIRE_SERVICE=https://localhost:6001
# GAMIFICATION_SERVICE: URI used to connect to the gamification service
# default value: https://localhost:7001
GAMIFICATION_SERVICE=https://localhost:7001
# MISSION_SERVICE: URI used to connect to the mission service
# default value: https://localhost:8001
MISSION_SERVICE=https://localhost:8001
# FOOD_SERVICE: URI used to connect to the food service
# default value: https://localhost:9001
FOOD_SERVICE=https://localhost:9001
# NOTIFICATION_SERVICE: URI used to connect to the notification service
# default value: https://localhost:10001
NOTIFICATION_SERVICE=https://localhost:10001
# RABBIT_MGT_SERVICE: URI used to connect to the RabbitMQ Management
# default value: https://localhost:15672
RABBIT_MGT_SERVICE=https://localhost:15672
# VAULT_SERVICE: URI used to connect to the Vault
# default value: https://localhost:8200
VAULT_SERVICE=https://localhost:8200
#################################################################################################
###################################### REDIS DATABASE SETUP #####################################
#################################################################################################
# EMULATE_REDIS: true - emulated database, all the data is be lost if the gateway is
# restarted
# false - data stored in a redis database instance
# default value: true
EMULATE_REDIS=true
# PORT_REDIS: If using REDIS database (EMULATE_REDIS=false), it defines the database
# port
# default value: 6379
PORT_REDIS=6379
# HOST_REDIS: If using REDIS database (EMULATE_REDIS=false), it defines the database
# host address
# default value: localhost
HOST_REDIS=localhost