fix: 更新数据库和Redis配置

This commit is contained in:
TsMask committed 2025-05-20 16:27:24 +08:00
1 parent 72c688e178
commit 16b8e780ad
3 files changed
+22 -24

No files matched your search

+19 -21
View File
@@ -46,35 +46,33 @@ trace:
# data source
database:
dataSource:
# std: standard
std:
type: "mysql"
host: "127.0.0.1"
port: 33066
username: "root"
password: "1000omc@kp!"
database: "omc_db"
# lite: lite
lite:
type: "sqlite"
database: "/usr/local/etc/omc/database/omc_db.sqlite"
# default data source name
defaultDataSourceName: "std"
# dataSource:
# # std: standard
# std:
# type: "mysql"
# host: "127.0.0.1"
# port: 3306
# username: "<username>"
# password: "<password>"
# database: "<database>"
# logging: false
# # lite: lite
# lite:
# type: "sqlite"
# database: "<database path>"
# logging: false
# redis cached data
redis:
dataSource:
default:
port: 6379 # Redis port
host: "127.0.0.1" # Redis host
password: "helloearth"
db: 10 # Redis db_num
# default data source name
defaultDataSourceName: "default"
# dataSource:
# default:
# port: 6379 # port
# host: "127.0.0.1" # host
# password: "<password>"
# db: 10 # db_num
# file: log file name
+2 -2
View File
@@ -24,7 +24,7 @@ database:
std:
type: "mysql"
host: "127.0.0.1"
port: 3306
port: 33066
username: "root"
password: "1000omc@kp!"
database: "omc_db"
@@ -44,6 +44,6 @@ redis:
port: 6379 # Redis port
host: "127.0.0.1" # Redis host
password: "helloearth"
db: 0 # Redis db_num
db: 10 # Redis db_num
# 多个数据源时可以用这个指定默认的数据源
defaultDataSourceName: "default"
+1 -1
View File
@@ -25,6 +25,6 @@ redis:
port: 6379 # Redis port
host: "127.0.0.1" # Redis host
password: "helloearth"
db: 0 # Redis db_num
db: 10 # Redis db_num
# 多个数据源时可以用这个指定默认的数据源
defaultDataSourceName: "default"