-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
33 lines (26 loc) · 827 Bytes
/
.env.example
File metadata and controls
33 lines (26 loc) · 827 Bytes
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
APP_NAME=My App Name
APP_ENV=local
# Generate a secret with: npm run secret
APP_SECRET=key
# 'dev' or 'production'
NODE_ENV=dev
# Boolean — parsed with JSON.parse, so use the literal strings true/false
HTTPS=false
# Server port
PORT=3000
# Root prefix for all v1 API routes
SERVER_ROOT_URL=/api/v1
# Selects the active ORM/driver: 'mongodb' (Mongoose) or 'mysql' (Sequelize)
DB_TYPE=mongodb
# MongoDB only: full connection string (overrides the fields below when set)
CUSTOM_DB_URL=
# Database connection (used by both mongodb and mysql).
# Local default ports: MongoDB 27017, MySQL 3306.
# With docker compose, set DB_HOST to the service name:
# DB_TYPE=mongodb -> DB_HOST=mongo DB_PORT=27017
# DB_TYPE=mysql -> DB_HOST=mysql DB_PORT=3306
DB_HOST=127.0.0.1
DB_PORT=27017
DB_NAME=app
DB_USERNAME=
DB_PASSWORD=