-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env.example
232 lines (159 loc) · 8.33 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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
# ======================== Application ========================
# Application configuration.
# APP_ENV is the application environment.
# dev | prod | test
APP_ENV="dev"
# APP_HOST is the application host. It's usually the IP address of the machine.
APP_HOST="localhost"
# APP_PORT is the application port. It will be used to listen to incoming.
APP_PORT=8080
# APP_ALLOWED_ORIGINS is a list of origins a cross-domain request can be executed from.
# If the special "*" value is present in the list, all origins will be allowed.
# To create a list of allowed origins, use "," (comma) as the delimiter.
# For example: origin1,origin2,origin3
APP_ALLOWED_ORIGINS="*"
# Key is the application key. It's usually passed in the request header and it's used to
# authenticate the request.
APP_API_KEY="secret"
# ========================== Config ===========================
# Application configuration.
# CONFIG_GLOBAL_RATE_LIMIT is the global rate limit for the API. The expected value is in
# requests per minute. If the value is 0, the rate limit will be disabled.
CONFIG_GLOBAL_RATE_LIMIT=0
# CONFIG_ENABLE_RATE_LIMIT is the flag to enable or disable the rate limit for the API.
CONFIG_ENABLE_RATE_LIMIT=false
# CONFIG_DEBUG is the debug mode. It will enable some debug features like the stack
# trace in the response body.
CONFIG_DEBUG=false
# CONFIG_LOG_LEVEL is the logging configuration for the application.
# debug | info | warn | error | panic
CONFIG_LOG_LEVEL="info"
# ========================= Database ==========================
# The application uses PostgreSQL as the database. It's a free and open-source relational database
# management system. Read more about it here: https://www.postgresql.org/
# DB_Host is the database host (IP address or domain) to connect to. Do not use the Docker
# container IP address, as the application handles it automatically.
DB_HOST="localhost"
# DB_NAME can be used to define a different name for the default database that is created when the
# instance is first started.
DB_NAME="db-name"
# DB_PASSWORD must not be empty or undefined. This environment variable sets the superuser
# password for the database.
DB_PASSWORD="password"
# DB_PORT is the database port.
DB_PORT=5432
# DB_SSL_MODE is the database SSL mode. It expects "disable", "allow", "prefer", "require",
# "verify-ca" or "verify-full". Please refer to the SQL driver documentation for more
# information.
DB_SSL_MODE="disable"
# DB_USER is used in connection with the database password. This variable will create the
# specified user with superuser power and a database with the same name.
DB_USER="username"
# DB_MAX_OPEN_CONNS is the maximum number of open connections to the database.
DB_MAX_OPEN_CONNS=100
# DB_MAX_IDLE_CONNS is the maximum number of connections in the idle connection pool.
DB_MAX_IDLE_CONNS=10
# DB_CONN_MAX_LIFETIME is the maximum amount of time a connection may be reused.
# s = second | m = minute | h = hour | d = day
DB_CONN_MAX_LIFETIME="1h"
# ========================== Redis ============================
# Redis is an open source (BSD licensed), in-memory data structure store, used as a database,
# cache and message broker. Read more about it here: https://redis.io/
# REDIS_HOST is the Redis host (IP address or domain) to connect to. Do not use the Docker
# container IP address, as the application handles it automatically.
REDIS_HOST="localhost"
# REDIS_PORT is the Redis port.
REDIS_PORT=6379
# REDIS_PASSWORD is the Redis password.
REDIS_PASSWORD="password"
# =========================== JWT =============================
# Json Web Token (JWT) is a compact URL-safe means of representing claims to be transferred
# between two parties. The claims in a JWT are encoded as a JSON object that is used as the
# payload of a JSON Web Signature (JWS) structure or as the plaintext of a JSON Web Encryption
# (JWE) structure, enabling the claims to be digitally signed or integrity protected with a
# Message Authentication Code (MAC) and/or encrypted.
# Read more about it here: https://jwt.io/
# JWT_SECRET refers to the secret key used for JSON Web Tokens.
JWT_SECRET="secret"
# JWT_ACCESS_EXPIRE defines the expiration time of the JWT access token.
# s = second | m = minute | h = hour | d = day
JWT_ACCESS_EXPIRE="15m"
# JWT_REFRESH_EXPIRE specifies the expiration time for the JWT refresh token.
# s = second | m = minute | h = hour | d = day
JWT_REFRESH_EXPIRE="30d"
# JWT_AUDIENCE refers to the intended recipients of the JWT, often represented by a URI.
JWT_AUDIENCE="https://yourdomain.com"
# JWT_ISSUER identifies the principal that issued the JWT, typically denoted by a URI.
JWT_ISSUER="https://yourdomain.com"
# ==================== RabbitMQ =====================
# RabbitMQ is a message broker that implements the Advanced Message Queuing Protocol (AMQP).
# It's used to send messages between services.
# Read more about it here: https://www.rabbitmq.com/
# Host is the RabbitMQ host (IP address or domain) to connect to. Do not use the Docker
# container IP address, as the application handles it automatically.
RABBITMQ_HOST="localhost"
# RabbitMQ nodes will use a port from a certain range known as the inter-node communication
# port range. The same port is used by CLI tools when they need to contact the node. The range
# can be modified.
RABBITMQ_PORT=5672
# RABBITMQ_USER is the RabbitMQ user.User name to create when RabbitMQ creates a new database from
# scratch.
RABBITMQ_USER="guest"
# Password is the default user password.
RABBITMQ_PASSWORD="guest"
# ===================== Mailer ======================
# General configuration for the mailer. The mailer is used to send emails to users. It can be
# used to send emails for account confirmation, password reset, etc.
# MAILER_PROVIDER is the mailer provider.
# mailtrap | sendgrid
MAILER_PROVIDER="mailtrap"
# MAILER_TEMPLATE_PATH is the mailer template path.
MAILER_TEMPLATE_PATH="templates"
# MAILER_ASSETS_PATH is the mailer assets path.
MAILER_ASSETS_PATH="templates/assets"
# MAILER_FROM is the mailer from address.
MAILER_FROM="nutrai.team@gmail.com"
# MAILER_FROM_NAME is the mailer from name.
MAILER_FROM_NAME="Nutrai Team"
# MAILER_DELAY_BETWEEN_EMAILS is the delay that will be used to send each email. It's used to
# throttle the email sending process, to avoid being blocked by the email provider.
# s = second | m = minute | h = hour | d = day
MAILER_DELAY_BETWEEN_EMAILS="3s"
# ===================== MailTrap ======================
# MailTrap is a fake SMTP server for development teams to test, view and share emails sent from the
# development and staging environments without spamming real customers. It's a paid service, but
# it's free for a limited number of emails. You can create an account here:
# https://mailtrap.io/register/signup?ref=header
# MAILTRAP_HOST is the mailer host.
MAILTRAP_HOST="sandbox.smtp.mailtrap.io"
# MAILTRAP_PORT is the mailer port.
MAILTRAP_PORT=2525
# MAILTRAP_USERNAME is the mailer username.
MAILTRAP_USERNAME="your_mailtrap_user"
# MAILTRAP_PASSWORD is the mailer password.
MAILTRAP_PASSWORD="your_mailtrap_password"
# ===================== SendGrid ======================
# SendGrid is a cloud-based SMTP provider that allows you to send email without having to maintain
# email servers. It's a paid service, but it's free for the a limited number of emails. You can
# create an account here: https://signup.sendgrid.com/
# SENDGRID_API_KEY is the SendGrid API key.
SENDGRID_API_KEY="your_sendgrid_api_key"
# ===================== OpenAI ========================
# OpenAI is an artificial intelligence research laboratory. It's a paid service, but it's free for
# the a limited number of requests. You can create an account here: https://beta.openai.com/
# GPT_API_KEY is the OpenAI API key.
GPT_API_KEY=sk-0000
# GPT_DEFAULT_MODEL refers to the model to use.
GPT_DEFAULT_MODEL=gpt-3.5-turbo
# GPT_DEFAULT_MODEL_MAX_TOKENS refers to the maximum number of tokens to generate.
GPT_DEFAULT_MODEL_MAX_TOKENS=4096
# GPT_DEFAULT_TEMPERATURE refers to the temperature to use for the model.
GPT_DEFAULT_TEMPERATURE=0.2
# GPT_DEFAULT_TOP_P refers to the top_p to use for the model.
GPT_DEFAULT_TOP_P=0.2
# GPT_DEFAULT_N refers to the number of completions to generate for each prompt.
GPT_DEFAULT_N=1
# GPT_DEFAULT_STREAM refers to whether to stream back partial progress.
GPT_DEFAULT_MAX_TOKENS=800
# GPT_DEFAULT_STOP refers to tokens used to stop the completion.
GPT_DEFAULT_STOP=["\super-end\"]