数据源和 oss

This commit is contained in:
2026-08-13 23:17:55 +08:00
parent f1a0b17bb0
commit c4bf7ee03b
40 changed files with 1975 additions and 922 deletions
+13 -3
View File
@@ -9,6 +9,12 @@ data:
database:
driver: mysql
source: root:root@tcp(127.0.0.1:3306)/test?timeout=5s&parseTime=True&loc=Local&charset=utf8mb4
host: 127.0.0.1
port: "3306"
user: root
password: root
name: test
config: timeout=5s&parseTime=True&loc=Local&charset=utf8mb4
redis:
addr: 127.0.0.1:6379
read_timeout: 0.2s
@@ -18,17 +24,21 @@ admin:
jwt:
# Production deployments must override this value with a private secret.
signing_key: change-me-before-production
expires_time: 168h
buffer_time: 24h
expires_time: 604800s
buffer_time: 86400s
issuer: kra
captcha:
key_long: 6
img_width: 240
img_height: 80
store_expiration: 3m
store_expiration: 180s
local:
store_path: uploads/file
path_prefix: uploads/file
storage:
# local, qiniu, aliyun-oss, huawei-obs, tencent-cos, aws-s3,
# cloudflare-r2 or minio
type: local
email:
# Leave host/from/secret empty to disable SMTP error notifications.
to: ""