-
-
Notifications
You must be signed in to change notification settings - Fork 640
Expand file tree
/
Copy path.env.example
More file actions
88 lines (69 loc) · 2.16 KB
/
.env.example
File metadata and controls
88 lines (69 loc) · 2.16 KB
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
# ==================================
# SERVER CONFIGURATION
# ==================================
# Server host and port
PORT=3001
HOST=0.0.0.0
# Server timeout settings (in seconds)
SERVER_READ_TIMEOUT=60
SERVER_WRITE_TIMEOUT=600
SERVER_IDLE_TIMEOUT=120
SERVER_GRACEFUL_SHUTDOWN_TIMEOUT=10
# ==================================
# CLUSTER CONFIGURATION
# ==================================
# Set to true for slave nodes in cluster setup
IS_SLAVE=false
# ==================================
# LOCALIZATION
# ==================================
# Timezone setting
TZ=Asia/Shanghai
# ==================================
# SECURITY
# ==================================
# Authentication key is required to protect the management API and UI.
# Please use a long, random string for security.
AUTH_KEY=
# ENCRYPTION_KEY encrypts API keys at rest. Use any string or leave empty to disable.
ENCRYPTION_KEY=
# ==================================
# DATABASE CONFIGURATION
# ==================================
# Database connection string (leave empty to use SQLite at ./data/gpt-load.db)
# MySQL example:
# DATABASE_DSN=root:123456@tcp(mysql:3306)/gpt-load?charset=utf8mb4&parseTime=True&loc=Local
# PostgreSQL example:
# DATABASE_DSN=postgres://postgres:123456@postgres:5432/gpt-load?sslmode=disable
DATABASE_DSN=
# ==================================
# CACHE CONFIGURATION
# ==================================
# Redis connection string (leave empty to use in-memory storage)
# Example: redis://redis:6379/0
REDIS_DSN=
# ==================================
# PERFORMANCE
# ==================================
# Maximum concurrent requests
MAX_CONCURRENT_REQUESTS=100
# ==================================
# CORS CONFIGURATION
# ==================================
# Enable Cross-Origin Resource Sharing
ENABLE_CORS=true
ALLOWED_ORIGINS=*
ALLOWED_METHODS=GET,POST,PUT,DELETE,OPTIONS
ALLOWED_HEADERS=*
ALLOW_CREDENTIALS=false
# ==================================
# LOGGING CONFIGURATION
# ==================================
# Log level (debug, info, warn, error)
LOG_LEVEL=info
# Log format (text, json)
LOG_FORMAT=text
# Enable file logging
LOG_ENABLE_FILE=true
# Log file path
LOG_FILE_PATH=./data/logs/app.log