首次提交:初始化项目代码
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
# CloudNest 生产环境配置
|
||||
# CloudNest Production Environment Configuration
|
||||
# ⚠️ 生产环境敏感信息请通过环境变量注入,不要直接写在此文件
|
||||
# ⚠️ Production sensitive info should be injected via environment variables, DO NOT hardcode here
|
||||
|
||||
app:
|
||||
env: production
|
||||
log_level: info
|
||||
|
||||
server:
|
||||
host: 0.0.0.0
|
||||
port: 8080
|
||||
graceful_shutdown_timeout: 60
|
||||
|
||||
database:
|
||||
# 生产环境请使用环境变量覆盖密码 / Use env var to override password in production
|
||||
host: ${DB_HOST}
|
||||
port: ${DB_PORT:3306}
|
||||
user: ${DB_USER}
|
||||
password: ${DB_PASSWORD}
|
||||
dbname: ${DB_NAME:cloudnest}
|
||||
max_idle_conns: 20
|
||||
max_open_conns: 200
|
||||
conn_max_lifetime: 7200
|
||||
|
||||
cache:
|
||||
host: ${REDIS_HOST}
|
||||
port: ${REDIS_PORT:6379}
|
||||
password: ${REDIS_PASSWORD}
|
||||
db: ${REDIS_DB:0}
|
||||
pool_size: 50
|
||||
min_idle_conns: 10
|
||||
|
||||
storage:
|
||||
endpoint: ${MINIO_ENDPOINT}
|
||||
access_key_id: ${MINIO_ACCESS_KEY}
|
||||
secret_access_key: ${MINIO_SECRET_KEY}
|
||||
bucket_name: ${MINIO_BUCKET:cloudnest-files}
|
||||
use_ssl: ${MINIO_USE_SSL:true}
|
||||
max_file_size: 500
|
||||
|
||||
jwt:
|
||||
secret: ${JWT_SECRET}
|
||||
expires_in: 168
|
||||
Reference in New Issue
Block a user