perf: 移除掉无用配置精简

This commit is contained in:
TsMask
2025-07-15 14:45:45 +08:00
parent 8680244af1
commit d7adfa79ba
6 changed files with 142 additions and 405 deletions

View File

@@ -1,49 +1,45 @@
# 日志
# log
logger:
fileDir: "/var/log"
fileName: "omc.log"
level: 0 # 日志记录的等级 0:silent<1:info<2:warn<3:error
maxDay: 7 # 日志会保留 180 天
maxSize: 10 # 调整按 10MB 大小的切割
fileDir: "/var/log" # Log File Dir
fileName: "omc.log" # Log File Name
level: 0 # Log Level of 0:silent<1:info<2:warn<3:error
maxDay: 7 # Log retention Days
maxSize: 10 # Log File cutting by size
# 静态文件配置, 相对项目根路径或填绝对路径
# static file resource access
staticFile:
# 默认资源dir目录需要预先创建
default:
prefix: "/static"
dir: "/usr/local/omc/static"
# 文件上传资源目录映射,与项目目录同级
prefix: "/static" # Static File Prefix
dir: "/usr/local/omc/static" # Static File Dir
upload:
prefix: "/upload"
dir: "/usr/local/omc/upload"
prefix: "/upload" # Upload File Prefix
dir: "/usr/local/omc/upload" # Upload File Dir
# DB 数据源
# data source
database:
dataSource:
# 默认数据库实例
# std: standard
std:
type: "mysql"
host: "127.0.0.1"
port: 33066
username: "root"
password: "1000omc@kp!"
database: "omc_db"
logging: true
# 内置轻量级数据库
host: "127.0.0.1" # mysql host
port: 33066 # mysql port
username: "root" # mysql username
password: "1000omc@kp!" # mysql password
database: "omc_db" # mysql database
# lite: lite
lite:
type: "sqlite"
database: "/usr/local/etc/omc/database/omc_db.sqlite"
logging: true
# 多个数据源时可以用这个指定默认的数据源
database: "/usr/local/etc/omc/database/omc_db.sqlite" # sqlite database
# default data source name
defaultDataSourceName: "std"
# Redis 缓存数据
# redis cached data
redis:
dataSource:
default:
port: 6379 # Redis port
host: "127.0.0.1" # Redis host
password: "helloearth"
port: 6379 # redis port
host: "127.0.0.1" # redis host
password: "helloearth" # redis password
db: 10 # Redis db_num
# 多个数据源时可以用这个指定默认的数据源
# default data source name
defaultDataSourceName: "default"