-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.env.example
156 lines (125 loc) · 8.03 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
#################################################################################################
####################################### EXECUTION SETUP #######################################
#################################################################################################
# NODE_ENV: development - execute the application in development environment
# test - execute the application in test environment
# production - execute the application in production environment
# default value: development
NODE_ENV=development
#################################################################################################
####################################### NOTIFICATION API SETUP #######################################
#################################################################################################
# PORT_HTTP: Port used to listen for HTTP request
# default value: 5000
PORT_HTTP=7000
# PORT_HTTPS: Port used to listen for HTTPS request
# default value: 5001
PORT_HTTPS=7001
#################################################################################################
####################################### CERTIFICATES/KEYS #######################################
#################################################################################################
# SSL_KEY_PATH: Private key for SSL certificate
# default value: ./.certs/server.key
#
# To generate self-signed certificates,
# use the ./create-self-signed-certs.sh script.
SSL_KEY_PATH=./.certs/server.key
# SSL_CERT_PATH: Certificate SSL
# default value: ./.certs/server.crt
#
# To generate self-signed certificates,
# use the ./create-self-signed-certs.sh script.
SSL_CERT_PATH=./.certs/server.crt
#################################################################################################
###################################### SMTP/EMAIL SETUP #########################################
#################################################################################################
# SMTP_HOST: SMTP protocol host for sending emails.
# To test you can use the service https://mailtrap.io
# example value: smtp.gmail.com
SMTP_HOST=YOUR_SMTP_HOST
# SMTP_PORT: SMTP port for sending emails.
# default value: 587
SMTP_PORT=587
# SMTP_USER: User/email who will authenticate to the smtp host.
SMTP_USER=YOUR_SMTP_USER
# SMTP_PASS: Password who will authenticate to the smtp host.
SMTP_PASS=YOUR_SMTP_PASS
# SENDER_NAME: Sender of emails that will be sent by the service.
SENDER_NAME=YOUR_SENDER_NAME
# ORIGIN_EMAIL: Email of origin.
ORIGIN_EMAIL=ORIGIN_EMAIL
# EMAIL_TEMPLATES_PATH Email templates path.
# If there are no customized email templates, the variable does not need
# to be configured, so the default templates will be used.
#
# If it exists, the configured path must have at least 3 directories with
# the template files: reset-password, updated-password and welcome.
EMAIL_TEMPLATES_PATH=YOUR_EMAIL_TEMPLATES_PATH
#################################################################################################
##################################### MONGO DATABASE SETUP #####################################
#################################################################################################
# MONGODB_URI: Database connection URI used by the NOTIFICATION 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/notification-service
MONGODB_URI=mongodb://localhost:27017/notification-service
# MONGODB_URI_TEST: Database connection URI used by the NOTIFICATION service for connecting to
# a MongoDB instance if the application is running test environment
# (NODE_ENV=test).
# default value: mongodb://localhost:27017/notification-service-test
MONGODB_URI_TEST=mongodb://localhost:27017/notification-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
# RABBITMQ_RPC_TIMEOUT: RabbitMQ RPC timeout.
# default value: 5000
RABBITMQ_RPC_TIMEOUT=5000
#################################################################################################
##################################### GOOGLE FIREBASE SETUP #####################################
#################################################################################################
# FIREBASE_ENABLE: Enables/Disables connection to Firebase admin
# When Firebase is used for notifications, your credentials
# file is required (FIREBASE_CREDENTIALS_PATH).
#
# default value: true
FIREBASE_ENABLE=true
# FIREBASE_CREDENTIALS_PATH:
# The Google Firebase Config JSON file path for use firebase admin
# features.
# default value: /path/to/firebase_credentials_file.json
FIREBASE_CREDENTIALS_PATH=/path/to/firebase_credentials_file.json
#################################################################################################
###################################### WEB APP HOST SETUP #######################################
#################################################################################################
# DASHBOARD_HOST: URI for the SSM platform wep app host.
# default value: https://localhost:443
DASHBOARD_HOST=https://localhost:443