优化逻辑

This commit is contained in:
Yvan
2026-09-23 18:20:17 +08:00
parent 7498f59bd8
commit eb529c696e
6 changed files with 1018 additions and 63 deletions
+9 -54
View File
@@ -6,13 +6,12 @@ server:
data:
database:
driver: mysql
# Supply production credentials through KRA_DATA_DATABASE_*.
source: ""
host: 127.0.0.1
port: "3306"
source: root:+V1veMv3Vv_4VdqtZ1f#L7*+@tcp(47.97.87.141:13306)/yzyz_live?charset=utf8mb4&parseTime=True&loc=Local
host: 47.97.87.141
port: "13306"
user: root
password: ""
name: yzyzlive
password: +V1veMv3Vv_4VdqtZ1f#L7*+
name: yzyz_live
config: charset=utf8mb4&parseTime=True&loc=Local
path: ""
alias_name: ""
@@ -27,48 +26,15 @@ data:
redis:
network: tcp
name: default
addr: 127.0.0.1:6379
password: ""
addr: live-redis:6379
password: '1_S7cwT$hNU7C^y$fALKX99U'
db: 0
use_cluster: false
cluster_addrs: []
read_timeout: 0.200s
write_timeout: 0.200s
# Additional databases use alias_name as the lookup key. Disabled entries
# remain available as configuration examples without opening connections.
database_list: []
# Example:
# database_list:
# - driver: mysql
# source: ""
# host: 127.0.0.1
# port: "3306"
# user: root
# password: ""
# name: business
# config: timeout=5s&parseTime=True&loc=Local&charset=utf8mb4
# path: ""
# alias_name: business
# disable: true
# prefix: ""
# engine: InnoDB
# log_mode: info
# max_idle_conns: 10
# max_open_conns: 100
# conn_max_lifetime: 3600
# singular: false
redis_list: []
# Example:
# redis_list:
# - network: tcp
# name: cache
# addr: 127.0.0.1:6379
# password: ""
# db: 0
# use_cluster: false
# cluster_addrs: []
# read_timeout: 0.2s
# write_timeout: 0.2s
mongo:
coll: ""
options: ""
@@ -85,11 +51,9 @@ data:
- host: ""
port: ""
admin:
# The administration system router prefix maps to this transport prefix.
router_prefix: ""
jwt:
# Generated during first-install, or provide KRA_ADMIN_JWT_SIGNING_KEY locally.
signing_key: ""
signing_key: 0848966d-b15a-4e4d-a527-7024910ba429
expires_time: 604800s
buffer_time: 86400s
issuer: kra
@@ -102,7 +66,6 @@ admin:
store_path: uploads/file
path_prefix: uploads/file
media:
# Upload chunks are stored below uploads/chunks in the selected storage backend.
session_ttl: 24
max_file_size: "0"
chunk_dir: uploads/chunks
@@ -129,23 +92,15 @@ admin:
access_resp_data: true
access_req_headers: true
access_log_max_bytes: 1024
# High-volume request and SQL details remain available in logs/http and logs/sql.
file_only_modules:
- http
- sql
cors:
mode: allow-all
whitelist: []
# Example:
# whitelist:
# - allow_origin: https://admin.example.com
# allow_headers: Content-Type,Authorization,X-Token
# allow_methods: POST,GET,PUT,DELETE,OPTIONS
# expose_headers: Content-Length,Content-Type
# allow_credentials: true
app:
node: ""
app_id: kra
env: development
env: production
disk_list:
- mount_point: /