generated from rolling-scopes-school/nodejs-course-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env.example
34 lines (29 loc) · 791 Bytes
/
.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
# Backend
BACKEND_PORT=4000
# Postgres
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
POSTGRES_USER=admin
POSTGRES_PASSWORD=admin
POSTGRES_DB=db
# PgAdmin
PGADMIN_PORT=5050
PGADMIN_LISTEN_PORT=${PGADMIN_PORT}
PGADMIN_DEFAULT_PASSWORD=admin
# Prisma
DATABASE_URL="postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}?schema=public"
# Auth
CRYPT_SALT=10
JWT_SECRET_KEY=secret123123
JWT_SECRET_REFRESH_KEY=secret123123
TOKEN_EXPIRE_TIME=1h
TOKEN_REFRESH_EXPIRE_TIME=24h
# Logging
# Valid values: verbose, debug, log, warn, error, fatal
# How it works:
# If you set log, it will log all levels except verbose and debug
# If you set error, it will log only error and fatal
LOG_LEVEL=log
# In kB
MAX_FILE_SIZE=10