54 lines
1.3 KiB
Plaintext
54 lines
1.3 KiB
Plaintext
# 生产环境配置模板
|
||
# 复制此文件到服务器并重命名为 .env,然后修改相应的值
|
||
|
||
# 应用配置
|
||
APP_VERSION=latest
|
||
APP_PORT=8080
|
||
|
||
# 数据库配置 (必须修改)
|
||
DB_USER=tyapi_user
|
||
DB_PASSWORD=your_secure_database_password_here
|
||
DB_NAME=tyapi_prod
|
||
DB_SSLMODE=require
|
||
|
||
# Redis配置 (必须修改)
|
||
REDIS_PASSWORD=your_secure_redis_password_here
|
||
|
||
# JWT配置 (必须修改)
|
||
JWT_SECRET=your_super_secure_jwt_secret_key_for_production_at_least_32_chars
|
||
|
||
# 日志级别
|
||
LOG_LEVEL=info
|
||
|
||
# 端口配置
|
||
NGINX_HTTP_PORT=80
|
||
NGINX_HTTPS_PORT=443
|
||
JAEGER_UI_PORT=16686
|
||
PROMETHEUS_PORT=9090
|
||
GRAFANA_PORT=3000
|
||
MINIO_API_PORT=9000
|
||
MINIO_CONSOLE_PORT=9001
|
||
PGADMIN_PORT=5050
|
||
|
||
# Grafana 配置
|
||
GRAFANA_ADMIN_USER=admin
|
||
GRAFANA_ADMIN_PASSWORD=your_secure_grafana_password_here
|
||
|
||
# MinIO 配置
|
||
MINIO_ROOT_USER=minioadmin
|
||
MINIO_ROOT_PASSWORD=your_secure_minio_password_here
|
||
|
||
# pgAdmin 配置
|
||
PGADMIN_EMAIL=admin@tyapi.com
|
||
PGADMIN_PASSWORD=your_secure_pgadmin_password_here
|
||
|
||
# 短信服务配置 (必须修改)
|
||
SMS_ACCESS_KEY_ID=your_sms_access_key_id
|
||
SMS_ACCESS_KEY_SECRET=your_sms_access_key_secret
|
||
SMS_SIGN_NAME=your_sms_sign_name
|
||
SMS_TEMPLATE_CODE=your_sms_template_code
|
||
|
||
# SSL证书路径 (如果使用HTTPS)
|
||
# SSL_CERT_PATH=/path/to/cert.pem
|
||
# SSL_KEY_PATH=/path/to/key.pem
|