-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.env.sample
More file actions
30 lines (22 loc) · 795 Bytes
/
.env.sample
File metadata and controls
30 lines (22 loc) · 795 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
# Name of the application (optional)
APP_NAME = Jsonify
# Environment mode: 'production' or 'development'
NODE_ENV = development
# Port for the web server to listen on
PORT = 3000
# MongoDB connection URI
# When using docker compose -> mongodb://mongodb/mydatabase
# When without docker -> mongodb://localhost:27017/mydatabase
MONGODB_URI = mongodb://localhost/mydatabase
# Redis server port
REDIS_PORT = 6379
# Redis server authentication (if required)
REDIS_AUTH = mypassword
# Redis server hostname or IP address
# When using docker compose -> redis
# When without docker -> localhost
REDIS_HOST = localhost
# Allowed CORS (Cross-Origin Resource Sharing) origin (e.g., 'https://example.com')
CORS_ORIGIN = *
# Time to live (TTL) for data stored in Redis (in seconds)
REDIS_TTL = 3600