perf: 构建工具调整

This commit is contained in:
TsMask
2025-03-18 16:01:11 +08:00
parent f4977d071b
commit 8c1a73e9b3
6 changed files with 52 additions and 64 deletions

View File

@@ -1,6 +1,6 @@
# 日志
logger:
fileDir: "C:/var/log"
fileDir: "/var/log"
fileName: "omc.log"
level: 0 # 日志记录的等级 0:silent<1:info<2:warn<3:error
maxDay: 7 # 日志会保留 180 天
@@ -11,31 +11,31 @@ staticFile:
# 默认资源dir目录需要预先创建
default:
prefix: "/static"
dir: "C:/usr/local/omc/static"
dir: "/usr/local/omc/static"
# 文件上传资源目录映射,与项目目录同级
upload:
prefix: "/upload"
dir: "C:/usr/local/omc/upload"
dir: "/usr/local/omc/upload"
# DB 数据源
database:
dataSource:
# 默认数据库实例
default:
standard:
type: "mysql"
host: "127.0.0.1"
port: 3306
username: "<username>"
password: "<password>"
database: "<database>"
logging: false
username: "root"
password: "1000omc@kp!"
database: "omc_db"
logging: true
# 内置轻量级数据库
lite:
type: "sqlite"
database: "<database path>"
logging: false
database: "/usr/local/etc/omc/database/omc_db.sqlite"
logging: true
# 多个数据源时可以用这个指定默认的数据源
defaultDataSourceName: "default"
defaultDataSourceName: "standard"
# Redis 缓存数据
redis:
@@ -43,7 +43,7 @@ redis:
default:
port: 6379 # Redis port
host: "127.0.0.1" # Redis host
password: "<password>"
password: "helloearth"
db: 0 # Redis db_num
# 多个数据源时可以用这个指定默认的数据源
defaultDataSourceName: "default"

View File

@@ -2,21 +2,21 @@
database:
dataSource:
# 默认数据库实例
default:
standard:
type: "mysql"
host: "127.0.0.1"
port: 3306
username: "<username>"
password: "<password>"
database: "<database>"
port: 33066
username: "root"
password: "1000omc@kp!"
database: "omc_db"
logging: false
# 内置轻量级数据库
lite:
type: "sqlite"
database: "<database path>"
database: "/usr/local/etc/omc/database/omc_db.sqlite"
logging: false
# 多个数据源时可以用这个指定默认的数据源
defaultDataSourceName: "default"
defaultDataSourceName: "standard"
# Redis 缓存数据
redis:
@@ -24,7 +24,7 @@ redis:
default:
port: 6379 # Redis port
host: "127.0.0.1" # Redis host
password: "<password>"
password: "helloearth"
db: 0 # Redis db_num
# 多个数据源时可以用这个指定默认的数据源
defaultDataSourceName: "default"