任务三

This commit is contained in:
Yvan
2026-01-07 19:10:02 +08:00
parent 3c0f3b7165
commit be3b6641a6
50 changed files with 2916 additions and 1167 deletions
+83 -83
View File
@@ -11,73 +11,73 @@ server:
# jwt configuration
jwt:
signing-key: kratos-admin
expires-time: 7d
buffer-time: 1d
signing_key: kratos-admin
expires_time: 7d
buffer_time: 1d
issuer: kratos-admin
# system configuration
system:
env: local
db-type: mysql
oss-type: local
use-redis: false
use-multipoint: false
iplimit-count: 15000
iplimit-time: 3600
router-prefix: ""
use-strict-auth: false
db_type: mysql
oss_type: local
use_redis: false
use_multipoint: false
iplimit_count: 15000
iplimit_time: 3600
router_prefix: ""
use_strict_auth: false
# captcha configuration
captcha:
key-long: 6
img-width: 240
img-height: 80
open-captcha: 0
open-captcha-timeout: 3600
key_long: 6
img_width: 240
img_height: 80
open_captcha: 0
open_captcha_timeout: 3600
# mysql configuration
mysql:
path: 127.0.0.1
port: "3306"
config: charset=utf8mb4&parseTime=True&loc=Local
db-name: kratos_admin
db_name: spa
username: root
password: root
max-idle-conns: 10
max-open-conns: 100
log-mode: info
log-zap: false
password: Xu950329.
max_idle_conns: 10
max_open_conns: 100
log_mode: info
log_zap: false
# pgsql configuration
pgsql:
path: ""
port: ""
config: ""
db-name: ""
db_name: ""
username: ""
password: ""
max-idle-conns: 10
max-open-conns: 100
log-mode: ""
log-zap: false
max_idle_conns: 10
max_open_conns: 100
log_mode: ""
log_zap: false
# sqlite configuration
sqlite:
path: ""
db-name: ""
max-idle-conns: 10
max-open-conns: 100
log-mode: ""
log-zap: false
db_name: ""
max_idle_conns: 10
max_open_conns: 100
log_mode: ""
log_zap: false
# redis configuration
redis:
use-cluster: false
use_cluster: false
addr: 127.0.0.1:6379
password: ""
db: 0
cluster-addrs:
cluster_addrs:
- "127.0.0.1:7000"
- "127.0.0.1:7001"
- "127.0.0.1:7002"
@@ -85,74 +85,74 @@ redis:
# local storage configuration
local:
path: uploads/file
store-path: uploads/file
store_path: uploads/file
# qiniu configuration
qiniu:
zone: ZoneHuaDong
bucket: ""
img-path: ""
use-https: false
access-key: ""
secret-key: ""
use-cdn-domains: false
img_path: ""
use_https: false
access_key: ""
secret_key: ""
use_cdn_domains: false
# minio configuration
minio:
endpoint: ""
access-key-id: ""
access-key-secret: ""
bucket-name: ""
use-ssl: false
base-path: ""
bucket-url: ""
access_key_id: ""
access_key_secret: ""
bucket_name: ""
use_ssl: false
base_path: ""
bucket_url: ""
# aliyun oss configuration
aliyun-oss:
aliyun_oss:
endpoint: ""
access-key-id: ""
access-key-secret: ""
bucket-name: ""
bucket-url: ""
base-path: ""
access_key_id: ""
access_key_secret: ""
bucket_name: ""
bucket_url: ""
base_path: ""
# tencent cos configuration
tencent-cos:
tencent_cos:
bucket: ""
region: ""
secret-id: ""
secret-key: ""
base-url: ""
path-prefix: ""
secret_id: ""
secret_key: ""
base_url: ""
path_prefix: ""
# aws s3 configuration
aws-s3:
aws_s3:
bucket: ""
region: ""
endpoint: ""
s3-force-path-style: false
disable-ssl: false
secret-id: ""
secret-key: ""
base-url: ""
path-prefix: ""
s3_force_path_style: false
disable_ssl: false
secret_id: ""
secret_key: ""
base_url: ""
path_prefix: ""
# cloudflare r2 configuration
cloudflare-r2:
cloudflare_r2:
bucket: ""
base-url: ""
base_url: ""
path: uploads
account-id: ""
access-key-id: ""
secret-access-key: ""
account_id: ""
access_key_id: ""
secret_access_key: ""
# huawei obs configuration
huawei-obs:
huawei_obs:
path: ""
bucket: ""
endpoint: ""
access-key: ""
secret-key: ""
access_key: ""
secret_key: ""
# email configuration
email:
@@ -160,7 +160,7 @@ email:
port: 465
from: ""
host: ""
is-ssl: true
is_ssl: true
secret: ""
nickname: ""
@@ -172,11 +172,11 @@ excel:
cors:
mode: allow-all
whitelist:
- allow-origin: "*"
allow-headers: Content-Type,AccessToken,X-CSRF-Token,Authorization,Token,X-Token,X-User-Id
allow-methods: POST,GET,OPTIONS,DELETE,PUT
expose-headers: Content-Length,Access-Control-Allow-Origin,Access-Control-Allow-Headers,Content-Type
allow-credentials: true
- allow_origin: "*"
allow_headers: Content-Type,AccessToken,X-CSRF-Token,Authorization,Token,X-Token,X-User-Id
allow_methods: POST,GET,OPTIONS,DELETE,PUT
expose_headers: Content-Length,Access-Control-Allow-Origin,Access-Control-Allow-Headers,Content-Type
allow_credentials: true
# zap logger configuration
zap:
@@ -184,8 +184,8 @@ zap:
format: console
prefix: "[kratos-admin]"
director: log
show-line: true
encode-level: LowercaseColorLevelEncoder
stacktrace-key: stacktrace
log-in-console: true
retention-day: -1
show_line: true
encode_level: LowercaseColorLevelEncoder
stacktrace_key: stacktrace
log_in_console: true
retention_day: -1