首次提交:初始化项目代码
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
# CloudNest 基础配置文件
|
||||
# CloudNest Base Configuration File
|
||||
# 此文件包含所有环境的默认配置,可被环境特定配置覆盖
|
||||
# This file contains default config for all environments, can be overridden by env-specific configs
|
||||
|
||||
app:
|
||||
name: cloudnest
|
||||
version: 1.0.0
|
||||
env: development
|
||||
log_level: info
|
||||
|
||||
server:
|
||||
host: 0.0.0.0
|
||||
port: 8080
|
||||
# graceful_shutdown_timeout: 30s
|
||||
# 优雅关闭超时时间(秒)
|
||||
graceful_shutdown_timeout: 30
|
||||
|
||||
database:
|
||||
# MySQL DSN 格式: user:password@tcp(host:port)/dbname?charset=utf8mb4&parseTime=True&loc=Local
|
||||
# MySQL DSN format: user:password@tcp(host:port)/dbname?charset=utf8mb4&parseTime=True&loc=Local
|
||||
driver: mysql
|
||||
host: localhost
|
||||
port: 3306
|
||||
user: root
|
||||
password: ""
|
||||
dbname: cloudnest
|
||||
charset: utf8mb4
|
||||
parse_time: true
|
||||
loc: Local
|
||||
max_idle_conns: 10
|
||||
max_open_conns: 100
|
||||
conn_max_lifetime: 3600
|
||||
|
||||
cache:
|
||||
driver: redis
|
||||
host: localhost
|
||||
port: 6379
|
||||
password: ""
|
||||
db: 0
|
||||
# Redis 连接池配置 / Redis connection pool settings
|
||||
pool_size: 10
|
||||
min_idle_conns: 5
|
||||
|
||||
storage:
|
||||
driver: minio
|
||||
endpoint: localhost:9000
|
||||
access_key_id: minioadmin
|
||||
secret_access_key: minioadmin
|
||||
bucket_name: cloudnest-files
|
||||
use_ssl: false
|
||||
# 预签名 URL 有效期(小时)/ Presigned URL expiration (hours)
|
||||
presign_duration: 24
|
||||
# 最大上传文件大小(MB)/ Max upload file size (MB)
|
||||
max_file_size: 100
|
||||
# 回收站文件过期天数 / Recycle bin file expiration days
|
||||
recycle_bin_expire_days: 7
|
||||
|
||||
jwt:
|
||||
secret: cloudnest-secret-key
|
||||
# Token 过期时间(小时)/ Token expiration time (hours)
|
||||
expires_in: 720
|
||||
# 签发者 / Issuer
|
||||
issuer: cloudnest
|
||||
|
||||
email:
|
||||
smtp_host: "smtp.qq.com"
|
||||
smtp_port: 587
|
||||
smtp_username: ""
|
||||
smtp_password: ""
|
||||
from_name: "CloudNest"
|
||||
Reference in New Issue
Block a user