-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpostgres.env
More file actions
47 lines (38 loc) · 1023 Bytes
/
postgres.env
File metadata and controls
47 lines (38 loc) · 1023 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# PostgreSQL Configuration for VerTree
# 适用于生产环境和高并发部署
# Server Configuration
SERVER_HOST=0.0.0.0
SERVER_PORT=8080
# Database Configuration (PostgreSQL)
DB_DRIVER=postgres
DB_HOST=postgres
DB_PORT=5432
DB_USER=vertree_user
DB_PASSWORD=vertree_password_change_me
DB_NAME=vertree
DB_SSLMODE=disable
# Application Configuration
ENVIRONMENT=production
REGION=global
DOMAIN=your-domain.com
UPLOAD_PATH=./uploads
# JWT Secret (请务必在生产环境中更改!)
# 生成新密钥: openssl rand -hex 32
JWT_SECRET=CHANGE_ME_IN_PRODUCTION_GENERATE_NEW_SECRET_KEY
# Log Configuration
LOG_LEVEL=warn
LOG_FORMAT=json
# Security Configuration
CORS_ALLOW_ORIGINS=https://your-domain.com
RATE_LIMIT_ENABLED=true
RATE_LIMIT_REQUESTS=50
RATE_LIMIT_WINDOW=1m
# PostgreSQL Configuration
POSTGRES_DB=vertree
POSTGRES_USER=vertree_user
POSTGRES_PASSWORD=vertree_password_change_me
# Redis Configuration
REDIS_PASSWORD=redis_password_change_me
# Nginx Configuration
NGINX_HTTP_PORT=80
NGINX_HTTPS_PORT=443