Files
bl/manifest/config/config.yaml
昔念 cde64b1898 ```
feat(config): 添加服务器screen参数字段

添加OldScreen字段用于存储服务器的screen会话名称

---

fix(fight): 修复攻击值结构体格式

格式化AttackValue结构体字段对齐,并添加Offensive字段用于存储攻击力

---

feat(fight): 计算并存储技能攻击力

在技能计算过程中添加攻击力计算并存储到AttackValue结构体中

---

fix(base): 修正JWT密钥配置

将JWT密钥从
2026-01-09 08:31:30 +08:00

88 lines
2.4 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

server:
name: "blazing server"
address: ":59480" #前台服务器地址
port: 53388 #后台服务器端口
rpc: 56409 #rpc服务端口
openapiPath: "/api.json"
swaggerPath: "/swagger"
clientMaxBodySize:
104857600 # 100MB in bytes 100*1024*1024
# 平滑重启特性
graceful: true # 是否开启平滑重启特性开启时将会在本地增加10000的本地TCP端口用于进程间通信默认false
gracefulTimeout: 2 # 父进程在平滑重启后多少秒退出默认2秒若请求耗时大于该值可能会导致请求中断
gracefulShutdownTimeout: 5 # 关闭Server时如果存在正在执行的HTTP请求Server等待多少秒才执行强行关闭
logger:
level: "all"
stdout: true
database:
default:
type: "pgsql"
host: "125.208.20.223"
port: "55669"
user: "bl"
pass: "4DD4z3T2Zh8rx8Yd"
name: "bl"
debug: false
timezone: "Asia/Shanghai"
createdAt: "createTime"
updatedAt: "updateTime"
#timeMaintainDisabled: false # (可选)是否完全关闭时间更新特性为true时CreatedAt/UpdatedAt/DeletedAt都将失效
# deletedAt: "deleteTime"
# default:
# type: "mysql"
# host: "159.75.107.160"
# port: "3306"
# user: "blazing"
# pass: "zjjSrsBMrB5RmjE7"
# name: "blazing"
# charset: "utf8mb4"
# timezone: "Asia/Shanghai"
# debug: true
# createdAt: "createTime"
# updatedAt: "updateTime"
# deletedAt: "deleteTime"
# baseConfig:
# type: "sqlite"
# link: "base-config.sqlite"
# extra: busy_timeout=5000
# createdAt: "createTime"
# updatedAt: "updateTime"
# debug: true
# Redis 配置示例
redis:
cool:
address: "125.208.20.223:57095"
db: 0
pass: "redis_wQ22jj"
blazing:
autoMigrate: true
eps: true
file:
mode: "local" # local | minio | oss
domain: "http://127.0.0.1:8002"
# oss配置项兼容 minio oss 需要配置bucket公开读
oss:
endpoint: "192.168.192.110:9000"
accessKeyID: "accessKeyID"
secretAccessKey: "secretAccessKey"
bucketName: "blazing"
useSSL: false #minio用到
location: "us-east-1" #minio用到
modules:
base:
jwt:
sso: false
secret: "sun-base88776655"
token:
expire: 10 # 2*3600
refreshExpire: 1296000 # 24*3600*15
middleware:
authority:
enable: true
log:
enable: true